[clang] [clang-format] Add support for absl nullability macros (PR #130346)

Owen Pan via cfe-commits cfe-commits at lists.llvm.org
Sun Mar 9 21:20:29 PDT 2025


owenca wrote:

I wish they had not been added to the default but can't take them off the lists for backward compatibility. I don't think we should add more. The reason is that people wouldn't be able to turn off the special meaning if they wanted to use e.g. `absl_nonnull` as a regular identifier.

Can you log an issue for `std::vector<int * absl_nonnull> y;`? It's a bug IMO and can be easily fixed.

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


More information about the cfe-commits mailing list