[PATCH] D31408: Add more examples to clang-format configuration

Daniel Jasper via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Thu Mar 30 23:47:09 PDT 2017


djasper added a comment.

Generally please upload diffs with more contexts. For some here it's not even clear to which option they refer ;)



================
Comment at: docs/ClangFormatStyleOptions.rst:941
+     ContinuationIndentWidth: 2
+     ColumnLimit: 15
+
----------------
You could force line wraps with tailing //-comments instead.


================
Comment at: docs/ClangFormatStyleOptions.rst:978
+     original:                      vs.     true:
+     int *foo = 2;                          int *foo = 2;
+     int &j = i;                            int &j = i;
----------------
I think this example is very confusing. Possibly for this option, it doesn't really makes sense to give examples. Or don't have a before/after but instead have two examples where clang-format determines different pointer alignment?


https://reviews.llvm.org/D31408





More information about the cfe-commits mailing list