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
Showing
- include/clang/Analysis/Analyses/FormatString.h 16 additions, 1 deletioninclude/clang/Analysis/Analyses/FormatString.h
- include/clang/Basic/DiagnosticSemaKinds.td 9 additions, 0 deletionsinclude/clang/Basic/DiagnosticSemaKinds.td
- lib/Analysis/PrintfFormatString.cpp 62 additions, 0 deletionslib/Analysis/PrintfFormatString.cpp
- lib/Sema/SemaChecking.cpp 46 additions, 1 deletionlib/Sema/SemaChecking.cpp
- test/SemaObjC/format-strings-objc.m 13 additions, 0 deletionstest/SemaObjC/format-strings-objc.m
Loading
Please register or sign in to comment