[PATCH] D78982: [clang-format] Fix Microsoft style for enums

Aaron Smith via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Tue Apr 28 12:56:40 PDT 2020


asmith marked 5 inline comments as done.
asmith added inline comments.


================
Comment at: clang/lib/Format/UnwrappedLineParser.cpp:1767
     if (FormatTok->Tok.getKind() == ClosingBraceKind) {
+      if (!Style.AllowEnumsOnASingleLine)
+        addUnwrappedLine();
----------------
This and the line below are probably applying to more than enums. Any suggestions on a better fix?


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

https://reviews.llvm.org/D78982





More information about the cfe-commits mailing list