summaryrefslogtreecommitdiffstats
path: root/clang/AST/Expr.cpp
Commit message (Collapse)AuthorAgeFilesLines
...
* Bug #:Steve Naroff2007-03-231-2/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | Submitted by: Reviewed by: Type Checking...round 2. This checkin "breaks" parsing carbon.h. I imagine that this will be true for the next week or so. Nevertheless, this round of changes includes the following: - Hacked various Expr classes to pass the appropriate TypeRef. Still have a few more classes to touch. - Implement type checking for ParseArraySubscriptExpr and ParseMemberReferenceExpr. - Added a debug hook to derive the class name for Stmt/Expr nodes. Currently a linear search...could easily optimize if important. - Changed the name of TaggedType->TagType. Now we have TagType and TagDecl (which are easier to remember). - Fixed a bug in StringLiteral conversion I did a couple weeks ago. hadError was not initialized (oops). - changed Sema::Diag to return true. This streamlines the type checking code considerably. - Added many diagnositics. This should be it! llvm-svn: 39361
* Added isa<> support for Statements and Expressions. This involved:Steve Naroff2007-02-261-2/+3
| | | | | | | | | - adding enum constants & instance data to Stmt. - adding classof() functions to all Stmt's. - modifying contructors to pass the appropriate enum as an arg. Also tightened up a couple "void *" declarations/casts for arrays. llvm-svn: 39343
* Batch search/replace snafu (inadvertantly changed ↵Steve Naroff2007-02-211-3/+3
| | | | | | | | | IntegerConstant->StringLiteral). clang still compiled/linked/ran properly...simply a confusing name regression. From now on I'll make sure I run "cvs diff" before committing any changes! llvm-svn: 39342
* pretty print postfix ++/-- nicerChris Lattner2006-11-051-4/+14
| | | | llvm-svn: 39137
* use the StmtNodes.def database to eliminate redundant code.Chris Lattner2006-11-041-25/+0
| | | | llvm-svn: 39118
* Implement the rest of the printer, restoring parity of functionality.Chris Lattner2006-11-041-1/+1
| | | | llvm-svn: 39111
* make visit methods take a reference to a visitor instead of a pointer.Chris Lattner2006-11-041-89/+1
| | | | | | Remove all dump_impl methods from Stmt subclasses llvm-svn: 39108
* remove full locinfo AST nodes for now. They just clutter the implementationChris Lattner2006-11-041-14/+0
| | | | | | and should be implemented with an ASTBuilder subclass anyway. llvm-svn: 39107
* implement visitor chaining.Chris Lattner2006-11-041-0/+1
| | | | llvm-svn: 39105
* add a new StmtVisitor class for traversing Stmt/Expr nodes.Chris Lattner2006-11-041-0/+24
| | | | llvm-svn: 39104
* Handle __extension__ as a unary operator if requested.Chris Lattner2006-10-251-1/+2
| | | | llvm-svn: 39050
* Add new Stmt classChris Lattner2006-10-251-11/+1
| | | | llvm-svn: 39045
* Initial support for semantic analysis and AST building for StringExpr nodes.Chris Lattner2006-10-061-0/+22
| | | | llvm-svn: 38960
* Build AST's for sizeof/alignof with type operands.Chris Lattner2006-08-241-0/+6
| | | | llvm-svn: 38951
* Build CastExpr AST nodesChris Lattner2006-08-241-0/+9
| | | | llvm-svn: 38950
* Build AST's for sizeof/alignof an expr.Chris Lattner2006-08-241-0/+2
| | | | llvm-svn: 38949
* switch MemberExpr to holding a field decl instead of a raw identifier.Chris Lattner2006-08-241-1/+5
| | | | llvm-svn: 38948
* more comments.Chris Lattner2006-08-241-0/+7
| | | | llvm-svn: 38945
* Add initial support for simple-primary exprs, including DeclExprs.Chris Lattner2006-08-241-0/+3
| | | | llvm-svn: 38944
* Add AST nodes for array, call, . and ->.Chris Lattner2006-08-241-8/+52
| | | | llvm-svn: 38943
* Add AST nodes and actions for paren exprs and simple unary ops.Chris Lattner2006-08-231-0/+121
llvm-svn: 38940
OpenPOWER on IntegriCloud