diff options
author | Brad King <brad.king@kitware.com> | 2016-05-06 19:21:30 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2016-05-06 19:54:32 (GMT) |
commit | afca373510b5303d55fde17085718323ea9b2cb9 (patch) | |
tree | 58e3a35b917897d22abae23f9929c17c2b2a8bbc /Source | |
parent | 85425a3e6c40b1035a4be98466d8df9cad9bf479 (diff) | |
download | CMake-afca373510b5303d55fde17085718323ea9b2cb9.zip CMake-afca373510b5303d55fde17085718323ea9b2cb9.tar.gz CMake-afca373510b5303d55fde17085718323ea9b2cb9.tar.bz2 |
Help clang-format wrap after braces on long initializer lists
Add a long comment inside a few braced initializer lists in order to
convince clang-format to break after the opening brace and format the
list without indenting every value past the opening brace.
Diffstat (limited to 'Source')
-rw-r--r-- | Source/CPack/WiX/cmWIXAccessControlList.cxx | 1 | ||||
-rw-r--r-- | Source/cmTarget.cxx | 1 | ||||
-rw-r--r-- | Source/cmXCodeObject.cxx | 1 | ||||
-rw-r--r-- | Source/cmake.cxx | 1 |
4 files changed, 4 insertions, 0 deletions
diff --git a/Source/CPack/WiX/cmWIXAccessControlList.cxx b/Source/CPack/WiX/cmWIXAccessControlList.cxx index fc0d3d3..16a71e0 100644 --- a/Source/CPack/WiX/cmWIXAccessControlList.cxx +++ b/Source/CPack/WiX/cmWIXAccessControlList.cxx @@ -96,6 +96,7 @@ bool cmWIXAccessControlList::IsBooleanAttribute(std::string const& name) { static const char* validAttributes[] = { + /* clang-format needs this comment to break after the opening brace */ "Append", "ChangePermission", "CreateChild", diff --git a/Source/cmTarget.cxx b/Source/cmTarget.cxx index fe14af6..25d58f8 100644 --- a/Source/cmTarget.cxx +++ b/Source/cmTarget.cxx @@ -167,6 +167,7 @@ void cmTarget::SetMakefile(cmMakefile* mf) if (this->GetType() != cmState::UTILITY) { const char* configProps[] = { + /* clang-format needs this comment to break after the opening brace */ "ARCHIVE_OUTPUT_DIRECTORY_", "LIBRARY_OUTPUT_DIRECTORY_", "RUNTIME_OUTPUT_DIRECTORY_", diff --git a/Source/cmXCodeObject.cxx b/Source/cmXCodeObject.cxx index 87b2e89..e7d18b7 100644 --- a/Source/cmXCodeObject.cxx +++ b/Source/cmXCodeObject.cxx @@ -17,6 +17,7 @@ //---------------------------------------------------------------------------- const char* cmXCodeObject::PBXTypeNames[] = { + /* clang-format needs this comment to break after the opening brace */ "PBXGroup", "PBXBuildStyle", "PBXProject", "PBXHeadersBuildPhase", "PBXSourcesBuildPhase", "PBXFrameworksBuildPhase", "PBXNativeTarget", "PBXFileReference", "PBXBuildFile", "PBXContainerItemProxy", diff --git a/Source/cmake.cxx b/Source/cmake.cxx index 589ef1f..3319af1 100644 --- a/Source/cmake.cxx +++ b/Source/cmake.cxx @@ -1431,6 +1431,7 @@ int cmake::ActualConfigure() const char* GeneratorName; }; VSRegistryEntryName version[] = { + /* clang-format needs this comment to break after the opening brace */ {"7.1", "Visual Studio 7 .NET 2003"}, {"8.0", "Visual Studio 8 2005"}, {"9.0", "Visual Studio 9 2008"}, |