Commit 5afac50f authored by Daniel Pfeifer's avatar Daniel Pfeifer
Browse files

cmConfigure: Ensure separate include block in headers

Make sure that `#include <cmConfigure.h>` is followed by an empty line
in header files.  This is necessary to make sure that changing <> to ""
does not affect the include ordering of clang-format.

Automate with:

git grep -l '#include <cmConfigure.h>' | grep -v '.cxx$' \
| xargs sed -i '/#include <cmConfigure.h>/ { N; N; s/\n\{1,2\}/\n\n/ }'
parent ff4fa70c
......@@ -4,6 +4,7 @@
#define cmCPackBundleGenerator_h
#include <cmConfigure.h>
#include <string>
#include "cmCPackDragNDropGenerator.h"
......
......@@ -4,6 +4,7 @@
#define cmCPackDragNDropGenerator_h
#include <cmConfigure.h>
#include <sstream>
#include <stddef.h>
#include <string>
......
......@@ -4,6 +4,7 @@
#define cmCPackOSXX11Generator_h
#include <cmConfigure.h>
#include <string>
#include "cmCPackGenerator.h"
......
......@@ -4,6 +4,7 @@
#define cmCPackPKGGenerator_h
#include <cmConfigure.h>
#include <set>
#include <sstream>
#include <string>
......
......@@ -4,6 +4,7 @@
#define cmCPackProductBuildGenerator_h
#include <cmConfigure.h>
#include <string>
#include "cmCPackGenerator.h"
......
......@@ -4,6 +4,7 @@
#define cmAddCompileOptionsCommand_h
#include <cmConfigure.h>
#include <string>
#include <vector>
......
......@@ -4,6 +4,7 @@
#define cmAddCustomCommandCommand_h
#include <cmConfigure.h>
#include <string>
#include <vector>
......
......@@ -4,6 +4,7 @@
#define cmAddCustomTargetCommand_h
#include <cmConfigure.h>
#include <string>
#include <vector>
......
......@@ -4,6 +4,7 @@
#define cmAddDefinitionsCommand_h
#include <cmConfigure.h>
#include <string>
#include <vector>
......
......@@ -4,6 +4,7 @@
#define cmDependenciessCommand_h
#include <cmConfigure.h>
#include <string>
#include <vector>
......
......@@ -4,6 +4,7 @@
#define cmExecutablesCommand_h
#include <cmConfigure.h>
#include <string>
#include <vector>
......
......@@ -4,6 +4,7 @@
#define cmLibrarysCommand_h
#include <cmConfigure.h>
#include <string>
#include <vector>
......
......@@ -4,6 +4,7 @@
#define cmAddSubDirectoryCommand_h
#include <cmConfigure.h>
#include <string>
#include <vector>
......
......@@ -4,6 +4,7 @@
#define cmAddTestCommand_h
#include <cmConfigure.h>
#include <string>
#include <vector>
......
......@@ -4,6 +4,7 @@
#define cmAuxSourceDirectoryCommand_h
#include <cmConfigure.h>
#include <string>
#include <vector>
......
......@@ -4,6 +4,7 @@
#define cmBreakCommand_h
#include <cmConfigure.h>
#include <string>
#include <vector>
......
......@@ -4,6 +4,7 @@
#define cmBuildCommand_h
#include <cmConfigure.h>
#include <string>
#include <vector>
......
......@@ -4,6 +4,7 @@
#define cmBuildNameCommand_h
#include <cmConfigure.h>
#include <string>
#include <vector>
......
......@@ -4,6 +4,7 @@
#define cmCMakeHostSystemInformationCommand_h
#include <cmConfigure.h>
#include <stddef.h>
#include <string>
#include <vector>
......
......@@ -4,6 +4,7 @@
#define cmCMakeMinimumRequired_h
#include <cmConfigure.h>
#include <string>
#include <vector>
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment