-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)
commit3c14b2339de13053eb0a1dffbeaac60b49c37407
treeb1719d3aa671ee49ed716b6cec9570a6baa3c713
parent380a74a339acce977eaa3858e106c9e74d18f126
-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>

llvm-svn: 164984
clang/lib/Sema/SemaChecking.cpp
clang/test/SemaCXX/format-strings.cpp
clang/test/SemaObjCXX/format-strings.mm [new file with mode: 0644]