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

Daniel Jasper via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Fri Mar 3 01:53:09 PST 2017


djasper added a comment.

Hm. I don't actually know whether these examples are useful as is. You only present one setting of the value in most cases. What's interesting is actually how the flag changes the behavior. I mean in most cases, this can be derived from the example, but in those cases, it's also fairly obvious what the flag does. Unfortunately, I also don't have a significantly better idea. Maybe something like https://clangformat.com/ is just better at handling this?



================
Comment at: include/clang/Format/Format.h:661
   /// \brief If ``true``, spaces will be inserted after ``[`` and before ``]``.
+  /// Lambdas or unspecified size array declarations will not be updated.
+  /// \code
----------------
"update" seems like the wrong word. Maybe "affected"?


https://reviews.llvm.org/D30532





More information about the cfe-commits mailing list