[PATCH] D27165: Add format_dynamic_key_arg attribute to improve "-Wformat" warnings for functions that load the formatting string dynamically based on a key value

Erik Pilkington via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Aug 13 14:41:30 PDT 2019


erik.pilkington updated this revision to Diff 214925.
erik.pilkington added a comment.

Special case localizedStringForKey instead of using an attribute.


CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D27165/new/

https://reviews.llvm.org/D27165

Files:
  clang/include/clang/AST/FormatString.h
  clang/include/clang/AST/NSAPI.h
  clang/lib/AST/PrintfFormatString.cpp
  clang/lib/Sema/SemaChecking.cpp
  clang/test/SemaObjC/format-strings-objc.m

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D27165.214925.patch
Type: text/x-patch
Size: 11831 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20190813/9c412467/attachment.bin>


More information about the llvm-commits mailing list