[all-commits] [llvm/llvm-project] 3716b5: [clang-tidy] Improve performance-enum-size to excl...

Piotr Zegar via All-commits all-commits at lists.llvm.org
Wed Nov 8 02:22:45 PST 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 3716b5b4bac6ab41291b6558ad0444cbcca04aa3
      https://github.com/llvm/llvm-project/commit/3716b5b4bac6ab41291b6558ad0444cbcca04aa3
  Author: Piotr Zegar <piotr.zegar at nokia.com>
  Date:   2023-11-08 (Wed, 08 Nov 2023)

  Changed paths:
    M clang-tools-extra/clang-tidy/performance/EnumSizeCheck.cpp
    M clang-tools-extra/docs/clang-tidy/checks/performance/enum-size.rst
    M clang-tools-extra/test/clang-tidy/checkers/performance/enum-size.cpp

  Log Message:
  -----------
  [clang-tidy] Improve performance-enum-size to exclude empty enums (#71640)

Enums without enumerators (empty) are now excluded from analysis as it's
not possible to peroperly determinate new narrowed type, and such enums
can be used in diffrent way, like as strong-types.

Closes #71544




More information about the All-commits mailing list