[PATCH] D110833: [clang-format] Refactor SpaceBeforeParens to add flags

Christian Rayroud via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Mon Oct 25 03:09:14 PDT 2021


crayroud added inline comments.


================
Comment at: clang/lib/Format/TokenAnnotator.cpp:3170
+      // to add a space only before the first one
+      bool IsFirstLParen = true;
+      const FormatToken *Tok = Right.Previous;
----------------
I will simplify the following using Left.is(TT_FunctionDeclarationName)


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

https://reviews.llvm.org/D110833



More information about the cfe-commits mailing list