[libc-commits] [libc] [libc] start fix readability-identifier-naming lints (PR #83342)

via libc-commits libc-commits at lists.llvm.org
Wed Feb 28 13:49:03 PST 2024


lntue wrote:

> > > Probably we need to add a key for constexpr functions.
> > 
> > https://clang.llvm.org/extra/clang-tidy/checks/readability/identifier-naming.html#cmdoption-arg-ConstexprFunctionCase
> 
> Adding this will result in a whole host of other changes, since we're internally inconsistent at the moment.
> 
> ```
> $ ninja -k2000 libc-lint 2>&1 | grep readability-identifier-naming | grep 'constexpr function' | sort -u | wc -l
> 170
> ```
> :)

Those `constexpr` functions that we capitalized the names are more like `consteval` functions.  Unfortunately `constexpr` works differently for functions vs variables.

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


More information about the libc-commits mailing list