]> granicus.if.org Git - clang/commit
Parse 'technical term' format specifier.
authorTed Kremenek <kremenek@apple.com>
Thu, 2 Jul 2015 05:39:16 +0000 (05:39 +0000)
committerTed Kremenek <kremenek@apple.com>
Thu, 2 Jul 2015 05:39:16 +0000 (05:39 +0000)
commit55afcebf8e68d3ad113442b2843073a8d1e41b3c
tree41be2e67a6d66f3a5b802fc3c002beab3075ce11
parentfc2e5d1db41a03ad418bfda1aba53597a17124ce
Parse 'technical term' format specifier.

Objective-C format strings now support modifier flags
that can be attached to a '@' conversion.  Currently
the only one supported, as of iOS 9 and OS X 10.11,
is the new "technical term", denoted by the flag "tt",
for example:

  %[tt]@

instead of just:

  %@

The 'tt' stands for "technical term", which is used
by the string-localization facilities on Darwin to
add the appropriate spacing or quotation depending
the language locale.

Implements <rdar://problem/20374720>.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@241243 91177308-0d34-0410-b5e6-96231b3b80d8
include/clang/Analysis/Analyses/FormatString.h
include/clang/Basic/DiagnosticSemaKinds.td
lib/Analysis/PrintfFormatString.cpp
lib/Sema/SemaChecking.cpp
test/SemaObjC/format-strings-objc.m