Issue 156285
Summary [clang-tidy] rule limitation: readability-identifier-naming doesn't allow differentiating class and struct members
Labels clang-tidy
Assignees
Reporter tothambrus11
    In our company, the style guide says class members should be postfixed by `_`, regardless whether they are public/private, but struct members shouldn't be postfixed. In the `readability-identifier-naming` rule, there are rules for `Member*` and a `ClassMember*`, but there are no rules for `StructMember*`.

I failed to understand from [the documentation](https://clang.llvm.org/extra/clang-tidy/checks/readability/identifier-naming.html#cmdoption-arg-MemberCase) whether `ClassMember*` is supposed to match both structs and classes, or what the difference is between `Member*` and `ClassMember*`. Regardless, it would be nice to add a new matcher that unambiguously matches only struct members.

If somebody could guide me where I should contribute, I would be happy to implement the fixes. 
_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to