mirror of
https://gitlab.kitware.com/cmake/cmake.git
synced 2026-10-07 04:02:23 +03:00
cmCTest: Move macros to bottom of file
Since the class name is used in the macros, the iwyu tool gets confused wheter it needs a forward declaration or not.
This commit is contained in:
1 parent
f0f60c548a
commit
bcd08aa383
1 file changed
+16
-16
+16
-16
@@ -20,22 +20,6 @@ class cmGeneratedFileStream;
|
|||||||
class cmMakefile;
|
class cmMakefile;
|
||||||
class cmXMLWriter;
|
class cmXMLWriter;
|
||||||
|
|
||||||
#define cmCTestLog(ctSelf, logType, msg) \
|
|
||||||
do { \
|
|
||||||
std::ostringstream cmCTestLog_msg; \
|
|
||||||
cmCTestLog_msg << msg; \
|
|
||||||
(ctSelf)->Log(cmCTest::logType, __FILE__, __LINE__, \
|
|
||||||
cmCTestLog_msg.str().c_str()); \
|
|
||||||
} while (false)
|
|
||||||
|
|
||||||
#define cmCTestOptionalLog(ctSelf, logType, msg, suppress) \
|
|
||||||
do { \
|
|
||||||
std::ostringstream cmCTestLog_msg; \
|
|
||||||
cmCTestLog_msg << msg; \
|
|
||||||
(ctSelf)->Log(cmCTest::logType, __FILE__, __LINE__, \
|
|
||||||
cmCTestLog_msg.str().c_str(), suppress); \
|
|
||||||
} while (false)
|
|
||||||
|
|
||||||
/** \class cmCTest
|
/** \class cmCTest
|
||||||
* \brief Represents a ctest invocation.
|
* \brief Represents a ctest invocation.
|
||||||
*
|
*
|
||||||
@@ -647,4 +631,20 @@ inline std::ostream& operator<<(std::ostream& os, const cmCTestLogWrite& c)
|
|||||||
return os;
|
return os;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#define cmCTestLog(ctSelf, logType, msg) \
|
||||||
|
do { \
|
||||||
|
std::ostringstream cmCTestLog_msg; \
|
||||||
|
cmCTestLog_msg << msg; \
|
||||||
|
(ctSelf)->Log(cmCTest::logType, __FILE__, __LINE__, \
|
||||||
|
cmCTestLog_msg.str().c_str()); \
|
||||||
|
} while (false)
|
||||||
|
|
||||||
|
#define cmCTestOptionalLog(ctSelf, logType, msg, suppress) \
|
||||||
|
do { \
|
||||||
|
std::ostringstream cmCTestLog_msg; \
|
||||||
|
cmCTestLog_msg << msg; \
|
||||||
|
(ctSelf)->Log(cmCTest::logType, __FILE__, __LINE__, \
|
||||||
|
cmCTestLog_msg.str().c_str(), suppress); \
|
||||||
|
} while (false)
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
Reference in new issue
Block a user