[PATCH] D41655: [clang-tidy] New check bugprone-unused-return-value
Kalle Huttunen via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Thu Jan 18 11:30:13 PST 2018
khuttun updated this revision to Diff 130461.
khuttun added a comment.
- Detect unused return values also inside other kinds of statements than compound statements
- Ignore void functions in the checker
- Check std::remove, std::remove_if and std::unique by default
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.130461.patch
Type: text/x-patch
Size: 23688 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20180118/ec40c972/attachment-0001.bin>
More information about the cfe-commits
mailing list