[clang] [clang-format] Fix Macros configuration not working with try/catch expansions (PR #184891)

Harris Hancock via cfe-commits cfe-commits at lists.llvm.org
Tue Mar 10 09:47:36 PDT 2026


harrishancock wrote:

Thanks for the reviews, both of you.

> I think we should just revert https://github.com/llvm/llvm-project/commit/6a0484f04b628870fb7cd0757a72d73294ff5346 like what we did with other similar commits after LK_C had been added.

Great suggestion -- I tried this and it worked! This PR's non-test code diff is now just a bunch of deletions.

The downside with this version is that Objective-C presumably sees a behavior change, since I think there's no equivalent to `LK_C` for Objective-C. Presumably that is acceptable?

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


More information about the cfe-commits mailing list