[PATCH] D41655: [clang-tidy] New check bugprone-unused-return-value
Kalle Huttunen via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Sat Feb 17 07:45:17 PST 2018
khuttun updated this revision to Diff 134802.
khuttun added a comment.
I changed the checker to use hasAnyName. Checking for `unique_ptr::release()` and all the `empty()` functions is removed.
The checker doesn't report any warnings from LLVM + clang codebases now.
https://reviews.llvm.org/D41655
Files:
clang-tidy/bugprone/BugproneTidyModule.cpp
clang-tidy/bugprone/CMakeLists.txt
clang-tidy/bugprone/UnusedReturnValueCheck.cpp
clang-tidy/bugprone/UnusedReturnValueCheck.h
docs/ReleaseNotes.rst
docs/clang-tidy/checks/bugprone-unused-return-value.rst
docs/clang-tidy/checks/list.rst
test/clang-tidy/bugprone-unused-return-value-custom.cpp
test/clang-tidy/bugprone-unused-return-value.cpp
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D41655.134802.patch
Type: text/x-patch
Size: 17407 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20180217/dca69c54/attachment-0001.bin>
More information about the cfe-commits
mailing list