llvm-project/clang-tools-extra/clang-tidy
Jonathan Coe b9b3a62727 [clang-tidy] Improve bugprone-unused-return-value check
Summary:
Add support for checking class template member functions.

Also add the following functions to be checked by default:

- std::unique_ptr::release
- std::basic_string::empty
- std::vector::empty

Reviewers: alexfh, hokein, aaron.ballman, ilya-biryukov

Reviewed By: aaron.ballman

Subscribers: jbcoe, xazax.hun, cfe-commits

Tags: #clang-tools-extra

Differential Revision: https://reviews.llvm.org/D45891

Patch by khuttun (Kalle Huttunen)

llvm-svn: 330772
2018-04-24 21:25:16 +00:00
..
abseil [clang-tidy] fix header guard 2018-03-09 11:47:37 +00:00
android [clang-tidy] Add a `android-comparison-in-temp-failure-retry` check 2018-04-10 21:22:22 +00:00
boost [tidy] Move private ast matchers into anonymous namespaces to avoid ODR conflicts. 2018-02-18 19:02:35 +00:00
bugprone [clang-tidy] Improve bugprone-unused-return-value check 2018-04-24 21:25:16 +00:00
cert [clang-tidy] Fix link error in clang-tidy after the recent check renames. 2017-11-27 15:17:13 +00:00
cppcoreguidelines [tidy] Move private ast matchers into anonymous namespaces to avoid ODR conflicts. 2018-02-18 19:02:35 +00:00
fuchsia [clang-tidy][Fuchsia]: don't forget to actually link to Google Module. 2018-04-10 20:07:02 +00:00
google [clang-tidy] Remove google-runtime-member-string-references 2018-04-05 14:51:01 +00:00
hicpp [clang-tidy] add missing assignment operations in hicpp-signed-bitwise 2018-04-11 09:53:08 +00:00
llvm [clang-tidy] Unify the way IncludeStyle and HeaderFileExtesions options are used 2017-07-20 12:02:03 +00:00
misc [clang-tidy] Fix PR35468 2018-04-24 14:45:58 +00:00
modernize Revert "[clang-tidy] [modernize-use-auto] Get only a length of token, not the token itself" 2018-04-12 20:33:24 +00:00
mpi modernize-use-auto NFC fixes 2016-12-14 15:29:23 +00:00
objc add extra acronyms for objc property names 2018-04-18 20:09:10 +00:00
performance [clang-tidy] ObjC ARC objects should not trigger performance-unnecessary-value-param 2018-02-02 15:34:33 +00:00
plugin [clang-tidy] Add check: replace string::find(...) == 0 with absl::StartsWith 2018-03-09 10:47:14 +00:00
portability [clang-tidy] Add "portability" module and rename readability-simd-intrinsics to portability-simd-intrinsics 2018-03-07 16:57:42 +00:00
readability update test to use ivar in implementation instead of class extension 2018-04-23 00:15:15 +00:00
tool [clang-tidy] Fix clang-tidy doesn't read .clangtidy configuration file. 2018-04-18 08:54:28 +00:00
utils [clang-tidy] ObjC ARC objects should not trigger performance-unnecessary-value-param 2018-02-02 15:34:33 +00:00
zircon [clang-tidy] Add Zircon module to clang-tidy 2018-03-14 23:47:50 +00:00
CMakeLists.txt [clang-tidy] Add Zircon module to clang-tidy 2018-03-14 23:47:50 +00:00
ClangTidy.cpp Revert r328932 as it caused Windows and MacOS bot failures. 2018-04-02 18:02:36 +00:00
ClangTidy.h [clang-tidy] Add -vfsoverlay flag 2018-01-23 12:31:06 +00:00
ClangTidyDiagnosticConsumer.cpp Add support for NOLINT and NOLINTNEXTLINE comments mentioning specific check names. 2017-12-14 16:13:57 +00:00
ClangTidyDiagnosticConsumer.h [clang-tidy] Optimize GlobList::contains 2017-05-18 01:13:51 +00:00
ClangTidyModule.cpp Change getChecksFilter() interface to hide implementation details. 2017-05-17 14:39:47 +00:00
ClangTidyModule.h [clang-tools-extra] Format sources with clang-format. NFC. 2016-11-08 07:50:19 +00:00
ClangTidyModuleRegistry.h Reapply r276973 "Adjust Registry interface to not require plugins to export a registry" 2016-08-05 11:01:08 +00:00
ClangTidyOptions.cpp [clang-tidy] Fix unused-variable warning. 2018-04-19 13:34:03 +00:00
ClangTidyOptions.h [clang-tidy] Fix clang-tidy doesn't read .clangtidy configuration file. 2018-04-18 08:54:28 +00:00
add_new_check.py [clang-tidy] Enable Python 3 support for add_new_check.py 2018-03-24 10:49:17 +00:00
rename_check.py [clang-tidy] Use :doc: for check links in Release Notes. 2018-03-21 17:06:13 +00:00