summaryrefslogtreecommitdiffstats
path: root/clang/Sema/SemaDecl.cpp
Commit message (Collapse)AuthorAgeFilesLines
* Make a major restructuring of the clang tree: introduce a top-levelChris Lattner2008-03-151-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 Lattner2008-03-151-12/+12
| | | | | | all Create methods. llvm-svn: 48398
* Switch over functiondecl. This makes it obvious that the ASTContextChris Lattner2008-03-151-5/+6
| | | | | | argument to Create should be first, not last. llvm-svn: 48397
* switch the VarDecl allocation model to go through ASTContext.Chris Lattner2008-03-151-11/+13
| | | | llvm-svn: 48396
* start switching decls over to using an allocator controlled by ASTContext. Chris Lattner2008-03-151-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 Begeman2008-03-141-6/+13
| | | | | | | non-default address space, and fix comment. Add a test for this. llvm-svn: 48366
* ISO/IEC TR 18037 Nate Begeman2008-03-141-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 supportNate Begeman2008-03-071-0/+28
| | | | | | Generate CallingConv::Fast when fastcall attribute is present llvm-svn: 48017
* Patch by Nuno Lopes:Ted Kremenek2008-03-071-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 Lattner2008-03-051-19/+9
| | | | llvm-svn: 47954
* Remove the first layer of support for "portability" warnings. This is Chris Lattner2008-03-051-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 Lattner2008-03-041-9/+14
| | | | | | not a bare identifier. llvm-svn: 47893
* Only allow a "noreturn" attribute to be affixed to a FunctionDecl.Ted Kremenek2008-03-031-0/+8
| | | | llvm-svn: 47844
* Add a bunch of attributes, patch by Nuno Lopes.Chris Lattner2008-03-031-2/+222
| | | | llvm-svn: 47837
* Add support for attribute(deprecated), patch by Nuno Lopes!Chris Lattner2008-02-291-1/+10
| | | | llvm-svn: 47753
* Added parsing of attributes for functions.Ted Kremenek2008-02-271-2/+4
| | | | llvm-svn: 47693
* Added support for attribute "noreturn."Ted Kremenek2008-02-271-0/+14
| | | | llvm-svn: 47689
* Fix PR2092 by making sure the sign of the enum value follows the Chris Lattner2008-02-261-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 Lattner2008-02-251-5/+5
| | | | llvm-svn: 47560
* Handle __attribute__((annotate("string")))Nate Begeman2008-02-211-3/+25
| | | | llvm-svn: 47451
* Collect and build and process type attributes on pointers. For Chris Lattner2008-02-211-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 Lattner2008-02-211-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 Lattner2008-02-201-23/+21
| | | | llvm-svn: 47414
* Use getKind() in HandleDeclAttribute instead of decoding the string inline.Chris Lattner2008-02-201-17/+17
| | | | llvm-svn: 47413
* Alternate address spaces work:Chris Lattner2008-02-201-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 breakageNate Begeman2008-02-171-2/+2
| | | | llvm-svn: 47246
* Revert this temporarily, it's breaking objc :/Nate Begeman2008-02-171-2/+2
| | | | llvm-svn: 47245
* Handle parameter attributesNate Begeman2008-02-171-3/+3
| | | | llvm-svn: 47243
* Fix PR2042. One remaining issue: we don't currently diagnoseChris Lattner2008-02-171-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 Carlsson2008-02-161-13/+22
| | | | llvm-svn: 47216
* Fix CheckEndOfDirective to diagnose lines that contain macros that expand to Chris Lattner2008-02-161-2/+1
| | | | | | | zero tokens. This fixes PR2045, thanks to Neil for finding another incredibly subtle corner case :) llvm-svn: 47203
* Fix typoAnders Carlsson2008-02-161-1/+1
| | | | llvm-svn: 47199
* Handle packed attribute correctlyAnders Carlsson2008-02-161-4/+35
| | | | llvm-svn: 47197
* Don't call non-existent method... sorry about the spam; the fix seemed Eli Friedman2008-02-151-1/+1
| | | | | | trivial, but I forgot that method doesn't exist yet. llvm-svn: 47175
* Get rid of unused variable warning.Eli Friedman2008-02-151-1/+1
| | | | llvm-svn: 47174
* Split out incomplete arrays from VariableArrayType into Eli Friedman2008-02-151-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 Friedman2008-02-151-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 insteadAnders Carlsson2008-02-151-5/+6
| | | | llvm-svn: 47155
* Get rid of outdated code that masks type errors. Fixes PR2036.Eli Friedman2008-02-151-10/+0
| | | | llvm-svn: 47154
* Fix unsafe static cast...Steve Naroff2008-02-121-2/+2
| | | | llvm-svn: 46980
* After yesterday's discussion ↵Steve Naroff2008-02-111-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 Naroff2008-02-111-1/+5
| | | | llvm-svn: 46947
* Fix http://llvm.org/bugs/show_bug.cgi?id=1988.Steve Naroff2008-02-111-0/+5
| | | | | | Sema::CheckInitializerListTypes() needs to ignore invalid structures. llvm-svn: 46942
* Improve diagnostic for illegal array initialization.Eli Friedman2008-02-081-0/+6
| | | | llvm-svn: 46869
* Put back the top-level asm code; all tests pass now.Anders Carlsson2008-02-081-0/+7
| | | | llvm-svn: 46868
* Back out 46855 for now, it causes test failures on Darwin.Anders Carlsson2008-02-081-7/+0
| | | | llvm-svn: 46867
* Handle top-level asm declarations.Anders Carlsson2008-02-071-0/+7
| | | | llvm-svn: 46855
* Implement -fms-extensions. This allows us to fuzzy parse non-standard MS ↵Steve Naroff2008-02-071-2/+3
| | | | | | constructs used in "windows.h". llvm-svn: 46838
* inform astconsumer about tagdecls as they are defined.Chris Lattner2008-02-061-4/+7
| | | | llvm-svn: 46788
* simplify some code.Chris Lattner2008-02-051-8/+5
| | | | llvm-svn: 46774
OpenPOWER on IntegriCloud