- Dec 19, 2012
-
-
Richard Smith authored
llvm-svn: 170492
-
Richard Smith authored
too). When instantiating a direct-initializer, if we find it has zero arguments, produce an empty ParenListExpr rather than returning a null expression. llvm-svn: 170490
-
Richard Smith authored
copy-list-initialization (and doesn't add an additional copy step): Fill in the ListInitialization bit when creating a CXXConstructExpr. Use it when instantiating initializers in order to correctly handle instantiation of copy-list-initialization. Teach TreeTransform that function arguments are initializations, and so need this special treatment too. Finally, remove some hacks which were working around SubstInitializer's shortcomings. llvm-svn: 170489
-
Ted Kremenek authored
This is plumbing needed for later functionality changes. llvm-svn: 170488
-
Ted Kremenek authored
llvm-svn: 170487
-
Fariborz Jahanian authored
llvm-svn: 170485
-
NAKAMURA Takumi authored
test/Index/preamble_macro_template.cpp: Suppress this probably due to Lit/win32 issue. Investigating. llvm-svn: 170484
-
David Blaikie authored
Change DeclContextLookup(Const)Result to (Mutable)ArrayRef<NamedDecl*>, as per review discussion in r170365 This does limit these typedefs to being sequences, but no current usage requires them to be contiguous (we could expand this to a more general iterator pair range concept at some point). Also, it'd be nice if SmallVector were constructible directly from an ArrayRef but this is a bit tricky since ArrayRef depends on SmallVectorBaseImpl for the inverse conversion. (& generalizing over all range-like things, while nice, would require some nontrivial SFINAE I haven't thought about yet) llvm-svn: 170482
-
Fariborz Jahanian authored
is created to 1000. llvm-svn: 170481
-
Eli Friedman authored
of assignment to a bool bitfield. PR14638. llvm-svn: 170480
-
Fariborz Jahanian authored
llvm-svn: 170478
-
Eli Friedman authored
against itself. PR14489. llvm-svn: 170474
-
Nadav Rotem authored
llvm-svn: 170472
-
Nadav Rotem authored
llvm-svn: 170469
-
Ted Kremenek authored
Have clang_getSpellingLocation() use the same logic as DiagnosticRenderer for plowing through macros. This fixes a subtle bug reported in <rdar://problem/12584554> where a double-nested macro could lead to an incorrect fixit location with live issues. This fix also uncovers a bunch of subtle bugs in our indexer test cases which are now fixed (mostly around source ranges for attributes). llvm-svn: 170468
-
Fariborz Jahanian authored
use clang's formatter. Currently, formatter is used to format declaration tags for xml comments. Since formatter is in flux and its change will break several of the clang comment tests, only a single tests is formatted using this facility. Doug has reviewed and approved it for check-in. llvm-svn: 170467
-
Douglas Gregor authored
llvm-svn: 170466
-
- Dec 18, 2012
-
-
Eli Bendersky authored
llvm-svn: 170461
-
Bill Wendling authored
llvm-svn: 170458
-
Daniel Jasper authored
We used to format initializers like this (with a sort of hacky implementation): Constructor() : Val1(A), Val2(B) { and now format like this (with a somewhat better solution): Constructor() : Val1(A), Val2(B) { assuming this would not fit on a single line. Also added tests. As a side effect we now first analyze whether an UnwrappedLine needs to be split at all. If not, not splitting it is the best solution by definition. As this should be a very common case in normal code, not exploring the entire solution space can provide significant speedup. llvm-svn: 170457
-
Meador Inge authored
PR 14529 was opened because neither Clang or LLVM was expanding calls to creal* or cimag* into instructions that just load the respective complex field. After some discussion, it was not considered realistic to do this in LLVM because of the platform specific way complex types are expanded. Thus a way to solve this in Clang was pursued. GCC does a similar expansion. This patch adds the feature to Clang by making the creal* and cimag* functions library builtins and modifying the builtin code generator to look for the new builtin types. llvm-svn: 170455
-
Daniel Jasper authored
This allows for writing tests including line comments easier and more readable. We will need more of those tests in the future and also line comments are useful to force line breaks in tests. llvm-svn: 170446
-
Douglas Gregor authored
llvm-svn: 170444
-
Eli Bendersky authored
llvm-svn: 170440
-
Guy Benyei authored
Add OpenCL images as clang builtin types. llvm-svn: 170432
-
Guy Benyei authored
Revert changes from r170428, as I accidentally changed the line endings of these files to Windows style. llvm-svn: 170431
-
Guy Benyei authored
llvm-svn: 170428
-
David Chisnall authored
llvm-svn: 170425
-
NAKAMURA Takumi authored
I don't want to suppress this to be excluded with the feature "dev-fd-fs". This should work also on freebsd. llvm-svn: 170411
-
Rafael Espindola authored
llvm-svn: 170408
-
Rafael Espindola authored
This fixes the storage class of extern decls that are merged with file level statics. The patch also fixes the linkage computation so that they are considered internal. llvm-svn: 170406
-
Rafael Espindola authored
but remove unneeded options and fix the comment. llvm-svn: 170405
-
Richard Smith authored
llvm-svn: 170403
-
Eli Friedman authored
(This change only affects ObjC.) <rdar://problem/12857117>. llvm-svn: 170402
-
Sean Silva authored
As per Ted's advice. It can be brought back from version control if needed. This also fixes a Sphinx warning. llvm-svn: 170401
-
Anders Carlsson authored
When warning about a missing prototype because a function declaration is missing 'void', insert a fixit to add the void. llvm-svn: 170399
-
rdar://problem/12847524Eli Friedman authored
I'm not really happy with this fix, but I'm confident it's correct. llvm-svn: 170397
-
Bill Wendling authored
<rdar://problem/12646344> llvm-svn: 170393
-
Bill Wendling authored
<rdar://problem/12622659> llvm-svn: 170392
-
Eric Christopher authored
for location information. Part of PR14624 llvm-svn: 170391
-