[PATCH] D37014: [clang-tidy] Add a checker to remove useless intermediate variables before return statements with comparisons
Tristan Bourvon via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Thu Mar 8 08:59:08 PST 2018
tbourvon updated this revision to Diff 137588.
tbourvon added a comment.
Moves the custom matcher to the check instead of having it in `utils/Matchers.h`
https://reviews.llvm.org/D37014
Files:
clang-tidy/readability/CMakeLists.txt
clang-tidy/readability/ReadabilityTidyModule.cpp
clang-tidy/readability/UnnecessaryIntermediateVarCheck.cpp
clang-tidy/readability/UnnecessaryIntermediateVarCheck.h
docs/ReleaseNotes.rst
docs/clang-tidy/checks/list.rst
docs/clang-tidy/checks/readability-unnecessary-intermediate-var.rst
test/clang-tidy/readability-unnecessary-intermediate-var.cpp
unittests/clang-tidy/ReadabilityModuleTest.cpp
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D37014.137588.patch
Type: text/x-patch
Size: 39139 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20180308/326f8720/attachment-0001.bin>
More information about the cfe-commits
mailing list