[clang-tools-extra] [clang-tidy] Skip overloaded functions in modernize-use-string-view (PR #183921)

Baranov Victor via cfe-commits cfe-commits at lists.llvm.org
Thu Mar 5 08:04:00 PST 2026


================
@@ -21,6 +21,29 @@ using namespace clang::ast_matchers;
 
 namespace clang::tidy::modernize {
 
+namespace {
+AST_MATCHER(FunctionDecl, isOverloaded) {
----------------
vbvictor wrote:

IIRC as discussed previously, should this be an option?
Since we have a trick to `std::string(...)`, overloads should not be always ingored?

https://github.com/llvm/llvm-project/pull/183921


More information about the cfe-commits mailing list