[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:03:55 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"; }
----------------
vbvictor wrote:
Please add tests with methods.
https://github.com/llvm/llvm-project/pull/183921
More information about the cfe-commits
mailing list