llvm-project/clang/lib
Richard Smith c7b0bdffe7 If an object (such as a std::string) with an appropriate c_str() member function
is passed to a variadic function in a position where a format string indicates
that c_str()'s return type is desired, provide a note suggesting that the user
may have intended to call the c_str() member.

Factor the non-POD-vararg checking out of DefaultVariadicArgumentPromotion and
move it to SemaChecking in order to facilitate this. Factor the call checking
out of function call checking and block call checking, and extend it to cover
constructor calls too.

Patch by Sam Panzer!

llvm-svn: 158887
2012-06-21 01:08:35 +00:00
..
ARCMigrate [arcmt] 2012-06-20 01:46:26 +00:00
AST RawCommentList::addComment: fix the assertion so it actually checks that new comment is after the last one (change Comments[0] to Comments.back()), and handle the case of two consecutive comments, e.g. /** *//* */. There is already a testcase for that (but it didn't trigger the assert because the assert itself was wrong). 2012-06-21 00:28:14 +00:00
Analysis -Wuninitialized bugfix: when entering the scope of a variable with no 2012-06-16 23:34:14 +00:00
Basic Introduce ObjCRuntime::hasWeakClassImport() and use it in the appropriate 2012-06-20 21:58:02 +00:00
CodeGen [ms-style asm] Change the fatal error to an extension warning. Apparently, this 2012-06-20 18:28:37 +00:00
Driver Revert "Provide a -no-pedantic to cancel out -pedantic." This needs to be designed 2012-06-20 07:03:37 +00:00
Edit [objcmt] Have the modern objc migration warning change from: 2012-06-20 01:28:32 +00:00
Frontend Restructure how the driver communicates information about the 2012-06-20 06:18:46 +00:00
FrontendTool Support -frewrite-includes as an option while preprocessing. 2012-06-14 17:36:09 +00:00
Headers Headers/xopintrin.h: Try to fix r158492. Did you mean, mm256? 2012-06-15 13:37:44 +00:00
Lex Do not complain about junk on the end of a #endif in a skipped block. Such junk 2012-06-21 00:35:03 +00:00
Parse Unbreak GCC build: GCC doesn't like clang::Parser::CommentHandler and class clang::CommentHandler to have same name. 2012-06-20 01:06:08 +00:00
Rewrite Restructure how the driver communicates information about the 2012-06-20 06:18:46 +00:00
Sema If an object (such as a std::string) with an appropriate c_str() member function 2012-06-21 01:08:35 +00:00
Serialization Fix a warning on a fully covered switch with a default: 2012-06-20 06:47:54 +00:00
StaticAnalyzer [analyzer] Malloc leak false positive: Allow xpc context to escape. 2012-06-20 23:35:57 +00:00
Tooling Fixed a problem related to resolution of built-in headers in case a path of tool's binary contains sym-links. 2012-06-04 19:02:59 +00:00
CMakeLists.txt Fix a big layering violation introduced by r158771. 2012-06-20 09:53:52 +00:00
Makefile Fix a big layering violation introduced by r158771. 2012-06-20 09:53:52 +00:00