[PATCH] D99840: [clang-format] Correctly attach enum braces with ShortEnums disabled

MyDeveloperDay via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Fri Aug 27 01:47:30 PDT 2021


MyDeveloperDay added a comment.

Possible bug https://bugs.llvm.org/show_bug.cgi?id=51640



================
Comment at: clang/include/clang/Format/Format.h:547
   ///   false:
-  ///   enum
-  ///   {
+  ///   enum {
   ///     A,
----------------
Post commit Nit: @lunasorcery 

Rule of thumb in clang-format dev, if you change Format.h its very likely that ClangFormatStyleOptions.rst will need updating

This can be done by running clang/docs/tools/dump_format_style.py and that not always obvious.


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D99840



More information about the cfe-commits mailing list