https://github.com/carlosgalvezp created
https://github.com/llvm/llvm-project/pull/227600
…members
This appears to be the intention based on the code:
```cpp
if (Decl->isStatic() && NamingStyles[SK_ClassMethod])
return SK_ClassMethod;
```
Fixes #227319
>From e2e108887b631b7a04cc7f7447b6baae9f494d50 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Carlos=20G=C3=A1lvez?= <[email protected]>
Date: Wed, 30 Sep 2026 08:09:22 +0000
Subject: [PATCH] [clang-tidy] Document that ClassMember* options apply only to
static members
This appears to be the intention based on the code:
if (Decl->isStatic() && NamingStyles[SK_ClassMethod])
return SK_ClassMethod;
Fixes #227319
---
.../clang-tidy/checks/readability/identifier-naming.md | 10 +++++-----
1 file changed, 5 insertions(+), 5 deletions(-)
diff --git
a/clang-tools-extra/docs/clang-tidy/checks/readability/identifier-naming.md
b/clang-tools-extra/docs/clang-tidy/checks/readability/identifier-naming.md
index 8e230965690b6..feddea34057dd 100644
--- a/clang-tools-extra/docs/clang-tidy/checks/readability/identifier-naming.md
+++ b/clang-tools-extra/docs/clang-tidy/checks/readability/identifier-naming.md
@@ -667,35 +667,35 @@ public:
(readability-identifier-naming-class-member-case)=
```{option} ClassMemberCase
-When defined, the check will ensure class member names conform to the
+When defined, the check will ensure static class member names conform to the
selected casing.
```
(readability-identifier-naming-class-member-prefix)=
```{option} ClassMemberPrefix
-When defined, the check will ensure class member names will add the
+When defined, the check will ensure static class member names will add the
prefix with the given value (regardless of casing).
```
(readability-identifier-naming-class-member-ignored-regexp)=
```{option} ClassMemberIgnoredRegexp
-Identifier naming checks won't be enforced for class member names
+Identifier naming checks won't be enforced for static class member names
matching this regular expression.
```
(readability-identifier-naming-class-member-suffix)=
```{option} ClassMemberSuffix
-When defined, the check will ensure class member names will add the
+When defined, the check will ensure static class member names will add the
suffix with the given value (regardless of casing).
```
(readability-identifier-naming-class-member-hungarian-prefix)=
```{option} ClassMemberHungarianPrefix
-When enabled, the check ensures that the declared identifier will
+When enabled, the check ensures that the declared static class member will
have a Hungarian notation prefix based on the declared type.
```
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits