summaryrefslogtreecommitdiffstats
path: root/Source/cmCTest.h
diff options
context:
space:
mode:
authorDaniel Pfeifer <daniel@pfeifer-mail.de>2017-02-17 22:27:34 (GMT)
committerDaniel Pfeifer <daniel@pfeifer-mail.de>2017-03-23 22:08:56 (GMT)
commitbcd08aa383e92b3fe53faa23cb7509796b9dd8db (patch)
tree35c54412fbc5e1e2dfea36955c12950808615faf /Source/cmCTest.h
parentf0f60c548a3c3156f6488c1921f5b64ea33f5410 (diff)
downloadCMake-bcd08aa383e92b3fe53faa23cb7509796b9dd8db.zip
CMake-bcd08aa383e92b3fe53faa23cb7509796b9dd8db.tar.gz
CMake-bcd08aa383e92b3fe53faa23cb7509796b9dd8db.tar.bz2
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.
Diffstat (limited to 'Source/cmCTest.h')
-rw-r--r--Source/cmCTest.h32
1 files changed, 16 insertions, 16 deletions
diff --git a/Source/cmCTest.h b/Source/cmCTest.h
index ebdc8b0..be736da 100644
--- a/Source/cmCTest.h
+++ b/Source/cmCTest.h
@@ -20,22 +20,6 @@ class cmGeneratedFileStream;
class cmMakefile;
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
* \brief Represents a ctest invocation.
*
@@ -647,4 +631,20 @@ inline std::ostream& operator<<(std::ostream& os, const cmCTestLogWrite& c)
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