[all-commits] [llvm/llvm-project] 91ed7e: [clang] Allow all string types for all attribute(f...
apple-fcloutier via All-commits
all-commits at lists.llvm.org
Thu May 12 11:12:55 PDT 2022
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 91ed7e19418181ae385c2626cedd3b08b6ba43a6
https://github.com/llvm/llvm-project/commit/91ed7e19418181ae385c2626cedd3b08b6ba43a6
Author: FĂ©lix Cloutier <fcloutier at apple.com>
Date: 2022-05-12 (Thu, 12 May 2022)
Changed paths:
M clang/include/clang/Basic/DiagnosticSemaKinds.td
M clang/lib/Sema/SemaDeclAttr.cpp
M clang/test/SemaObjC/format-strings-objc.m
Log Message:
-----------
[clang] Allow all string types for all attribute(format) styles
This allows using any recognized kind of string for any
__attribute__((format)) archetype. Before this change, for instance,
the printf archetype would only accept char pointer types and the
NSString archetype would only accept NSString pointers. This is
more restrictive than necessary as there exist functions to
convert between string types that can be annotated with
__attribute__((format_arg)) to transfer format information.
Reviewed By: ahatanak
Differential Revision: https://reviews.llvm.org/D125254
rdar://89060618
More information about the All-commits
mailing list