Added option ScopedEnumConstant(Prefix|Case|Suffix) to readability-identitied-naming.
This controls the style for constants in scoped enums, declared as enum (class|struct).
If this option is unspecified the EnumConstant style will be used instead.
Details
Details
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
Comment Actions
Not strictly necessary, there are tests that make sure prefixes and suffixes are applied correctly. Then there are tests that make sure a type of decl is correctly matched against its style, this is one of these tests. You'll find that's the convention with most of the style types tests in here.
Comment Actions
LGTM aside from a minor nit.
clang-tools-extra/clang-tidy/readability/IdentifierNamingCheck.cpp | ||
---|---|---|
410 | There's no need for this assertion, the use of cast<> below will assert if the type is wrong. |
There's no need for this assertion, the use of cast<> below will assert if the type is wrong.