Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Make a major restructuring of the clang tree: introduce a top-level | Chris Lattner | 2008-03-15 | 13 | -9151/+0 |
| | | | | | | | | | | lib dir and move all the libraries into it. This follows the main llvm tree, and allows the libraries to be built in parallel. The top level now enforces that all the libs are built before Driver, but we don't care what order the libs are built in. This speeds up parallel builds, particularly incremental ones. llvm-svn: 48402 | ||||
* | move the ASTContext argument to be first in the argument list of | Chris Lattner | 2008-03-15 | 3 | -26/+28 |
| | | | | | | all Create methods. llvm-svn: 48398 | ||||
* | Switch over functiondecl. This makes it obvious that the ASTContext | Chris Lattner | 2008-03-15 | 1 | -5/+6 |
| | | | | | | argument to Create should be first, not last. llvm-svn: 48397 | ||||
* | switch the VarDecl allocation model to go through ASTContext. | Chris Lattner | 2008-03-15 | 2 | -13/+16 |
| | | | | llvm-svn: 48396 | ||||
* | start switching decls over to using an allocator controlled by ASTContext. | Chris Lattner | 2008-03-15 | 2 | -21/+25 |
| | | | | | | | | | | Right now only some ctors are switched over. I need to switch them all over so I can change the dtor over. This lets us experiment with region allocation and other things in the future. llvm-svn: 48390 | ||||
* | Correctly error on arrays with automatic storage full of objects with | Nate Begeman | 2008-03-14 | 1 | -6/+13 |
| | | | | | | | non-default address space, and fix comment. Add a test for this. llvm-svn: 48366 | ||||
* | ISO/IEC TR 18037 | Nate Begeman | 2008-03-14 | 1 | -2/+7 |
| | | | | | | | | An address space name cannot be used to qualify an object that has automatic storage duration. Still not catching ASQual'd allocas of array type, just scalars at the moment. llvm-svn: 48350 | ||||
* | improve DeclStmt to be able to store SourceRange info correctly. | Chris Lattner | 2008-03-13 | 2 | -8/+9 |
| | | | | | | | Set the start of DeclStmt range. Right now the end is meaningless though. llvm-svn: 48330 | ||||
* | simplify all the type info accessors in TargeTInfo to return scalars, | Chris Lattner | 2008-03-08 | 1 | -7/+6 |
| | | | | | | which is simpler to use and provide. llvm-svn: 48051 | ||||
* | Add fastcall/stdcall attribute support | Nate Begeman | 2008-03-07 | 2 | -1/+31 |
| | | | | | | Generate CallingConv::Fast when fastcall attribute is present llvm-svn: 48017 | ||||
* | Patch by Nuno Lopes: | Ted Kremenek | 2008-03-07 | 1 | -6/+40 |
| | | | | | | | Added more comments for code processing attribute "format". Added more checks for corner cases, test cases, and warnings. llvm-svn: 48011 | ||||
* | remove the source location arguments to various target query methods. | Chris Lattner | 2008-03-05 | 3 | -44/+25 |
| | | | | llvm-svn: 47954 | ||||
* | Remove the first layer of support for "portability" warnings. This is | Chris Lattner | 2008-03-05 | 1 | -9/+0 |
| | | | | | | | | | | | | | | | theoretically useful, but not useful in practice. It adds a bunch of complexity, and not much value. It's best to nuke it. One big advantage is that it means the target interfaces will soon lose their SLoc arguments and target queries can never emit diagnostics anymore (yay). Removing this also simplifies some of the core preprocessor which should make it slightly faster. Ted, I didn't simplify TripleProcessor, which can now have at most one triple, and can probably just be removed. Please poke at it when you have time. llvm-svn: 47930 | ||||
* | The operand to the visibility attribute is required to be a quoted string, ↵ | Chris Lattner | 2008-03-04 | 1 | -9/+14 |
| | | | | | | not a bare identifier. llvm-svn: 47893 | ||||
* | Only allow a "noreturn" attribute to be affixed to a FunctionDecl. | Ted Kremenek | 2008-03-03 | 1 | -0/+8 |
| | | | | llvm-svn: 47844 | ||||
* | Added TODO. | Ted Kremenek | 2008-03-03 | 1 | -0/+3 |
| | | | | llvm-svn: 47843 | ||||
* | Add a bunch of attributes, patch by Nuno Lopes. | Chris Lattner | 2008-03-03 | 2 | -2/+229 |
| | | | | llvm-svn: 47837 | ||||
* | character literals have char type in C++ and int type in C. Patch | Chris Lattner | 2008-03-01 | 1 | -2/+4 |
| | | | | | | by Nuno Lopes for PR2089 llvm-svn: 47787 | ||||
* | Fix http://llvm.org/bugs/show_bug.cgi?id=2103. | Steve Naroff | 2008-02-29 | 1 | -5/+15 |
| | | | | llvm-svn: 47775 | ||||
* | Fix http://llvm.org/bugs/show_bug.cgi?id=2106. | Steve Naroff | 2008-02-29 | 1 | -0/+6 |
| | | | | llvm-svn: 47768 | ||||
* | Fix a crash where PI.TypeInfo has not been filled in case of missing ↵ | Gabor Greif | 2008-02-29 | 1 | -6/+7 |
| | | | | | | | | | ObjCInterfaceDecl. Happens with Xcode 2.4.1 headers on test Parser/objc-foreach-error-1.m llvm-svn: 47767 | ||||
* | Add support for attribute(deprecated), patch by Nuno Lopes! | Chris Lattner | 2008-02-29 | 2 | -1/+14 |
| | | | | llvm-svn: 47753 | ||||
* | Added parsing of attributes for functions. | Ted Kremenek | 2008-02-27 | 1 | -2/+4 |
| | | | | llvm-svn: 47693 | ||||
* | Added support for attribute "noreturn." | Ted Kremenek | 2008-02-27 | 2 | -0/+15 |
| | | | | llvm-svn: 47689 | ||||
* | add parsing, ast building and pretty printing support for C++ throw expressions. | Chris Lattner | 2008-02-26 | 2 | -0/+10 |
| | | | | | | Patch by Mike Stump! llvm-svn: 47582 | ||||
* | Fix PR2092 by making sure the sign of the enum value follows the | Chris Lattner | 2008-02-26 | 1 | -6/+11 |
| | | | | | | | sign of its type in the early exit case. No testcase, because this doesn't manifest as a failure. llvm-svn: 47581 | ||||
* | convert tabs to spaces, patch by Mike Stump! | Chris Lattner | 2008-02-25 | 3 | -10/+10 |
| | | | | llvm-svn: 47560 | ||||
* | Move the initialization of SEL/objc_selector from Sema::Sema() to ↵ | Steve Naroff | 2008-02-24 | 1 | -13/+16 |
| | | | | | | | | Sema::ActOnTranslationUnitScope() and make sure the type/struct get inserted into the translation unit scope. Bug submitted by David Chisnall (thanks!). llvm-svn: 47538 | ||||
* | Handle __attribute__((annotate("string"))) | Nate Begeman | 2008-02-21 | 2 | -3/+26 |
| | | | | llvm-svn: 47451 | ||||
* | add a fixme. | Chris Lattner | 2008-02-21 | 1 | -1/+3 |
| | | | | llvm-svn: 47421 | ||||
* | Collect and build and process type attributes on pointers. For | Chris Lattner | 2008-02-21 | 2 | -5/+14 |
| | | | | | | | example, we can now correctly build the type for things like: _AS1 float * _AS2 *B; llvm-svn: 47420 | ||||
* | move some code, no other change. | Chris Lattner | 2008-02-21 | 1 | -67/+67 |
| | | | | llvm-svn: 47419 | ||||
* | move type attribute processing into the creatively named ↵ | Chris Lattner | 2008-02-21 | 2 | -12/+14 |
| | | | | | | ProcessTypeAttributes method. llvm-svn: 47418 | ||||
* | Correctly handle address space qualifiers in declspecs. This | Chris Lattner | 2008-02-21 | 2 | -41/+56 |
| | | | | | | | | | | | | allows us to correctly handle stuff like: _AS1 float *B; and to reject stuff like: _AS1 _AS2* x; llvm-svn: 47417 | ||||
* | move ConvertDeclSpecToType into Sema | Chris Lattner | 2008-02-20 | 2 | -28/+29 |
| | | | | llvm-svn: 47415 | ||||
* | rename some methods. | Chris Lattner | 2008-02-20 | 1 | -23/+21 |
| | | | | llvm-svn: 47414 | ||||
* | Use getKind() in HandleDeclAttribute instead of decoding the string inline. | Chris Lattner | 2008-02-20 | 1 | -17/+17 |
| | | | | llvm-svn: 47413 | ||||
* | Tabs are the enemy | Nate Begeman | 2008-02-20 | 1 | -7/+7 |
| | | | | llvm-svn: 47410 | ||||
* | add some code that will be used to remove processed attrs from | Chris Lattner | 2008-02-20 | 1 | -1/+30 |
| | | | | | | declspec, it is currently nonfunctional though. llvm-svn: 47405 | ||||
* | Change ConvertDeclSpecToType to break out of switch instead of | Chris Lattner | 2008-02-20 | 1 | -44/+46 |
| | | | | | | returning directly. This allows us to factor handling of _Complex. llvm-svn: 47404 | ||||
* | Alternate address spaces work: | Chris Lattner | 2008-02-20 | 3 | -12/+13 |
| | | | | | | | | | rename QualType::getQualifiers to getCVRQualifiers. Add some fixme's and clean up some code relevant to qualifiers. Change ASQualType to contain a Type* instead of a QualType. Any CVR qualifiers should be on the outer qual type. llvm-svn: 47398 | ||||
* | Allow ArraySubscriptExpr to be a base node for vector dereference. This | Nate Begeman | 2008-02-19 | 1 | -1/+1 |
| | | | | | | | | | allows you to do things like typedef __attribute__(( ocu_vector_type(4))) float float4; float4 *x; float y = x[0][2]; llvm-svn: 47295 | ||||
* | Turn handling of parameter attributes back on, fixing the ObjC breakage | Nate Begeman | 2008-02-17 | 2 | -2/+3 |
| | | | | llvm-svn: 47246 | ||||
* | Revert this temporarily, it's breaking objc :/ | Nate Begeman | 2008-02-17 | 1 | -2/+2 |
| | | | | llvm-svn: 47245 | ||||
* | Handle parameter attributes | Nate Begeman | 2008-02-17 | 1 | -3/+3 |
| | | | | llvm-svn: 47243 | ||||
* | Fix PR2042. One remaining issue: we don't currently diagnose | Chris Lattner | 2008-02-17 | 1 | -2/+3 |
| | | | | | | | | | int foobar(int); int foobar() {} which requires ifdef'ing out a testcase in predefined-function.c. llvm-svn: 47236 | ||||
* | Better handling of the aligned attribute. | Anders Carlsson | 2008-02-16 | 1 | -13/+22 |
| | | | | llvm-svn: 47216 | ||||
* | Fix CheckEndOfDirective to diagnose lines that contain macros that expand to | Chris Lattner | 2008-02-16 | 1 | -2/+1 |
| | | | | | | | zero tokens. This fixes PR2045, thanks to Neil for finding another incredibly subtle corner case :) llvm-svn: 47203 | ||||
* | Fix typo | Anders Carlsson | 2008-02-16 | 1 | -1/+1 |
| | | | | llvm-svn: 47199 | ||||
* | Handle packed attribute correctly | Anders Carlsson | 2008-02-16 | 2 | -5/+37 |
| | | | | llvm-svn: 47197 |