[clang] [clang-format] Add AccessModifierMacros option (PR #187521)

via cfe-commits cfe-commits at lists.llvm.org
Thu Mar 19 22:41:54 PDT 2026


owenca wrote:

> > I don't think we accept it, you can use the `Macro` option.
> 
> This unfortunately doesn't work, I tried it already (and it was also tried in the linked bug). As near as I can tell, the token is reconstructed back to the unexpanded version before the token annotator runs, so we lose the expanded form.

I think we should fix the `Macros` option instead of adding a new one to work around the bug.

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


More information about the cfe-commits mailing list