- Apr 18, 2009
-
-
Chris Lattner authored
llvm-svn: 69424
-
Chris Lattner authored
llvm-svn: 69423
-
Chris Lattner authored
llvm-svn: 69422
-
Douglas Gregor authored
AST context's __builtin_va_list type will be set when the PCH file is loaded. This fixes the crash when CodeGen'ing a va_arg expression pulled in from a PCH file. llvm-svn: 69421
-
Chris Lattner authored
llvm-svn: 69416
-
Chris Lattner authored
llvm-svn: 69415
-
Chris Lattner authored
llvm-svn: 69413
-
Chris Lattner authored
llvm-svn: 69412
-
Chris Lattner authored
Highlights: PP::isNextPPTokenLParen() no longer eats the ( when present. We now simplify slightly the logic parsing macro arguments. We now handle PR3937 and other related cases correctly. llvm-svn: 69411
-
Douglas Gregor authored
lazy PCH deserialization. Propagate that argument wherever it needs to be. No functionality change, except that I've tightened up a few PCH tests in preparation. llvm-svn: 69406
-
Chris Lattner authored
on the code. llvm-svn: 69404
-
Chris Lattner authored
llvm-svn: 69403
-
Chris Lattner authored
llvm-svn: 69401
-
Chris Lattner authored
rdar://6800430 llvm-svn: 69392
-
Chris Lattner authored
1. We had logic in sema to decide whether or not to emit the error based on manually checking whether in a system header file. 2. we were allowing redefinitions of typedefs in class scope in C++ if in header file. 3. there was no way to force typedef redefinitions to be accepted by the C compiler, which annoys me when stripping linemarkers out of .i files. The fix is to split the C++ class typedef redefinition path from the C path, and change the C path to be a warning that normally maps to error. This causes it to properly be ignored in system headers, etc. and gives us a way to control it. Passing -Wtypedef-redefinition now turns the error into a warning. One behavior change is that we now diagnose cases where you redefine a typedef in your .c file that was defined in a header file. This seems like reasonable behavior, and the diagnostic now indicates that it can be controlled with -Wtypedef-redefinition. llvm-svn: 69391
-
- Apr 17, 2009
-
-
Douglas Gregor authored
1) Accidentally used delete [] on an array of statements that was allocated with ASTContext's allocator 2) Deserialization of names with multiple declarations (e.g., a struct and a function) used the wrong mangling constant, causing it to view declaration IDs as Decl*s. 403.gcc builds and links properly. llvm-svn: 69390
-
Douglas Gregor authored
This completes support for all of C (+ extensions). We can (again) build a PCH file for Carbon.h. llvm-svn: 69385
-
Douglas Gregor authored
llvm-svn: 69376
-
Chris Lattner authored
a dummy *function* type when it is recovering and knows it needs a function. rdar://6802350 - clang crash on invalid input llvm-svn: 69374
-
Douglas Gregor authored
llvm-svn: 69373
-
Douglas Gregor authored
llvm-svn: 69370
-
Douglas Gregor authored
llvm-svn: 69369
-
Chris Lattner authored
llvm-svn: 69366
-
Douglas Gregor authored
llvm-svn: 69364
-
rdar://6800926Chris Lattner authored
the functional change here is changing ConvertType -> ConvertTypeForMem so that we handle i1 fields properly as memory. llvm-svn: 69361
-
Chris Lattner authored
llvm-svn: 69359
-
Douglas Gregor authored
llvm-svn: 69356
-
Douglas Gregor authored
Optimize PCH encoding for switch-case statements slightly, by making the switch-case numbering local to a particular statement. llvm-svn: 69355
-
Sebastian Redl authored
Add a few commented lines to the test case that point out things that don't work yet. llvm-svn: 69354
-
Anders Carlsson authored
llvm-svn: 69345
-
Daniel Dunbar authored
- Cover your eyes... - This is a simple but effective way to allow developers to build a project with clang while manipulating the command line, without having to edit the project itself. llvm-svn: 69342
-
Daniel Dunbar authored
- <rdar://problem/6800351> clang not producing correct large struct return code for Blocks llvm-svn: 69337
-
Douglas Gregor authored
llvm-svn: 69334
-
Douglas Gregor authored
llvm-svn: 69332
-
Mike Stump authored
expressions that can be of static duration to be returned. Radar 6786551 llvm-svn: 69331
-
Douglas Gregor authored
compound, case, default, if, switch, and break statements. llvm-svn: 69329
-
- Apr 16, 2009
-
-
rdar://problem/6765383Steve Naroff authored
Fix <rdar://problem/6765383> clang-6: clang does not appear to support declaring a static Block 'const'. llvm-svn: 69306
-
Fariborz Jahanian authored
match gcc's. llvm-svn: 69305
-
Sebastian Redl authored
Fix a crash bug when comparing overload quality of conversion operators with conversion constructors. Remove an atrocious amount of trailing whitespace in the overloaded operator mangler. Sorry, couldn't help myself. Change the DeclType parameter of Sema::CheckReferenceInit to be passed by value instead of reference. It wasn't changed anywhere. Let the parser handle C++'s irregular grammar around assignment-expression and conditional-expression. And finally, the reason for all this stuff: implement C++ semantics for the conditional operator. The implementation is complete except for determining lvalueness. llvm-svn: 69299
-
Eli Friedman authored
llvm-svn: 69297
-