[PATCH] D129570: [clang-tidy] Add new clang-tidy check to find implicit conversions from enum to integer.
Paul Fultz II via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Mon Aug 22 15:28:26 PDT 2022
pfultz2 updated this revision to Diff 454632.
pfultz2 added a comment.
Updated to diagnose `return` statements as well.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D129570/new/
https://reviews.llvm.org/D129570
Files:
clang-tools-extra/clang-tidy/bugprone/BugproneTidyModule.cpp
clang-tools-extra/clang-tidy/bugprone/CMakeLists.txt
clang-tools-extra/clang-tidy/bugprone/EnumToIntCheck.cpp
clang-tools-extra/clang-tidy/bugprone/EnumToIntCheck.h
clang-tools-extra/docs/ReleaseNotes.rst
clang-tools-extra/docs/clang-tidy/checks/bugprone/enum-to-int.rst
clang-tools-extra/docs/clang-tidy/checks/list.rst
clang-tools-extra/test/clang-tidy/checkers/bugprone/enum-to-int.cpp
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D129570.454632.patch
Type: text/x-patch
Size: 9363 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20220822/f3bfcd7d/attachment.bin>
More information about the cfe-commits
mailing list