[PATCH] D33351: [clang-format] Handle trailing comment sections in import statement lines

Daniel Jasper via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Fri May 19 03:41:28 PDT 2017


djasper accepted this revision.
djasper added a comment.
This revision is now accepted and ready to land.

nice



================
Comment at: lib/Format/ContinuationIndenter.cpp:590
         1u, std::min(Current.NewlinesBefore, Style.MaxEmptyLinesToKeep + 1));
+    bool InPPDirective =
+        State.Line->InPPDirective && State.Line->Type != LT_ImportStatement;
----------------
Call this "ContinuePPDirective".


================
Comment at: lib/Format/TokenAnnotator.cpp:713
         next();
-      }
+      } next();
     }
----------------
wat?


https://reviews.llvm.org/D33351





More information about the cfe-commits mailing list