I want to exclude certain regex patterns from linting for readability-identifier-naming
.
Part of .clang-tidy
I'm using:
Checks: 'readability-*'
CheckOptions:
- key: readability-identifier-naming.TypeAliasCase
value: CamelCase
- key: readability-identifier-naming.TypeAliasIgnoredRegexp
value: '(*_type|*reference|*iterator)'
- key: readability-identifier-naming.TypedefCase
value: CamelCase
- key: readability-identifier-naming.TypedefIgnoredRegexp
value: '(*_type|*reference|*iterator)'
However, warnings on those regex patterns are not suppressed.
For example,
using value_type = T;
using reference = value_type&;
using const_iterator = const T*;
Is this the right way to use regex for clang-tidy
?