[clang-tools-extra] Add check 'modernize-use-enum-class' (PR #138282)
Baranov Victor via cfe-commits
cfe-commits at lists.llvm.org
Fri May 2 09:06:43 PDT 2025
================
@@ -115,6 +115,11 @@ New checks
Gives warnings for tagged unions, where the number of tags is
different from the number of data members inside the union.
+- New :doc:`modernize-use-enum-class
+ <clang-tidy/checks/modernize/use-enum-class>` check.
+
+ Finds plain non-class enum definitions that could use ``enum class``.
----------------
vbvictor wrote:
```suggestion
Finds plain non-class `enum` definitions that could use ``enum class``.
```
https://github.com/llvm/llvm-project/pull/138282
More information about the cfe-commits
mailing list