[all-commits] [llvm/llvm-project] 01ce3e: [clang][sema] Add nonnull attribute to builtin for...
Radovan Božić via All-commits
all-commits at lists.llvm.org
Fri Dec 5 06:50:03 PST 2025
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 01ce3e296b7bb5cca3f9aee5e9b3517312c58736
https://github.com/llvm/llvm-project/commit/01ce3e296b7bb5cca3f9aee5e9b3517312c58736
Author: Radovan Božić <radovan.bozic at htecgroup.com>
Date: 2025-12-05 (Fri, 05 Dec 2025)
Changed paths:
M clang/include/clang/Basic/Builtins.h
M clang/include/clang/Basic/Builtins.td
M clang/include/clang/Basic/BuiltinsBase.td
M clang/lib/Basic/Builtins.cpp
M clang/lib/Sema/SemaDecl.cpp
A clang/test/Sema/format-strings-nonnull.c
A clang/test/Sema/format-strings-nonnull.cpp
M clang/test/Sema/format-strings.c
M clang/test/Sema/warn-fortify-scanf.c
M clang/test/SemaCXX/format-strings-0x.cpp
M clang/test/SemaObjC/format-strings-objc.m
Log Message:
-----------
[clang][sema] Add nonnull attribute to builtin format functions (#160988)
Annotate printf/scanf and related builtins with the nonnull attribute on
their format string parameters. This enables diagnostics when NULL is
passed, matching GCC behavior. Updated existing Sema tests and added new
ones for coverage. Closes issue #33923
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