[clang] [clang-format] Macro list options now accept regular expressions (PR #242355)
via cfe-commits
cfe-commits at lists.llvm.org
Mon Nov 30 01:28:28 PST 2026
t-a-james wrote:
> Thanks for providing a PR, but I think an issue to discuss would've been better. Apart from my comments, I think the cost value ratio is bad. Adding a whole bunch of regexes, just so you don't need to type out a few macros in your configuration.
Thanks for the review. I think the cost value ratio is heavily project dependent. For example, @matthew-j-code and I work on an extremely large code base that's more than 25 years old. Like all codebases of that vintage, it uses macros. With this change, we add 10 regexes so we don't need to type out 1046 macro names. Maintaining that list of macros is, as I'm sure you can imagine, a pain and the cost value ratio of this changeset is extremely high.
https://github.com/llvm/llvm-project/pull/242355
More information about the cfe-commits
mailing list