[clang-tools-extra] [clang-tidy] Add C++ member function support to custom bugprone-unsafe-functions matches (PR #117165)

Piotr Zegar via cfe-commits cfe-commits at lists.llvm.org
Thu Nov 21 08:58:28 PST 2024


================
@@ -42,3 +47,19 @@ void f1() {
   // CHECK-MESSAGES-NON-STRICT-REGEX: :[[@LINE-1]]:3: warning: function 'prefix_match_regex' is matched on qualname prefix; it should not be used
   // no-warning STRICT-REGEX
 }
+
+void f2() {
+  S s;
+
----------------
PiotrZSL wrote:

add test with free standing function member_match_1 that should be allowed.

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


More information about the cfe-commits mailing list