[PATCH] D45891: [clang-tidy] Improve bugprone-unused-return-value check

Kalle Huttunen via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Fri Apr 20 11:02:19 PDT 2018


khuttun created this revision.
khuttun added a reviewer: alexfh.
Herald added subscribers: cfe-commits, xazax.hun.

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


Repository:
  rCTE Clang Tools Extra

https://reviews.llvm.org/D45891

Files:
  clang-tidy/bugprone/UnusedReturnValueCheck.cpp
  docs/clang-tidy/checks/bugprone-unused-return-value.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: D45891.143318.patch
Type: text/x-patch
Size: 8585 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20180420/3861c23d/attachment.bin>


More information about the cfe-commits mailing list