llvm-project
01ce3e29 - [clang][sema] Add nonnull attribute to builtin format functions (#160988)

Commit
56 days ago
[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
Author
Parents
Loading