[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
Sat Mar 7 01:29:59 PST 2026
================
@@ -365,6 +365,13 @@ std::string lambda() {
}();
}
+namespace overloads {
+std::string dbl2str(double f);
+std::string overload(int) { return "int"; }
+std::string overload(double f) { return "f=" + dbl2str(f); }
+std::string overload(std::string) { return "string"; }
----------------
irishrover wrote:
Done
https://github.com/llvm/llvm-project/pull/183921
More information about the cfe-commits
mailing list