[PATCH] D116875: [clang-tidy] Add performance-inefficient-array-traversal check
Nathan James via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Tue Jan 25 15:18:37 PST 2022
njames93 updated this revision to Diff 403050.
njames93 added a comment.
Simplify check logic to only detect loop inits with 0 and incriment with 1.
Functionality can be introduced with later patches.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D116875/new/
https://reviews.llvm.org/D116875
Files:
clang-tools-extra/clang-tidy/performance/CMakeLists.txt
clang-tools-extra/clang-tidy/performance/InefficientArrayTraversalCheck.cpp
clang-tools-extra/clang-tidy/performance/InefficientArrayTraversalCheck.h
clang-tools-extra/clang-tidy/performance/PerformanceTidyModule.cpp
clang-tools-extra/docs/ReleaseNotes.rst
clang-tools-extra/docs/clang-tidy/checks/list.rst
clang-tools-extra/docs/clang-tidy/checks/performance-inefficient-array-traversal.rst
clang-tools-extra/test/clang-tidy/checkers/performance-inefficient-array-traversal.cpp
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D116875.403050.patch
Type: text/x-patch
Size: 16757 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20220125/cfe41ff0/attachment.bin>
More information about the cfe-commits
mailing list