[clang-format] Fix documentation of bcc1dee600
authorBjörn Schäpers <bjoern@hazardy.de>
Mon, 18 Jan 2021 09:58:20 +0000 (10:58 +0100)
committerBjörn Schäpers <bjoern@hazardy.de>
Mon, 18 Jan 2021 10:03:13 +0000 (11:03 +0100)
That was an oversight.

Differential Revision: https://reviews.llvm.org/D93776

clang/docs/ClangFormatStyleOptions.rst
clang/include/clang/Format/Format.h

index 928d136..27dcee8 100644 (file)
@@ -3077,7 +3077,10 @@ the configuration (without a prefix: ``Auto``).
 **StatementAttributeLikeMacros** (``std::vector<std::string>``)
   Macros which are ignored in front of a statement, as if they were an
   attribute. So that they are not parsed as identifier, for example for Qts
-  emit. \code
+  emit.
+
+  .. code-block:: c++
+
     AlignConsecutiveDeclarations: true
     StatementAttributeLikeMacros: []
     unsigned char data = 'x';
index 943a33c..3858037 100644 (file)
@@ -2678,7 +2678,8 @@ struct FormatStyle {
 
   /// Macros which are ignored in front of a statement, as if they were an
   /// attribute. So that they are not parsed as identifier, for example for Qts
-  /// emit. \code
+  /// emit.
+  /// \code
   ///   AlignConsecutiveDeclarations: true
   ///   StatementAttributeLikeMacros: []
   ///   unsigned char data = 'x';