llvm-project
llvm-project copied to clipboard
[clang-tidy] readability-identifier-naming: Typedef defintions should allow to inherit rules from types they redefine.
If I use the check readability-identifier-naming and the rules I set for enum, e.g. EnumCase won't check for typedef definitions of the kind typedef enum {} NewEnum. A new option TypedefInheritTypeConfig shall allow to inherit the current configured checks (e.g. EnumCase: CameCase) for each redefined type (here enum).
@llvm/issue-subscribers-clang-tidy
Author: labombrador
If I use the check `readability-identifier-naming` and the rules I set for enum, e.g. `EnumCase` won't check for `typedef` definitions of the kind `typedef enum {} NewEnum`. A new option `TypedefInheritTypeConfig` shall allow to inherit the current configured checks (e.g. `EnumCase: CameCase`) for each redefined type (here `enum`).
I can give this a try
Cool, thanks for the effort!