[PATCH] D151650: [clang-tidy] Update UnusedReturnValueCheck types
Roy Jacobson via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Mon May 29 13:00:52 PDT 2023
royjacobson updated this revision to Diff 526468.
royjacobson added a comment.
Update docs
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D151650/new/
https://reviews.llvm.org/D151650
Files:
clang-tools-extra/clang-tidy/bugprone/UnusedReturnValueCheck.cpp
clang-tools-extra/docs/clang-tidy/checks/bugprone/unused-return-value.rst
Index: clang-tools-extra/docs/clang-tidy/checks/bugprone/unused-return-value.rst
===================================================================
--- clang-tools-extra/docs/clang-tidy/checks/bugprone/unused-return-value.rst
+++ clang-tools-extra/docs/clang-tidy/checks/bugprone/unused-return-value.rst
@@ -50,7 +50,7 @@
Semicolon-separated list of function return types to check.
By default the following function return types are checked:
- `::std::error_code`, `::std::expected`, `::boost::system::error_code`, `::abseil::Status`
+ `::std::error_code`, `::std::error_condition`, `::std::errc`, `::std::expected`, `::boost::system::error_code`
`cert-err33-c <../cert/err33-c.html>`_ is an alias of this check that checks a
fixed and large set of standard library functions.
Index: clang-tools-extra/clang-tidy/bugprone/UnusedReturnValueCheck.cpp
===================================================================
--- clang-tools-extra/clang-tidy/bugprone/UnusedReturnValueCheck.cpp
+++ clang-tools-extra/clang-tidy/bugprone/UnusedReturnValueCheck.cpp
@@ -127,9 +127,10 @@
"::ttyname")),
CheckedReturnTypes(utils::options::parseStringList(
Options.get("CheckedReturnTypes", "::std::error_code;"
+ "::std::error_condition;"
+ "::std::errc;"
"::std::expected;"
- "::boost::system::error_code;"
- "::abseil::Status"))) {}
+ "::boost::system::error_code"))) {}
void UnusedReturnValueCheck::storeOptions(ClangTidyOptions::OptionMap &Opts) {
Options.store(Opts, "CheckedFunctions", CheckedFunctions);
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D151650.526468.patch
Type: text/x-patch
Size: 1837 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20230529/3f1745ac/attachment-0001.bin>
More information about the cfe-commits
mailing list