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

Zinovy Nis via cfe-commits cfe-commits at lists.llvm.org
Sun Mar 15 01:47:34 PDT 2026


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

> I think I'm fine leaving out overloads, but please document that overloads are excluded from check

Done.

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


More information about the cfe-commits mailing list