sylvestre.ledru created this revision.

Looks like we are out of sync between the doc and the code.


https://reviews.llvm.org/D37558

Files:
  docs/ClangFormatStyleOptions.rst

Index: docs/ClangFormatStyleOptions.rst
===================================================================
--- docs/ClangFormatStyleOptions.rst
+++ docs/ClangFormatStyleOptions.rst
@@ -679,7 +679,7 @@
 
   * ``bool IndentBraces`` Indent the wrapped braces themselves.
 
-  * ``bool SplitEmptyFunctionBody`` If ``false``, empty function body can be put on a single line.
+  * ``bool SplitEmptyFunction`` If ``false``, empty function body can be put on a single line.
     This option is used only if the opening brace of the function has
     already been wrapped, i.e. the `AfterFunction` brace wrapping mode is
     set, and the function could/should not be put on a single line (as per
@@ -691,7 +691,29 @@
       {}              {
                       }
 
+  * ``bool SplitEmptyRecord`` If ``false``, empty record (e.g. class, struct or union) body
+    can be put on a single line. This option is used only if the opening
+    brace of the record has already been wrapped, i.e. the `AfterClass`
+    (for classes) brace wrapping mode is set.
 
+    .. code-block:: c++
+
+      class Foo   vs.  class Foo
+      {}               {
+                       }
+
+  * ``bool SplitEmptyNamespace`` If ``false``, empty namespace body can be put on a single line.
+    This option is used only if the opening brace of the namespace has
+    already been wrapped, i.e. the `AfterNamespace` brace wrapping mode is
+    set.
+
+    .. code-block:: c++
+
+      namespace Foo   vs.  namespace Foo
+      {}                   {
+                           }
+
+
 **BreakAfterJavaFieldAnnotations** (``bool``)
   Break after each annotation on a field in Java files.
 
@@ -1144,7 +1166,7 @@
     IncludeCategories:
       - Regex:           '^"(llvm|llvm-c|clang|clang-c)/'
         Priority:        2
-      - Regex:           '^(<|"(gtest|isl|json)/)'
+      - Regex:           '^(<|"(gtest|gmock|isl|json)/)'
         Priority:        3
       - Regex:           '.*'
         Priority:        1
@@ -1180,7 +1202,7 @@
      }                                      }
 
 **IndentPPDirectives** (``PPDirectiveIndentStyle``)
-  Indent preprocessor directives on conditionals.
+  The preprocessor directive indenting style to use.
 
   Possible values:
 
@@ -1189,11 +1211,11 @@
 
     .. code-block:: c++
 
-      #if FOO
-      #if BAR
-      #include <foo>
-      #endif
-      #endif
+       #if FOO
+       #if BAR
+       #include <foo>
+       #endif
+       #endif
 
   * ``PPDIS_AfterHash`` (in configuration: ``AfterHash``)
     Indents directives after the hash.
@@ -1200,12 +1222,14 @@
 
     .. code-block:: c++
 
-      #if FOO
-      #  if BAR
-      #    include <foo>
-      #  endif
-      #endif
+       #if FOO
+       #  if BAR
+       #    include <foo>
+       #  endif
+       #endif
 
+
+
 **IndentWidth** (``unsigned``)
   The number of columns to use for indentation.
 
@@ -1318,8 +1342,12 @@
   * ``LK_TableGen`` (in configuration: ``TableGen``)
     Should be used for TableGen code.
 
+  * ``LK_TextProto`` (in configuration: ``TextProto``)
+    Should be used for Protocol Buffer messages in text format
+    (https://developers.google.com/protocol-buffers/).
 
 
+
 **MacroBlockBegin** (``std::string``)
   A regular expression matching macros that start a block.
 
_______________________________________________
cfe-commits mailing list
cfe-commits@lists.llvm.org
http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
  • [PATCH] D37558: Refresh th... Sylvestre Ledru via Phabricator via cfe-commits

Reply via email to