[PATCH] D89407: [clang-tidy] Add scoped enum constants to identifier naming check

Nathan James via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Wed Oct 14 10:14:25 PDT 2020


njames93 created this revision.
njames93 added reviewers: alexfh, JonasToth, aaron.ballman, gribozavr2.
Herald added subscribers: cfe-commits, xazax.hun.
Herald added a project: clang.
njames93 requested review of this revision.

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.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D89407

Files:
  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

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D89407.298177.patch
Type: text/x-patch
Size: 5516 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20201014/ff3432f7/attachment.bin>


More information about the cfe-commits mailing list