[PATCH] D69951: [clang-format] NFC allow Format.h to be clang-formatted but still maintain the same doc layout in ClangFormatStyleOptions.rst

Mitchell via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Fri Nov 8 09:58:42 PST 2019


mitchell-stellar added inline comments.


================
Comment at: clang/docs/ClangFormatStyleOptions.rst:1589
+  statement. Switch statement body is always indented one level more than
+  case labels. \code
      false:                                 true:
----------------
This generated rst is not correct. See below.


================
Comment at: clang/include/clang/Format/Format.h:1313
+  /// statement. Switch statement body is always indented one level more than
+  /// case labels. \code
   ///    false:                                 true:
----------------
`\code` needs to be on its own line. Otherwise you get the incorrectly generated .rst I mentioned earlier.


CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D69951/new/

https://reviews.llvm.org/D69951





More information about the cfe-commits mailing list