- Feb 16, 2012
-
-
Richard Smith authored
and move it out of -Wgnu so that -Wno-gnu leaves it enabled. As requested by Eli. llvm-svn: 150643
-
Richard Smith authored
and unions, and C++11 generalized constant expressions. llvm-svn: 150640
-
Fariborz Jahanian authored
as unscanned. // rdar://10832643 llvm-svn: 150639
-
Eric Christopher authored
This reverts commit 9a68d4584afcd0853b930bd80235b58736e785b4. llvm-svn: 150637
-
Eric Christopher authored
partial types for contexts and forward decls while allowing us to complete types later on for debug purposes. This piggy-backs on the metadata replacement and rauw changes for temporary nodes and takes advantage of the incremental support I added in earlier. This allows us to, if we decide, to limit adding methods and variables to structures in order to limit the amount of debug information output into a .o file. The caching is a bit complicated though so any thoughts on untangling that are welcome. llvm-svn: 150631
-
- Feb 15, 2012
-
-
Kaelyn Uhrain authored
llvm-svn: 150629
-
Richard Smith authored
parenthesized braced-init-list in the base/member initialization list. llvm-svn: 150625
-
Kaelyn Uhrain authored
Snooping in other namespaces when the identifier being corrected is already qualified (i.e. a valid CXXScopeSpec is passed to CorrectTypo) and ranking synthesized namespace qualifiers relative to the existing qualifier is now performed. Support for disambiguating the string representation of synthesized namespace qualifers has also been added (the change to test/Parser/cxx-using-directive.cpp is an example of an ambiguous relative qualifier). llvm-svn: 150622
-
Douglas Gregor authored
with the same parameter types and return type as the function call operator. This is the real answer to http://stackoverflow.com/questions/4148242/is-it-possible-to-convert-a-c0x-lambda-to-a-clang-block :) llvm-svn: 150620
-
Fariborz Jahanian authored
which attempted to rewrite the same meta-data twice. llvm-svn: 150618
-
Douglas Gregor authored
Factor the construction of the lambda-to-function-pointer conversion function declaration into a separate function. No functionality change llvm-svn: 150617
-
David Blaikie authored
Reviewed by Ted Kremenek. llvm-svn: 150616
-
Benjamin Kramer authored
Store the warning option corresponding to a diagnostics as an index into the option table instead of storing the name. Another 8 bytes + relocation removed from every diagnostic on x86_64. llvm-svn: 150615
-
David Blaikie authored
This option was added in r129614 and doesn't have any use case that I'm aware of. It's possible that external tools are using these names - and if that's the case we can certainly reassess the functionality, but for now it lets us shave out a few unneeded bits from clang. Move the "StaticDiagNameIndex" table into the only remaining consumer, diagtool. This removes the actual diagnostic name strings from clang entirely. Reviewed by Chris Lattner & Ted Kremenek. llvm-svn: 150612
-
Douglas Gregor authored
function, provide a specialized diagnostic that indicates the kind of special member function (default constructor, copy assignment operator, etc.) and that it was implicitly deleted. Add a hook where we can provide more detailed information later. llvm-svn: 150611
-
David Chisnall authored
llvm-svn: 150602
-
Nico Weber authored
llvm-svn: 150600
-
Douglas Gregor authored
llvm-svn: 150589
-
Douglas Gregor authored
specialize location information and diagnostics for this entity. llvm-svn: 150588
-
David Chisnall authored
llvm-svn: 150587
-
Douglas Gregor authored
llvm-svn: 150586
-
Douglas Gregor authored
llvm-svn: 150585
-
Douglas Gregor authored
return statements within a lambda; this diagnostic previously referred to blocks. llvm-svn: 150584
-
Douglas Gregor authored
llvm-svn: 150583
-
David Chisnall authored
world on Solaris 11 for both x86 and x86-64 using the built-in assembler and Solaris (not GNU) ld, however it currently relies on a hard-coded GCC location to find crtbegin.o and crtend.o, as well as libgcc and libgcc_eh. llvm-svn: 150580
-
Dmitri Gribenko authored
in test/SemaCXX/nullptr.cpp to static_assert llvm-svn: 150579
-
Hans Wennborg authored
This commit makes PrintfSpecifier::fixType() and ScanfSpecifier::fixType() only fix a conversion specification enough that Clang wouldn't warn about it, as opposed to always changing it to use the "canonical" conversion specifier. (PR11975) This preserves the user's choice of conversion specifier in cases like: printf("%a", (long double)1); where we previously suggested "%Lf", we now suggest "%La" printf("%x", (long)1); where we previously suggested "%ld", we now suggest "%lx". llvm-svn: 150578
-
Richard Smith authored
expression is referenced, defined, then referenced again, make sure we instantiate it the second time it's referenced. This is the static data member analogue of r150518. llvm-svn: 150560
-
Richard Smith authored
to be core constant expressions (including pointers and references to temporaries), and makes constexpr calculations Turing-complete. A Turing machine simulator is included as a testcase. This opens up the possibilty of removing CCValue entirely, and removing some copies from the constant evaluator in the process, but that cleanup is not part of this change. llvm-svn: 150557
-
Anna Zaks authored
llvm-svn: 150556
-
Richard Smith authored
llvm-svn: 150555
-
John McCall authored
is general goodness because representations of member pointers are not always equivalent across member pointer types on all ABIs (even though this isn't really standard-endorsed). Take advantage of the new information to teach IR-generation how to do these reinterprets in constant initializers. Make sure this works when intermingled with hierarchy conversions (although this is not part of our motivating use case). Doing this in the constant-evaluator would probably have been better, but that would require a *lot* of extra structure in the representation of constant member pointers: you'd really have to track an arbitrary chain of hierarchy conversions and reinterpretations in order to get this right. Ultimately, this seems less complex. I also wasn't quite sure how to extend the constant evaluator to handle foldings that we don't actually want to treat as extended constant expressions. llvm-svn: 150551
-
Douglas Gregor authored
well as improving the RecursiveASTVisitor's walk of lambda expressions. llvm-svn: 150549
-
Fariborz Jahanian authored
meta-data. llvm-svn: 150548
-
Anna Zaks authored
llvm-svn: 150535
-
Anna Zaks authored
llvm-svn: 150534
-
Anna Zaks authored
the passed in pointer on failure. llvm-svn: 150533
-
Anna Zaks authored
hardening. llvm-svn: 150532
-
Richard Smith authored
Conditionally include headers which older STL implementations don't provide. llvm-svn: 150526
-
- Feb 14, 2012
-
-
Richard Smith authored
llvm-svn: 150524
-