[clang-tidy] Check for specific return types on all functions
authorNagaChaitanya Vellanki <pnagato@protonmail.com>
Fri, 26 May 2023 20:57:17 +0000 (13:57 -0700)
committerNagaChaitanya Vellanki <pnagato@protonmail.com>
Fri, 26 May 2023 20:59:18 +0000 (13:59 -0700)
commit785b30b8a33a394a677b1b8ce35c66ba482db169
tree28b5e16dbcf48cb972366a91dd1aaa59185b41f3
parent743dd4dbd1a32808e024fe653b5c3ecc9b50325a
[clang-tidy] Check for specific return types on all functions

Extend the check to all functions with return types like
         std::error_code, std::expected, boost::system::error_code, abseil::Status...

         Resolves issue https://github.com/llvm/llvm-project/issues/62884

Reviewed By: PiotrZSL

Differential Revision: https://reviews.llvm.org/D151383
clang-tools-extra/clang-tidy/bugprone/UnusedReturnValueCheck.cpp
clang-tools-extra/clang-tidy/bugprone/UnusedReturnValueCheck.h
clang-tools-extra/docs/ReleaseNotes.rst
clang-tools-extra/docs/clang-tidy/checks/bugprone/unused-return-value.rst
clang-tools-extra/test/clang-tidy/checkers/bugprone/unused-return-value.cpp