Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Make a major restructuring of the clang tree: introduce a top-level | Chris Lattner | 2008-03-15 | 1 | -2297/+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 | 1 | -12/+12 |
| | | | | | | 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 | 1 | -11/+13 |
| | | | | llvm-svn: 48396 | ||||
* | start switching decls over to using an allocator controlled by ASTContext. | Chris Lattner | 2008-03-15 | 1 | -6/+8 |
| | | | | | | | | | | 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 | ||||
* | Add fastcall/stdcall attribute support | Nate Begeman | 2008-03-07 | 1 | -0/+28 |
| | | | | | | 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 | 1 | -19/+9 |
| | | | | 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 | ||||
* | Add a bunch of attributes, patch by Nuno Lopes. | Chris Lattner | 2008-03-03 | 1 | -2/+222 |
| | | | | llvm-svn: 47837 | ||||
* | Add support for attribute(deprecated), patch by Nuno Lopes! | Chris Lattner | 2008-02-29 | 1 | -1/+10 |
| | | | | 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 | 1 | -0/+14 |
| | | | | llvm-svn: 47689 | ||||
* | 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 | 1 | -5/+5 |
| | | | | llvm-svn: 47560 | ||||
* | Handle __attribute__((annotate("string"))) | Nate Begeman | 2008-02-21 | 1 | -3/+25 |
| | | | | llvm-svn: 47451 | ||||
* | Collect and build and process type attributes on pointers. For | Chris Lattner | 2008-02-21 | 1 | -2/+2 |
| | | | | | | | example, we can now correctly build the type for things like: _AS1 float * _AS2 *B; llvm-svn: 47420 | ||||
* | Correctly handle address space qualifiers in declspecs. This | Chris Lattner | 2008-02-21 | 1 | -41/+13 |
| | | | | | | | | | | | | allows us to correctly handle stuff like: _AS1 float *B; and to reject stuff like: _AS1 _AS2* x; llvm-svn: 47417 | ||||
* | 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 | ||||
* | Alternate address spaces work: | Chris Lattner | 2008-02-20 | 1 | -4/+3 |
| | | | | | | | | | 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 | ||||
* | Turn handling of parameter attributes back on, fixing the ObjC breakage | Nate Begeman | 2008-02-17 | 1 | -2/+2 |
| | | | | 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 | 1 | -4/+35 |
| | | | | llvm-svn: 47197 | ||||
* | Don't call non-existent method... sorry about the spam; the fix seemed | Eli Friedman | 2008-02-15 | 1 | -1/+1 |
| | | | | | | trivial, but I forgot that method doesn't exist yet. llvm-svn: 47175 | ||||
* | Get rid of unused variable warning. | Eli Friedman | 2008-02-15 | 1 | -1/+1 |
| | | | | llvm-svn: 47174 | ||||
* | Split out incomplete arrays from VariableArrayType into | Eli Friedman | 2008-02-15 | 1 | -13/+12 |
| | | | | | | | | | | IncompleteArrayType. This should make code dealing with both incomplete and variable length arrays much more readable, plus it allows properly making the distinction between isVariableArrayType() and isVariablyModifiedType(). The patch is a little big, but it's strightforward. so I don't think there should be any issues. llvm-svn: 47165 | ||||
* | Part of clearing up the whole VariableArrayType + incomplete arrays | Eli Friedman | 2008-02-15 | 1 | -20/+9 |
| | | | | | | thing. Some cleanups that can be done independently of the fix. llvm-svn: 47158 | ||||
* | Get rid of AttributeList in the AST and use the new Attr class instead | Anders Carlsson | 2008-02-15 | 1 | -5/+6 |
| | | | | llvm-svn: 47155 | ||||
* | Get rid of outdated code that masks type errors. Fixes PR2036. | Eli Friedman | 2008-02-15 | 1 | -10/+0 |
| | | | | llvm-svn: 47154 | ||||
* | Fix unsafe static cast... | Steve Naroff | 2008-02-12 | 1 | -2/+2 |
| | | | | llvm-svn: 46980 | ||||
* | After yesterday's discussion ↵ | Steve Naroff | 2008-02-11 | 1 | -5/+2 |
| | | | | | | | | (http://lists.cs.uiuc.edu/pipermail/cfe-dev/2008-February/001044.html), decided not to change the semantics of Type::isIncompleteType(). This commit simply changes a couple comments to reflect this decision. llvm-svn: 46970 | ||||
* | Add a comment/FIXME to an earlier change. | Steve Naroff | 2008-02-11 | 1 | -1/+5 |
| | | | | llvm-svn: 46947 | ||||
* | Fix http://llvm.org/bugs/show_bug.cgi?id=1988. | Steve Naroff | 2008-02-11 | 1 | -0/+5 |
| | | | | | | Sema::CheckInitializerListTypes() needs to ignore invalid structures. llvm-svn: 46942 | ||||
* | Improve diagnostic for illegal array initialization. | Eli Friedman | 2008-02-08 | 1 | -0/+6 |
| | | | | llvm-svn: 46869 | ||||
* | Put back the top-level asm code; all tests pass now. | Anders Carlsson | 2008-02-08 | 1 | -0/+7 |
| | | | | llvm-svn: 46868 | ||||
* | Back out 46855 for now, it causes test failures on Darwin. | Anders Carlsson | 2008-02-08 | 1 | -7/+0 |
| | | | | llvm-svn: 46867 | ||||
* | Handle top-level asm declarations. | Anders Carlsson | 2008-02-07 | 1 | -0/+7 |
| | | | | llvm-svn: 46855 | ||||
* | Implement -fms-extensions. This allows us to fuzzy parse non-standard MS ↵ | Steve Naroff | 2008-02-07 | 1 | -2/+3 |
| | | | | | | constructs used in "windows.h". llvm-svn: 46838 | ||||
* | inform astconsumer about tagdecls as they are defined. | Chris Lattner | 2008-02-06 | 1 | -4/+7 |
| | | | | llvm-svn: 46788 | ||||
* | simplify some code. | Chris Lattner | 2008-02-05 | 1 | -8/+5 |
| | | | | llvm-svn: 46774 |