================
@@ -2633,7 +2646,7 @@ void clang::sema::AnalysisBasedWarnings::IssueWarnings(
SourceLocation()) ||
(!Diags.isIgnored(diag::warn_unsafe_buffer_libc_call, SourceLocation())
&&
S.getLangOpts().CPlusPlus /* only warn about libc calls in C++ */)) {
- CallableVisitor(CallAnalyzers).TraverseTranslationUnitDecl(TU);
+ CallableVisitor(CallAnalyzers,
TU->getOwningModuleID()).TraverseTranslationUnitDecl(TU);
----------------
ChuanqiXu9 wrote:
ModuleID is implementation detailed that users shouldn't use. Let's use owning
module if possible.
https://github.com/llvm/llvm-project/pull/127161
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits