]> granicus.if.org Git - clang/commit
Format strings: %D, %U, and %O are valid on Darwin (same as %d, %u, %o).
authorJordan Rose <jordan_rose@apple.com>
Thu, 13 Sep 2012 02:11:03 +0000 (02:11 +0000)
committerJordan Rose <jordan_rose@apple.com>
Thu, 13 Sep 2012 02:11:03 +0000 (02:11 +0000)
commit275b6f52c7bcafc1f3cf291813b5c60ee776965a
tree63d416b6293cf2aa0d16222df9b85a70df12c712
parent5f7c0add1ea1d8e1d2f920d77fd1a7b6160c2d93
Format strings: %D, %U, and %O are valid on Darwin (same as %d, %u, %o).

These will warn under -Wformat-non-iso, and will still be rejected
outright on other platforms.

<rdar://problem/12061922>

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@163771 91177308-0d34-0410-b5e6-96231b3b80d8
include/clang/Analysis/Analyses/FormatString.h
lib/Analysis/FormatString.cpp
lib/Analysis/PrintfFormatString.cpp
lib/Analysis/ScanfFormatString.cpp
lib/Sema/SemaChecking.cpp
test/FixIt/format-darwin.m
test/Sema/format-strings-darwin.c [new file with mode: 0644]