[PATCH] D134103: [clang-format] Skip token annotation in passes that don't need it

Owen Pan via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Sat Sep 17 14:02:15 PDT 2022


owenpan added inline comments.


================
Comment at: clang/lib/Format/Format.cpp:3276
       Passes.emplace_back([&](const Environment &Env) {
-        return BracesInserter(Env, Expanded).process();
+        return BracesInserter(Env, Expanded).process(/*SkipsAnnotation=*/true);
       });
----------------
HazardyKnusperkeks wrote:
> Superfluous s here and in all comments. :)
Thanks! Will fix them before landing.


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D134103



More information about the cfe-commits mailing list