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

via cfe-commits cfe-commits at lists.llvm.org
Mon Mar 2 01:13:51 PST 2026


owenca wrote:

> > > * I initially tried to use the regular Macros configuration option to accomplish this, but it appears not to be suitable -- it formats macros in isolation, and refuses to cuddle the `KJ_CATCH(e)` with the previous "try block", which is what we want.
> > 
> > 
> > IMO we should fix `Macros` instead of adding yet another macro option for a specific style. Also, we probably should deprecate `IfMacros` and use `Macros` instead.
> 
> That would be best, but can it be done? I have too little knowledge in this area.

We won't know until we try and find out.

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


More information about the cfe-commits mailing list