diff options
author | Daniel Jasper <djasper@google.com> | 2015-06-18 09:12:47 +0000 |
---|---|---|
committer | Daniel Jasper <djasper@google.com> | 2015-06-18 09:12:47 +0000 |
commit | 7b2b09b3070ab7ebaaa5103de1ddc88ad4805ce8 (patch) | |
tree | 3ce9e7908b712eecafc3e5e188a3c6bff58e1173 /docs | |
parent | 289b8ef73c8a9ed76600ba452c3e3f6aa9fb2aa7 (diff) | |
download | clang-7b2b09b3070ab7ebaaa5103de1ddc88ad4805ce8.tar.gz |
clang-format: Make AlwaysBreakBeforeMultilineStrings more conservative.
In essence this is meant to consistently indent multiline strings by a
fixed amount of spaces from the start of the line. Don't do this in
cases where it wouldn't help anyway.
Before:
someFunction(aaaaa,
"aaaaa"
"bbbbb");
After:
someFunction(aaaaa, "aaaaa"
"bbbbb");
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@240004 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'docs')
-rw-r--r-- | docs/ClangFormatStyleOptions.rst | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/docs/ClangFormatStyleOptions.rst b/docs/ClangFormatStyleOptions.rst index edec058b40..f4c4c8cc9a 100644 --- a/docs/ClangFormatStyleOptions.rst +++ b/docs/ClangFormatStyleOptions.rst @@ -228,6 +228,11 @@ the configuration (without a prefix: ``Auto``). **AlwaysBreakBeforeMultilineStrings** (``bool``) If ``true``, always break before multiline string literals. + This flag is mean to make cases where there are multiple multiline strings + in a file look more consistent. Thus, it will only take effect if wrapping + the string at that point leads to it being indented + ``ContinuationIndentWidth`` spaces from the start of the line. + **AlwaysBreakTemplateDeclarations** (``bool``) If ``true``, always break after the ``template<...>`` of a template declaration. |