r338366 - clang-format: try to make the doc for ConstructorInitializerAllOnOneLineOrOnePerLine more clear
Hans Wennborg via cfe-commits
cfe-commits at lists.llvm.org
Tue Jul 31 05:42:03 PDT 2018
Author: hans
Date: Tue Jul 31 05:42:02 2018
New Revision: 338366
URL: http://llvm.org/viewvc/llvm-project?rev=338366&view=rev
Log:
clang-format: try to make the doc for ConstructorInitializerAllOnOneLineOrOnePerLine more clear
PR38080 complained that the "OnePerLine" case wasn't previously shown.
Modified:
cfe/trunk/docs/ClangFormatStyleOptions.rst
Modified: cfe/trunk/docs/ClangFormatStyleOptions.rst
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/docs/ClangFormatStyleOptions.rst?rev=338366&r1=338365&r2=338366&view=diff
==============================================================================
--- cfe/trunk/docs/ClangFormatStyleOptions.rst (original)
+++ cfe/trunk/docs/ClangFormatStyleOptions.rst Tue Jul 31 05:42:02 2018
@@ -1134,17 +1134,21 @@ the configuration (without a prefix: ``A
.. code-block:: c++
true:
- SomeClass::Constructor()
- : aaaaaaaa(aaaaaaaa), aaaaaaaa(aaaaaaaa), aaaaaaaa(aaaaaaaaaaaaaaaaaaaaaaaaa) {
- return 0;
- }
+ FitsOnOneLine::Constructor()
+ : aaaaaaaaaaaaa(aaaaaaaaaaaaaa), aaaaaaaaaaaaa(aaaaaaaaaaaaaa) {}
+
+ DoesntFit::Constructor()
+ : aaaaaaaaaaaaa(aaaaaaaaaaaaaa),
+ aaaaaaaaaaaaa(aaaaaaaaaaaaaa),
+ aaaaaaaaaaaaa(aaaaaaaaaaaaaa) {}
false:
- SomeClass::Constructor()
- : aaaaaaaa(aaaaaaaa), aaaaaaaa(aaaaaaaa),
- aaaaaaaa(aaaaaaaaaaaaaaaaaaaaaaaaa) {
- return 0;
- }
+ FitsOnOneLine::Constructor()
+ : aaaaaaaaaaaaa(aaaaaaaaaaaaaa), aaaaaaaaaaaaa(aaaaaaaaaaaaaa) {}
+
+ DoesntFit::Constructor()
+ : aaaaaaaaaaaaa(aaaaaaaaaaaaaa), aaaaaaaaaaaaa(aaaaaaaaaaaaaa),
+ aaaaaaaaaaaaa(aaaaaaaaaaaaaa) {}
**ConstructorInitializerIndentWidth** (``unsigned``)
The number of characters to use for indentation of constructor
More information about the cfe-commits
mailing list