Author: Björn Schäpers Date: 2021-01-18T11:03:13+01:00 New Revision: b43075e34a598460fe1590d950862a26449e8d10
URL: https://github.com/llvm/llvm-project/commit/b43075e34a598460fe1590d950862a26449e8d10 DIFF: https://github.com/llvm/llvm-project/commit/b43075e34a598460fe1590d950862a26449e8d10.diff LOG: [clang-format] Fix documentation of bcc1dee600 That was an oversight. Differential Revision: https://reviews.llvm.org/D93776 Added: Modified: clang/docs/ClangFormatStyleOptions.rst clang/include/clang/Format/Format.h Removed: ################################################################################ diff --git a/clang/docs/ClangFormatStyleOptions.rst b/clang/docs/ClangFormatStyleOptions.rst index 928d136ef9ff..27dcee83a538 100644 --- a/clang/docs/ClangFormatStyleOptions.rst +++ b/clang/docs/ClangFormatStyleOptions.rst @@ -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'; diff --git a/clang/include/clang/Format/Format.h b/clang/include/clang/Format/Format.h index 943a33cee4fd..385803700d58 100644 --- a/clang/include/clang/Format/Format.h +++ b/clang/include/clang/Format/Format.h @@ -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'; _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits