[clang-tidy] Add scoped enum constants to identifier naming check
authorNathan James <n.james93@hotmail.co.uk>
Mon, 19 Oct 2020 14:57:46 +0000 (15:57 +0100)
committerNathan James <n.james93@hotmail.co.uk>
Mon, 19 Oct 2020 14:57:47 +0000 (15:57 +0100)
commit86ef379800162e5d6bb0d478c5bfb4b56498a272
tree54e13b413b3386d022e185c391dee0ba305cf30c
parent0047f6aed37c4643bc9b3f3c897110447459c8db
[clang-tidy] Add scoped enum constants to identifier naming check

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.

Reviewed By: aaron.ballman

Differential Revision: https://reviews.llvm.org/D89407
clang-tools-extra/clang-tidy/readability/IdentifierNamingCheck.cpp
clang-tools-extra/docs/ReleaseNotes.rst
clang-tools-extra/docs/clang-tidy/checks/readability-identifier-naming.rst
clang-tools-extra/test/clang-tidy/checkers/readability-identifier-naming.cpp