[PATCH] D41487: [clang-format] Adds a FormatStyleSet

Krasimir Georgiev via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Thu Dec 21 07:12:51 PST 2017


krasimir added inline comments.


================
Comment at: lib/Format/Format.cpp:903-907
+  for (int i = Styles.size() - 1; i >= 0; --i) {
+    if (Styles[i].Language != FormatStyle::LK_None) {
+      Style->AddLanguageStyle(Styles[i]);
     }
   }
----------------
klimek wrote:
> This seems a bit backwards. I'd have expected us to build up a Style structure after parsing above, and then just copy that into the result in the end.
Do you mean to build up a StyleSet structure?


Repository:
  rC Clang

https://reviews.llvm.org/D41487





More information about the cfe-commits mailing list