llvm-project/clang/lib
Matt Beaumont-Gay 32d825a4db Use the argument location instead of the format string location when warning
about argument type mismatch.

This gives a nicer diagnostic in cases like
  printf(fmt,
         i);
where previously the snippet just pointed at 'fmt' (with a note at the
definition of fmt).

It's a wash for cases like
  printf("%f",
         i);
where previously we snippeted the offending portion of the format string,
but didn't indicate which argument was at fault.

llvm-svn: 156968
2012-05-17 00:03:16 +00:00
..
ARCMigrate Fix use of uninitialized variable caught by GCC's -Wmaybe-uninitialized. 2012-05-01 02:45:39 +00:00
AST Fix the visibility of instantiations of static data members. 2012-05-16 02:10:38 +00:00
Analysis Make -Wformat accept printf("%hhx", c); with -funsigned-char 2012-05-08 17:21:31 +00:00
Basic Hexagon V5 FP support. 2012-05-10 20:19:54 +00:00
CodeGen Remove unnecessary temporary. 2012-05-16 22:02:36 +00:00
Driver [driver] Remove obsolete support for -A link option. The standard -A option is 2012-05-16 23:45:12 +00:00
Edit [objcmt] Accept char arrays for rewriting to @() syntax. 2012-05-16 00:21:21 +00:00
Frontend Pulls diagnostics for temp file handling into the common diagnostic kinds. 2012-05-16 20:55:58 +00:00
FrontendTool Fix cmake. Remaining two ClangCC1Options deps. 2012-05-02 05:31:31 +00:00
Headers Remove the 'intrin.h' builtin header file and its tests for now. 2012-05-07 20:46:58 +00:00
Lex [preprocessor] Make sure that MacroExpands callbacks are always in source order. 2012-05-10 18:57:19 +00:00
Parse [libclang/AST] When declaring a local class, don't neglect to set the end location 2012-05-16 23:49:15 +00:00
Rewrite Modern objective-c translation. Translating default 2012-05-08 23:54:35 +00:00
Sema Use the argument location instead of the format string location when warning 2012-05-17 00:03:16 +00:00
Serialization Fix ASTReader handling of ImportDecls, from Meador Inge! 2012-05-16 16:31:58 +00:00
StaticAnalyzer [analyzer] Introduce clang_analyzer_eval for regression test constraint checks. 2012-05-16 16:01:07 +00:00
Tooling Fixes crasher bug in JSONCompilationDatabase for invalid input. 2012-05-15 11:46:07 +00:00
CMakeLists.txt Remove the unused, unmaintained, incomplete 'Index' library. 2012-04-13 16:31:46 +00:00
Makefile Remove the unused, unmaintained, incomplete 'Index' library. 2012-04-13 16:31:46 +00:00