[clang-tools-extra] [clang-tidy] Add more constexpr options to `readability-identifier-naming` (PR #162160)
via cfe-commits
cfe-commits at lists.llvm.org
Thu Oct 9 07:11:39 PDT 2025
================
@@ -307,6 +311,58 @@ After:
~pre_foo_post();
};
+.. option:: ClassConstexprCase
+
+ When defined, the check will ensure class ``constexpr`` names conform to
+ the selected casing.
+
+.. option:: ClassConstexprPrefix
+
+ When defined, the check will ensure class ``constexpr`` names will add the
+ prefixed with the given value (regardless of casing).
+
+.. option:: ClassConstexprIgnoredRegexp
+
+ Identifier naming checks won't be enforced for class ``constexpr`` names
+ matching this regular expression.
+
+.. option:: ClassConstexprSuffix
+
+ When defined, the check will ensure class ``constexpr`` names will add the
+ suffix with the given value (regardless of casing).
+
+.. option:: ClassConstexprHungarianPrefix
+
+ When enabled, the check ensures that the declared identifier will
+ have a Hungarian notation prefix based on the declared type.
----------------
EugeneZelenko wrote:
```suggestion
When enabled, the check ensures that the declared identifier will have a
Hungarian notation prefix based on the declared type.
```
Same in other places.
https://github.com/llvm/llvm-project/pull/162160
More information about the cfe-commits
mailing list