]> granicus.if.org Git - clang/commit
-Wformat: Don't check format strings in uninstantiated templates.
authorJordan Rose <jordan_rose@apple.com>
Tue, 2 Oct 2012 01:49:54 +0000 (01:49 +0000)
committerJordan Rose <jordan_rose@apple.com>
Tue, 2 Oct 2012 01:49:54 +0000 (01:49 +0000)
commit66360e224689dc23a0acd8a6705ba50bec13bc97
treec981faf916a2c7a6d349e101842670575be60c16
parentd62505677555fd4fae731232d7308a91c2bb10a2
-Wformat: Don't check format strings in uninstantiated templates.

Also applies to -Wnonnull, -Wtype-safety, and -Wnon-pod-varargs.
All of these can be better checked at instantiation time.

This change does not actually affect regular CallExpr function calls,
since the checks there only happen after overload resolution.
However, it will affect Objective-C method calls.

<rdar://problem/12373934>

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@164984 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Sema/SemaChecking.cpp
test/SemaCXX/format-strings.cpp
test/SemaObjCXX/format-strings.mm [new file with mode: 0644]