[PATCH] D151383: [clang-tidy] Check for specific return types on all functions
Piotr Zegar via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Fri May 26 12:47:27 PDT 2023
PiotrZSL accepted this revision.
PiotrZSL added inline comments.
This revision is now accepted and ready to land.
================
Comment at: clang-tools-extra/clang-tidy/bugprone/UnusedReturnValueCheck.cpp:129
+ CheckedReturnTypes(utils::options::parseStringList(
+ Options.get("CheckedReturnTypes", "std::error_code;"
+ "std::expected;"
----------------
good but put those all as fully qualified names (starting with ::) like in Checkedfunctions, and align documentation
================
Comment at: clang-tools-extra/docs/clang-tidy/checks/bugprone/unused-return-value.rst:53
+ By default the following function return types are checked:
+ `std::error_code, std::expected, boost::system::error_code, abseil::Status`
+
----------------
split this, into `::std::error_code`, `::std::expected`, and so on...
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D151383/new/
https://reviews.llvm.org/D151383
More information about the cfe-commits
mailing list