summaryrefslogtreecommitdiff
path: root/Modules/CMakeCompilerABI.h
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2016-05-06 15:21:30 -0400
committerBrad King <brad.king@kitware.com>2016-05-06 15:54:32 -0400
commitafca373510b5303d55fde17085718323ea9b2cb9 (patch)
tree58e3a35b917897d22abae23f9929c17c2b2a8bbc /Modules/CMakeCompilerABI.h
parent85425a3e6c40b1035a4be98466d8df9cad9bf479 (diff)
downloadcmake-afca373510b5303d55fde17085718323ea9b2cb9.tar.gz
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 'Modules/CMakeCompilerABI.h')
-rw-r--r--Modules/CMakeCompilerABI.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/Modules/CMakeCompilerABI.h b/Modules/CMakeCompilerABI.h
index 26ae4db6a6..1e7b44c703 100644
--- a/Modules/CMakeCompilerABI.h
+++ b/Modules/CMakeCompilerABI.h
@@ -6,7 +6,9 @@ const char info_sizeof_dptr[] = {
'I', 'N', 'F', 'O', ':', 's', 'i', 'z', 'e', 'o', 'f', '_', 'd', 'p', 't', 'r', '[',
('0' + ((SIZEOF_DPTR / 10)%10)),
('0' + (SIZEOF_DPTR % 10)),
- ']','\0'};
+ ']','\0'
+ /* clang-format needs this comment to break after the opening brace */
+};
/*--------------------------------------------------------------------------*/