[PATCH] D121450: [clang-format] Handle attributes before case label.

Owen Pan via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Fri Mar 11 14:44:41 PST 2022


owenpan accepted this revision.
owenpan added inline comments.


================
Comment at: clang/lib/Format/UnwrappedLineParser.cpp:578
+        break;
+
       LLVM_FALLTHROUGH;
----------------
Can we remove this empty line?


================
Comment at: clang/lib/Format/UnwrappedLineParser.h:125-126
   FormatToken *parseIfThenElse(IfStmtKind *IfKind, bool KeepBraces = false);
+  void handleAttributes();
+  bool handleCppAttributes();
   void parseTryCatch();
----------------
Can we move them 1 line up so that the order of the declarations here will be the same as that of the definitions in the .cpp file?


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D121450



More information about the cfe-commits mailing list