Update the types for UnusedReturnValueCheck after D151383.
1. Add std::errc, std:error_condition
2. Remove `absl::Status` - it's marked as `[[nodiscard]]` anyway so it's redundant (and might create double warnings) to check it.
Reviewed By: PiotrZSL
Differential Revision: https://reviews.llvm.org/D151650
"::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);
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.