MyDeveloperDay added a subscriber: mitchell-stellar.
MyDeveloperDay added a comment.

Thanks for rebasing, I think this is a good idea I'm just not sure about how 
the option presents itself, would you consider changing it?



================
Comment at: clang/lib/Format/TokenAnnotator.cpp:3109
     return Right.HasUnescapedNewline;
+  if (isAllmanBrace(Left) && !Style.AllowShortEnumsOnASingleLine &&
+      (Line.startsWith(tok::kw_enum) ||
----------------
would you be happy to consider this being something like this instead?

`if (isAllmanBrace(Left) && Style.BraceWrapping.AfterEnum == 
FormatStyle::BWAE_Attach &...`


There is now precedent for the BraceWrapping styles to be an enum (see work by 
@mitchell-stellar who did something similar for `AfterControlStylement`)


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

https://reviews.llvm.org/D54628



_______________________________________________
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to