[all-commits] [llvm/llvm-project] 86ef37: [clang-tidy] Add scoped enum constants to identifi...

Nathan James via All-commits all-commits at lists.llvm.org
Mon Oct 19 07:58:14 PDT 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: 86ef379800162e5d6bb0d478c5bfb4b56498a272
      https://github.com/llvm/llvm-project/commit/86ef379800162e5d6bb0d478c5bfb4b56498a272
  Author: Nathan James <n.james93 at hotmail.co.uk>
  Date:   2020-10-19 (Mon, 19 Oct 2020)

  Changed paths:
    M clang-tools-extra/clang-tidy/readability/IdentifierNamingCheck.cpp
    M clang-tools-extra/docs/ReleaseNotes.rst
    M clang-tools-extra/docs/clang-tidy/checks/readability-identifier-naming.rst
    M clang-tools-extra/test/clang-tidy/checkers/readability-identifier-naming.cpp

  Log Message:
  -----------
  [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




More information about the All-commits mailing list