[PATCH] D125254: [clang] Allow all string types for all attribute(format) styles

2022-05-12 Thread Félix Cloutier via Phabricator via cfe-commits
This revision was landed with ongoing or failed builds. This revision was automatically updated to reflect the committed changes. Closed by commit rG91ed7e194181: [clang] Allow all string types for all attribute(format) styles (authored by fcloutier). Changed prior to commit:

[PATCH] D125254: [clang] Allow all string types for all attribute(format) styles

2022-05-12 Thread Akira Hatanaka via Phabricator via cfe-commits
ahatanak accepted this revision. ahatanak added a comment. This revision is now accepted and ready to land. LGTM with one minor comment. Comment at: clang/lib/Sema/SemaDeclAttr.cpp:3864 - if (Kind == CFStringFormat) { -if (!isCFStringType(Ty, S.Context)) { -

[PATCH] D125254: [clang] Allow all string types for all attribute(format) styles

2022-05-09 Thread Félix Cloutier via Phabricator via cfe-commits
fcloutier created this revision. fcloutier added reviewers: NoQ, ahatanak, aaron.ballman. Herald added a project: All. fcloutier requested review of this revision. Herald added a project: clang. It's not unusual to see functions like this: void log(const char *fmt, ...) { va_list ap;