[PATCH] D37531: Add an usage example of BreakBeforeBraces

Sylvestre Ledru via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Wed Sep 6 14:43:50 PDT 2017


sylvestre.ledru created this revision.

https://reviews.llvm.org/D37531

Files:
  docs/ClangFormatStyleOptions.rst


Index: docs/ClangFormatStyleOptions.rst
===================================================================
--- docs/ClangFormatStyleOptions.rst
+++ docs/ClangFormatStyleOptions.rst
@@ -533,6 +533,16 @@
   If ``BreakBeforeBraces`` is set to ``BS_Custom``, use this to specify how
   each individual brace case should be handled. Otherwise, this is ignored.
 
+  .. code-block:: yaml
+
+    # Example of usage: 
+    BreakBeforeBraces: Custom
+    BraceWrapping:
+      AfterEnum: true
+      AfterStruct: false
+      SplitEmptyFunction: false
+
+
   Nested configuration flags:
 
 


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D37531.114062.patch
Type: text/x-patch
Size: 583 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20170906/191f193b/attachment.bin>


More information about the cfe-commits mailing list