[clang-tools-extra] [include-cleaner] Dont report explicit refs for global operator new/delete (PR #125199)

Haojian Wu via cfe-commits cfe-commits at lists.llvm.org
Fri Jan 31 04:32:36 PST 2025


================
@@ -32,6 +33,11 @@
 
 namespace clang::include_cleaner {
 namespace {
+bool isImplicitOperatorNewDelete(OverloadedOperatorKind OpKind) {
----------------
hokein wrote:

Nit: this function only checks whether `OpKind` is of the new/delete kind. Having `Implici`t in the function name seems a bit misleading to me -- I think we can simply remove it.

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


More information about the cfe-commits mailing list