This revision was landed with ongoing or failed builds.
This revision was automatically updated to reflect the committed changes.
Closed by commit rG40af06ccc7bf: [clang-tidy] Update UnusedReturnValueCheck
types (authored by royjacobson).
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);
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);
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits