[all-commits] [llvm/llvm-project] 4ca9a4: [[gnu::nonstring]] should work on pointers too (#1...
Aaron Ballman via All-commits
all-commits at lists.llvm.org
Thu Jul 31 23:55:48 PDT 2025
Branch: refs/heads/release/21.x
Home: https://github.com/llvm/llvm-project
Commit: 4ca9a4bb351a723f746738384ef785e104f19dbc
https://github.com/llvm/llvm-project/commit/4ca9a4bb351a723f746738384ef785e104f19dbc
Author: Aaron Ballman <aaron at aaronballman.com>
Date: 2025-08-01 (Fri, 01 Aug 2025)
Changed paths:
M clang/include/clang/Basic/AttrDocs.td
M clang/lib/Sema/SemaDeclAttr.cpp
M clang/test/Sema/attr-nonstring.c
Log Message:
-----------
[[gnu::nonstring]] should work on pointers too (#150974)
Clang's current implementation only works on array types, but GCC (which
is where we got this attribute) supports it on pointers as well as
arrays.
Fixes #150951
(cherry picked from commit 837b2d464ff16fe0d892dcf2827747c97dd5465e)
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