- Jun 06, 2012
-
-
Benjamin Kramer authored
llvm-svn: 158100
-
David Blaikie authored
Add a -rewrite-includes option, which is similar to -rewrite-macros, but only expands #include directives. Patch contributed by Lubos Lunak (l.lunax@suse.cz). Review by Matt Beaumont-Gay (matthewbg@google.com). llvm-svn: 158093
-
David Blaikie authored
llvm-svn: 158091
-
Manuel Klimek authored
llvm-svn: 158088
-
Benjamin Kramer authored
llvm-svn: 158086
-
Jordan Rose authored
In standard C since C89, a 'translation-unit' is syntactically defined to have at least one "external-declaration", which is either a decl or a function definition. In Clang the latter gives us a declaration as well. The tricky bit about this warning is that our predefines can contain external declarations (__builtin_va_list and the 128-bit integer types). Therefore our AST parser now makes sure we have at least one declaration that doesn't come from the predefines buffer. Also, remove bogus warning about empty source files. This doesn't catch source files that only contain comments, and never fired anyway because of our predefines. PR12665 and <rdar://problem/9165548> llvm-svn: 158085
-
Francois Pichet authored
Zap the /Za compiler switch from MSVC projects, the option is considered harmful even by Microsoft people and clang won't build using the MSVC 2012 RC if not removed. Only 1 minor code change was necessary: can't use cdecl as variable name anymore. llvm-svn: 158063
-
Daniel Jasper authored
unused private fields of classes that are fully defined in the current translation unit. llvm-svn: 158054
-
Ted Kremenek authored
to discover how a value was used uninitialized. llvm-svn: 158048
-
Douglas Gregor authored
parameter pack is a converting constructor. Fixes PR13003. llvm-svn: 158040
-
Ted Kremenek authored
adjacent edges to have compatible ranges. This simplifies the layout logic for some clients. llvm-svn: 158028
-
- Jun 05, 2012
-
-
Fariborz Jahanian authored
the overriding deprecated/unavailable method. // rdar://11475360 llvm-svn: 158022
-
Manuel Klimek authored
llvm-svn: 158019
-
-
Eric Christopher authored
As the failing testcase has been fixed. This reverts commit 0637f407e6ee7fdccde17fbf9a5fcc4853187b3e. llvm-svn: 158009
-
Richard Smith authored
James Dennett! llvm-svn: 158002
-
Simon Atanasyan authored
when single float ABI is selected. llvm-svn: 157996
-
John McCall authored
This reverts r157970, which was not passing on clang-x86_64-darwin10-nobootstrap-RA llvm-svn: 157983
-
Eric Christopher authored
not much reason to emit for constructors and destructors that aren't user defined. rdar://11593099 llvm-svn: 157970
-
Jordan Rose authored
Within the guts of CheckFormatHandler, the IsObjCLiteral flag was being used in two ways: to see if null bytes were allowed, and to see if the '%@' specifier is allowed.* The former usage has been changed to an explicit test and the latter pushed down to CheckPrintfHandler and renamed ObjCContext, since it applies to CFStrings as well. * This also changes how wide chars are interpreted; in OS X Foundation, the wide character type is 'unichar', a typedef for short, rather than wchar_t. llvm-svn: 157968
-
Jordan Rose authored
llvm-svn: 157962
-
Jordan Rose authored
llvm-svn: 157961
-
Richard Smith authored
llvm-svn: 157959
-
Richard Smith authored
temporary or an array subobject of a class temporary, and the resulting value is used to initialize a pointer which outlives the temporary. Such a pointer is always left dangling after the initialization completes and the array's lifetime ends. In order to detect this situation, this change also adds an LValueClassification of LV_ArrayTemporary for temporaries of array type which aren't subobjects of class temporaries. These occur in C++11 T{...} and GNU C++ (T){...} expressions, when T is an array type. Previously we treated the former as a generic prvalue and the latter as a class temporary. llvm-svn: 157955
-
- Jun 04, 2012
-
-
Anna Zaks authored
llvm-svn: 157954
-
Nico Weber authored
Review and wording tweaks by Richard. llvm-svn: 157953
-
Eric Christopher authored
llvm-svn: 157952
-
Argyrios Kyrtzidis authored
been declared on NSArray/NSDictionary. rdar://11581975 llvm-svn: 157951
-
Anna Zaks authored
This bug was triggered by r157851. It only happens in the case where we don't perform optimal diagnostic pruning. llvm-svn: 157950
-
Aaron Ballman authored
llvm-svn: 157947
-
Fariborz Jahanian authored
message receiver is 'weak' property. // rdar://10225276 llvm-svn: 157946
-
Alexander Kornienko authored
Fixed a problem related to resolution of built-in headers in case a path of tool's binary contains sym-links. llvm-svn: 157944
-
Aaron Ballman authored
llvm-svn: 157943
-
Jordan Rose authored
llvm-svn: 157934
-
Jordan Rose authored
llvm-svn: 157933
-
Jordan Rose authored
Now correctly builds with both GNU make and CMake. llvm-svn: 157932
-
Evgeniy Stepanov authored
llvm-svn: 157923
-
Hans Wennborg authored
Also fix the '__thread' before 'extern' case. llvm-svn: 157921
-
Craig Topper authored
llvm-svn: 157913
-
Douglas Gregor authored
involving 'restrict', place restrict on the pointer type rather than on the pointee type. Also make sure that we gather restrict from the pointer type. Fixes PR12854 and the major part of PR11093. llvm-svn: 157910
-