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 /Tests | |
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 'Tests')
-rw-r--r-- | Tests/CMakeLib/testVisualStudioSlnParser.cxx | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/Tests/CMakeLib/testVisualStudioSlnParser.cxx b/Tests/CMakeLib/testVisualStudioSlnParser.cxx index 5007ab8..cfecf74 100644 --- a/Tests/CMakeLib/testVisualStudioSlnParser.cxx +++ b/Tests/CMakeLib/testVisualStudioSlnParser.cxx @@ -69,6 +69,7 @@ int testVisualStudioSlnParser(int, char*[]) "cmsysTestsCxx", "cmsys_c", "cmw9xcom", "cmzlib", "cpack", "ctest", "documentation", "memcheck_fail", "pseudo_BC", "pseudo_purify", "pseudo_valgrind", "test_clean", "uninstall" + /* clang-format needs this comment to break after the opening brace */ }; const size_t expectedProjectCount = sizeof(names) / sizeof(*names); if (projects.size() != expectedProjectCount) @@ -160,6 +161,7 @@ int testVisualStudioSlnParser(int, char*[]) { "header", "projectArgs", "topLevel", "projectContents", "projectSection", "global", "unclosed", "strayQuote", "strayParen", "strayQuote2" + /* clang-format needs this comment to break after the opening brace */ }; for (size_t idx = 0; idx < sizeof(files) / sizeof(files[0]); ++idx) { |