[Cmake-commits] CMake branch, next, updated. v3.8.0-rc2-614-g2b1a230

Kitware Robot kwrobot at kitware.com
Thu Mar 23 19:25:02 EDT 2017


This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "CMake".

The branch, next has been updated
       via  2b1a2307f2e37686a2f2cdc4a52104fa04c48ccc (commit)
       via  41ec352832037d316c34b3eba336eeb7f4163d86 (commit)
       via  72ea66b1cf28bba68f2b81637864a330e3ae715f (commit)
       via  2a827b8244d451071c02e3a3c8398bcb8b0e01fd (commit)
       via  bcd08aa383e92b3fe53faa23cb7509796b9dd8db (commit)
      from  e5276930c157cdaf147f97f5dd2bd99f4752fbce (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
https://cmake.org/gitweb?p=cmake.git;a=commitdiff;h=2b1a2307f2e37686a2f2cdc4a52104fa04c48ccc
commit 2b1a2307f2e37686a2f2cdc4a52104fa04c48ccc
Merge: e527693 41ec352
Author:     Daniel Pfeifer <daniel at pfeifer-mail.de>
AuthorDate: Thu Mar 23 23:22:18 2017 +0000
Commit:     Kitware Robot <kwrobot at kitware.com>
CommitDate: Thu Mar 23 19:22:20 2017 -0400

    Stage topic 'iwyu'
    
    Topic-id: 23241
    Topic-url: https://gitlab.kitware.com/cmake/cmake/merge_requests/619


https://cmake.org/gitweb?p=cmake.git;a=commitdiff;h=41ec352832037d316c34b3eba336eeb7f4163d86
commit 41ec352832037d316c34b3eba336eeb7f4163d86
Author:     Daniel Pfeifer <daniel at pfeifer-mail.de>
AuthorDate: Thu Mar 23 23:27:08 2017 +0100
Commit:     Daniel Pfeifer <daniel at pfeifer-mail.de>
CommitDate: Thu Mar 23 23:38:46 2017 +0100

    IWYU: use pragma export

diff --git a/Source/cmConfigure.cmake.h.in b/Source/cmConfigure.cmake.h.in
index 26f1df2..5f89ba1 100644
--- a/Source/cmConfigure.cmake.h.in
+++ b/Source/cmConfigure.cmake.h.in
@@ -3,7 +3,7 @@
 #ifndef cmConfigure_h
 #define cmConfigure_h
 
-#include <cmsys/Configure.hxx> // IWYU pragma: keep
+#include <cmsys/Configure.hxx> // IWYU pragma: export
 
 #ifdef _MSC_VER
 #pragma warning(disable : 4786)
diff --git a/Source/cmDynamicLoader.cxx b/Source/cmDynamicLoader.cxx
index a30b642..39a59fc 100644
--- a/Source/cmDynamicLoader.cxx
+++ b/Source/cmDynamicLoader.cxx
@@ -4,7 +4,6 @@
 
 #include <cmConfigure.h>
 
-#include <cmsys/DynamicLoader.hxx>
 #include <map>
 #include <string>
 #include <utility>
diff --git a/Source/cmDynamicLoader.h b/Source/cmDynamicLoader.h
index d14f81e..5d69400 100644
--- a/Source/cmDynamicLoader.h
+++ b/Source/cmDynamicLoader.h
@@ -10,7 +10,7 @@
 
 #include <cmConfigure.h> // IWYU pragma: keep
 
-#include <cmsys/DynamicLoader.hxx>
+#include "cmsys/DynamicLoader.hxx" // IWYU pragma: export
 
 class cmDynamicLoader
 {
diff --git a/Source/cmSystemTools.cxx b/Source/cmSystemTools.cxx
index b7afa10..b2e3c6a 100644
--- a/Source/cmSystemTools.cxx
+++ b/Source/cmSystemTools.cxx
@@ -33,7 +33,6 @@
 #include <cmsys/FStream.hxx>
 #include <cmsys/RegularExpression.hxx>
 #include <cmsys/System.h>
-#include <cmsys/SystemTools.hxx>
 #include <cmsys/Terminal.h>
 #include <ctype.h>
 #include <errno.h>
diff --git a/Source/cmSystemTools.h b/Source/cmSystemTools.h
index 10e8280..070f81f 100644
--- a/Source/cmSystemTools.h
+++ b/Source/cmSystemTools.h
@@ -5,9 +5,9 @@
 
 #include <cmConfigure.h> // IWYU pragma: keep
 
+#include "cmsys/SystemTools.hxx" // IWYU pragma: export
 #include <cmProcessOutput.h>
 #include <cmsys/Process.h>
-#include <cmsys/SystemTools.hxx>
 #include <stddef.h>
 #include <string>
 #include <vector>

https://cmake.org/gitweb?p=cmake.git;a=commitdiff;h=72ea66b1cf28bba68f2b81637864a330e3ae715f
commit 72ea66b1cf28bba68f2b81637864a330e3ae715f
Author:     Daniel Pfeifer <daniel at pfeifer-mail.de>
AuthorDate: Thu Mar 23 23:19:45 2017 +0100
Commit:     Daniel Pfeifer <daniel at pfeifer-mail.de>
CommitDate: Thu Mar 23 23:20:10 2017 +0100

    Autogen: include what you use

diff --git a/Source/cmQtAutoGeneratorCommon.cxx b/Source/cmQtAutoGeneratorCommon.cxx
index dcd61a3..2498fe8 100644
--- a/Source/cmQtAutoGeneratorCommon.cxx
+++ b/Source/cmQtAutoGeneratorCommon.cxx
@@ -8,6 +8,7 @@
 #include <cmsys/RegularExpression.hxx>
 
 #include <sstream>
+#include <stddef.h>
 
 // - Static functions
 
diff --git a/Source/cmQtAutoGeneratorCommon.h b/Source/cmQtAutoGeneratorCommon.h
index b54b6fa..b004005 100644
--- a/Source/cmQtAutoGeneratorCommon.h
+++ b/Source/cmQtAutoGeneratorCommon.h
@@ -3,13 +3,10 @@
 #ifndef cmQtAutoGeneratorCommon_h
 #define cmQtAutoGeneratorCommon_h
 
-#include <cmConfigure.h> // IWYU pragma: keep
+#include <cmConfigure.h>
 #include <string>
 #include <vector>
 
-class cmGeneratorTarget;
-class cmLocalGenerator;
-
 class cmQtAutoGeneratorCommon
 {
   // - Types and statics
diff --git a/Source/cmQtAutoGeneratorInitializer.cxx b/Source/cmQtAutoGeneratorInitializer.cxx
index 6ebc234..ead3dfc 100644
--- a/Source/cmQtAutoGeneratorInitializer.cxx
+++ b/Source/cmQtAutoGeneratorInitializer.cxx
@@ -7,12 +7,11 @@
 #include "cmCustomCommandLines.h"
 #include "cmFilePathChecksum.h"
 #include "cmGeneratorTarget.h"
-#include "cmGlobalGenerator.h"
 #include "cmLocalGenerator.h"
 #include "cmMakefile.h"
 #include "cmOutputConverter.h"
 #include "cmSourceFile.h"
-#include "cmSourceFileLocation.h"
+#include "cmSourceGroup.h"
 #include "cmState.h"
 #include "cmSystemTools.h"
 #include "cmTarget.h"
@@ -25,11 +24,8 @@
 #include <algorithm>
 #include <cmConfigure.h>
 #include <cmsys/FStream.hxx>
-#include <cmsys/RegularExpression.hxx>
 #include <map>
 #include <set>
-#include <sstream>
-#include <string.h>
 #include <string>
 #include <sys/stat.h>
 #include <utility>

https://cmake.org/gitweb?p=cmake.git;a=commitdiff;h=2a827b8244d451071c02e3a3c8398bcb8b0e01fd
commit 2a827b8244d451071c02e3a3c8398bcb8b0e01fd
Author:     Daniel Pfeifer <daniel at pfeifer-mail.de>
AuthorDate: Fri Feb 17 23:28:58 2017 +0100
Commit:     Daniel Pfeifer <daniel at pfeifer-mail.de>
CommitDate: Thu Mar 23 23:08:57 2017 +0100

    cmCPackGenerator: 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.

diff --git a/Source/CPack/cmCPackGenerator.h b/Source/CPack/cmCPackGenerator.h
index 57b8fff..39fd2cc 100644
--- a/Source/CPack/cmCPackGenerator.h
+++ b/Source/CPack/cmCPackGenerator.h
@@ -17,20 +17,6 @@ class cmCPackLog;
 class cmInstalledFile;
 class cmMakefile;
 
-#define cmCPackTypeMacro(klass, superclass)                                   \
-  typedef superclass Superclass;                                              \
-  const char* GetNameOfClass() CM_OVERRIDE { return #klass; }                 \
-  static cmCPackGenerator* CreateGenerator() { return new klass; }            \
-  class cmCPackTypeMacro_UseTrailingSemicolon
-
-#define cmCPackLogger(logType, msg)                                           \
-  do {                                                                        \
-    std::ostringstream cmCPackLog_msg;                                        \
-    cmCPackLog_msg << msg;                                                    \
-    this->Logger->Log(logType, __FILE__, __LINE__,                            \
-                      cmCPackLog_msg.str().c_str());                          \
-  } while (false)
-
 /** \class cmCPackGenerator
  * \brief A superclass of all CPack Generators
  *
@@ -311,4 +297,18 @@ private:
   cmMakefile* MakefileMap;
 };
 
+#define cmCPackTypeMacro(klass, superclass)                                   \
+  typedef superclass Superclass;                                              \
+  const char* GetNameOfClass() CM_OVERRIDE { return #klass; }                 \
+  static cmCPackGenerator* CreateGenerator() { return new klass; }            \
+  class cmCPackTypeMacro_UseTrailingSemicolon
+
+#define cmCPackLogger(logType, msg)                                           \
+  do {                                                                        \
+    std::ostringstream cmCPackLog_msg;                                        \
+    cmCPackLog_msg << msg;                                                    \
+    this->Logger->Log(logType, __FILE__, __LINE__,                            \
+                      cmCPackLog_msg.str().c_str());                          \
+  } while (false)
+
 #endif

https://cmake.org/gitweb?p=cmake.git;a=commitdiff;h=bcd08aa383e92b3fe53faa23cb7509796b9dd8db
commit bcd08aa383e92b3fe53faa23cb7509796b9dd8db
Author:     Daniel Pfeifer <daniel at pfeifer-mail.de>
AuthorDate: Fri Feb 17 23:27:34 2017 +0100
Commit:     Daniel Pfeifer <daniel at pfeifer-mail.de>
CommitDate: Thu Mar 23 23:08:56 2017 +0100

    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.

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

-----------------------------------------------------------------------

Summary of changes:
 Source/CPack/cmCPackGenerator.h         |   28 +++++++++++++--------------
 Source/cmCTest.h                        |   32 +++++++++++++++----------------
 Source/cmConfigure.cmake.h.in           |    2 +-
 Source/cmDynamicLoader.cxx              |    1 -
 Source/cmDynamicLoader.h                |    2 +-
 Source/cmQtAutoGeneratorCommon.cxx      |    1 +
 Source/cmQtAutoGeneratorCommon.h        |    5 +----
 Source/cmQtAutoGeneratorInitializer.cxx |    6 +-----
 Source/cmSystemTools.cxx                |    1 -
 Source/cmSystemTools.h                  |    2 +-
 10 files changed, 36 insertions(+), 44 deletions(-)


hooks/post-receive
-- 
CMake


More information about the Cmake-commits mailing list