[PATCH] D30532: Add examples to clang-format configuration

Manuel Klimek via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Thu Mar 2 06:38:37 PST 2017


klimek added inline comments.


================
Comment at: docs/ClangFormatStyleOptions.rst:218
+
+    #define A   \
+    int aaaa;   \
----------------
Do we really align these 3 spaces out?


================
Comment at: docs/ClangFormatStyleOptions.rst:447
+     SomeClass::Constructor()
+     : a(a)
+     , b(b)
----------------
Don't we align the : further to the right?


================
Comment at: docs/ClangFormatStyleOptions.rst:517
+
+     namespace a {} // namespace a;
+
----------------
I thought we don't do that for single lines?


================
Comment at: docs/ClangFormatStyleOptions.rst:729
+
+     template<int> void foo();
+
----------------
Missing the space?


https://reviews.llvm.org/D30532





More information about the cfe-commits mailing list