[clang] [-Wunsafe-buffer-usage] Do not warn about class methods with libc function names (PR #151270)
David Tarditi via cfe-commits
cfe-commits at lists.llvm.org
Wed Jul 30 09:46:53 PDT 2025
dtarditi wrote:
I agree that we should probably check for the function being in the global scope or the `std` namespace. I think you can use `isGlobal` and `isStdNamespace` (in Decl.h and DeclBase.h respectively) to do those checks.
https://github.com/llvm/llvm-project/pull/151270
More information about the cfe-commits
mailing list