summaryrefslogtreecommitdiffstats
path: root/clang/Sema
Commit message (Collapse)AuthorAgeFilesLines
* Make a major restructuring of the clang tree: introduce a top-levelChris Lattner2008-03-1513-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 Lattner2008-03-153-26/+28
| | | | | | 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-152-13/+16
| | | | llvm-svn: 48396
* start switching decls over to using an allocator controlled by ASTContext. Chris Lattner2008-03-152-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 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
* improve DeclStmt to be able to store SourceRange info correctly.Chris Lattner2008-03-132-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 Lattner2008-03-081-7/+6
| | | | | | which is simpler to use and provide. llvm-svn: 48051
* Add fastcall/stdcall attribute supportNate Begeman2008-03-072-1/+31
| | | | | | 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-053-44/+25
| | | | 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
* Added TODO.Ted Kremenek2008-03-031-0/+3
| | | | llvm-svn: 47843
* Add a bunch of attributes, patch by Nuno Lopes.Chris Lattner2008-03-032-2/+229
| | | | llvm-svn: 47837
* character literals have char type in C++ and int type in C. PatchChris Lattner2008-03-011-2/+4
| | | | | | by Nuno Lopes for PR2089 llvm-svn: 47787
* Fix http://llvm.org/bugs/show_bug.cgi?id=2103.Steve Naroff2008-02-291-5/+15
| | | | llvm-svn: 47775
* Fix http://llvm.org/bugs/show_bug.cgi?id=2106.Steve Naroff2008-02-291-0/+6
| | | | llvm-svn: 47768
* Fix a crash where PI.TypeInfo has not been filled in case of missing ↵Gabor Greif2008-02-291-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 Lattner2008-02-292-1/+14
| | | | 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-272-0/+15
| | | | llvm-svn: 47689
* add parsing, ast building and pretty printing support for C++ throw expressions.Chris Lattner2008-02-262-0/+10
| | | | | | Patch by Mike Stump! llvm-svn: 47582
* 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-253-10/+10
| | | | llvm-svn: 47560
* Move the initialization of SEL/objc_selector from Sema::Sema() to ↵Steve Naroff2008-02-241-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 Begeman2008-02-212-3/+26
| | | | llvm-svn: 47451
* add a fixme.Chris Lattner2008-02-211-1/+3
| | | | llvm-svn: 47421
* Collect and build and process type attributes on pointers. For Chris Lattner2008-02-212-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 Lattner2008-02-211-67/+67
| | | | llvm-svn: 47419
* move type attribute processing into the creatively named ↵Chris Lattner2008-02-212-12/+14
| | | | | | ProcessTypeAttributes method. llvm-svn: 47418
* Correctly handle address space qualifiers in declspecs. This Chris Lattner2008-02-212-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 SemaChris Lattner2008-02-202-28/+29
| | | | llvm-svn: 47415
* 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
* Tabs are the enemyNate Begeman2008-02-201-7/+7
| | | | llvm-svn: 47410
* add some code that will be used to remove processed attrs fromChris Lattner2008-02-201-1/+30
| | | | | | declspec, it is currently nonfunctional though. llvm-svn: 47405
* Change ConvertDeclSpecToType to break out of switch instead of Chris Lattner2008-02-201-44/+46
| | | | | | returning directly. This allows us to factor handling of _Complex. llvm-svn: 47404
* Alternate address spaces work:Chris Lattner2008-02-203-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. ThisNate Begeman2008-02-191-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 breakageNate Begeman2008-02-172-2/+3
| | | | 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-162-5/+37
| | | | llvm-svn: 47197
OpenPOWER on IntegriCloud