[PATCH] D21134: clang-tidy: new check readability-misplaced-array-index
Daniel Marjamäki via cfe-commits
cfe-commits at lists.llvm.org
Wed Jun 15 02:32:56 PDT 2016
danielmarjamaki removed rL LLVM as the repository for this revision.
danielmarjamaki updated this revision to Diff 60803.
danielmarjamaki added a comment.
updated releasedocs
deeper lookup if macro is used
only warn when the replacement can be done safely. the expressions "x[y+z]" and y+z[x]" are not the same.
http://reviews.llvm.org/D21134
Files:
clang-tidy/readability/CMakeLists.txt
clang-tidy/readability/MisplacedArrayIndexCheck.cpp
clang-tidy/readability/MisplacedArrayIndexCheck.h
clang-tidy/readability/ReadabilityTidyModule.cpp
docs/ReleaseNotes.rst
docs/clang-tidy/checks/list.rst
docs/clang-tidy/checks/readability-misplaced-array-index.rst
test/clang-tidy/readability-misplaced-array-index.cpp
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D21134.60803.patch
Type: text/x-patch
Size: 9278 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20160615/adc76cf8/attachment.bin>
More information about the cfe-commits
mailing list