[all-commits] [llvm/llvm-project] 3d90b7: [-Wunsafe-buffer-usage] Separate flag for format-a...
Hans Wennborg via All-commits
all-commits at lists.llvm.org
Mon Jan 19 02:11:55 PST 2026
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 3d90b7a2d7333ead420b18baece183249404329a
https://github.com/llvm/llvm-project/commit/3d90b7a2d7333ead420b18baece183249404329a
Author: Hans Wennborg <hans at hanshq.net>
Date: 2026-01-19 (Mon, 19 Jan 2026)
Changed paths:
M clang/include/clang/Analysis/Analyses/UnsafeBufferUsage.h
M clang/include/clang/Basic/DiagnosticGroups.td
M clang/include/clang/Basic/DiagnosticSemaKinds.td
M clang/lib/Analysis/UnsafeBufferUsage.cpp
M clang/lib/Sema/AnalysisBasedWarnings.cpp
M clang/test/SemaCXX/warn-unsafe-buffer-usage-libc-functions.cpp
Log Message:
-----------
[-Wunsafe-buffer-usage] Separate flag for format-attributed functions (#175749)
PR #173096 extended -Wunsafe-buffer-usage-in-libc-call to apply to all
functions with the 'format' attribute.
This change moves those warnings behind a separate
-Wunsafe-buffer-usage-in-format-attr-call flag (implicitly enabled by
-Wunsafe-buffer-usage), allowing projects to decide whether they want to
opt in to this or not.
To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications
More information about the All-commits
mailing list