[clang] [clang-format] Add TryMacros and CatchMacros options (PR #183352)

Harris Hancock via cfe-commits cfe-commits at lists.llvm.org
Thu Feb 26 09:12:45 PST 2026


================
@@ -3059,7 +3059,11 @@ FormatToken *UnwrappedLineParser::parseIfThenElse(IfStmtKind *IfKind,
 
 void UnwrappedLineParser::parseTryCatch() {
   assert(FormatTok->isOneOf(tok::kw_try, tok::kw___try) && "'try' expected");
+  bool IsTryMacro = FormatTok->is(TT_TryMacro);
----------------
harrishancock wrote:

Fixed in https://github.com/llvm/llvm-project/pull/183352/changes/c7402cd181ff7d6ee93805d38e1aaa9d0a0f4a92

https://github.com/llvm/llvm-project/pull/183352


More information about the cfe-commits mailing list