[clang] [clang-tools-extra] [clang-tidy][use-internal-linkage]fix false positives for global overloaded operator new and operator delete (PR #117945)

Julian Schmidt via cfe-commits cfe-commits at lists.llvm.org
Thu Nov 28 03:36:45 PST 2024


================
@@ -43,7 +43,7 @@ void test(void) {
 }
 
 extern void g3(int); // expected-note{{previous declaration is here}}
-static void g3(int x) { } // expected-error{{static declaration of 'g3' follows non-static declaration}}
+static void g3(int x) { } // expected-error{{static declaration of 'g3' }}
----------------
5chmidti wrote:

What's the reason for this change?

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


More information about the cfe-commits mailing list