[clang] [clang][Sema] Accept gnu format attributes (PR #160255)

via cfe-commits cfe-commits at lists.llvm.org
Thu Sep 25 01:11:33 PDT 2025


================
@@ -268,6 +268,9 @@ Attribute Changes in Clang
   attribute, allowing the attribute to only be attached to the declaration. Prior, this would be
   treated as an error where the definition and declaration would have differing types.
 
+- New format attributes ``gnu_printf``, ``gnu_scanf``, ``gnu_strftime`` and ``gnu_strfmon`` are added
+  as aliases for ``printf``, ``scanf``, ``strftime`` and ``strfmon``.
----------------
Sirraide wrote:

```suggestion
  as aliases for ``printf``, ``scanf``, ``strftime`` and ``strfmon``. (#GH16219)
```

https://github.com/llvm/llvm-project/pull/160255


More information about the cfe-commits mailing list