[clang] [-Wunsafe-buffer-usage] Fix a bug and suppress libc warnings for C files (PR #109496)
via cfe-commits
cfe-commits at lists.llvm.org
Fri Sep 20 19:13:35 PDT 2024
================
@@ -2549,6 +2549,7 @@ void clang::sema::AnalysisBasedWarnings::IssueWarnings(
DiagnosticOptions &DiagOpts = Diags.getDiagnosticOptions();
// UnsafeBufferUsage analysis settings.
+ bool IsCXXLang = S.getLangOpts().CPlusPlus;
----------------
jkorous-apple wrote:
Nit: it doesn't feel like we need a variable for that.
https://github.com/llvm/llvm-project/pull/109496
More information about the cfe-commits
mailing list