summaryrefslogtreecommitdiffstats
path: root/clang/AST
Commit message (Collapse)AuthorAgeFilesLines
...
* Implement test/Sema/init.c by treating functions as constants.Chris Lattner2007-11-011-2/+5
| | | | llvm-svn: 43599
* Implemented more of serialization/deserialization for ASTContext. We nowTed Kremenek2007-10-311-17/+93
| | | | | | (hypothetically) read in/write out most of the types. Bugs likely exist. llvm-svn: 43584
* Adjusted QualType deserialization to reflect updated deserialization API.Ted Kremenek2007-10-312-5/+5
| | | | | | We now serialize ivar references inside of ASTContext. llvm-svn: 43571
* Preliminary support for serializing statements.Ted Kremenek2007-10-311-0/+97
| | | | llvm-svn: 43566
* Implemented serialization of Variable Array Types (VLAs).Ted Kremenek2007-10-312-5/+23
| | | | llvm-svn: 43561
* Renamed ivar "ArrayTypes" in ASTContext to "ComplexArrayTypes".Ted Kremenek2007-10-311-3/+48
| | | | | | Added skeleton code for serialization of ASTContext. llvm-svn: 43558
* Encode Class, SEL and Objective-C objects.Anders Carlsson2007-10-311-1/+24
| | | | llvm-svn: 43540
* __real__ and __imag__ can be lvalues. Add support to ast and codegen for them.Chris Lattner2007-10-301-2/+7
| | | | llvm-svn: 43525
* Refactored CFG construction code that processes DeclStmts to use StmtIterator.Ted Kremenek2007-10-301-23/+21
| | | | | | | Now CFG construction transparently supports Variable Length Array declarations with expressions for their sizes, and typedefs that include VLAs. llvm-svn: 43520
* minor code cleanupChris Lattner2007-10-301-4/+2
| | | | llvm-svn: 43512
* Added type encoding for 'id' type.Fariborz Jahanian2007-10-301-0/+4
| | | | llvm-svn: 43504
* Added vector to ASTContext to store references to "complete" VLA typesTed Kremenek2007-10-301-3/+3
| | | | | | | (VLAs with a specified size expresssion). This vector owns the references to these type objects. llvm-svn: 43502
* - Add location info to category/protocol AST'sSteve Naroff2007-10-301-2/+4
| | | | | | - Rewrite categories. llvm-svn: 43501
* More support for rewriting ObjC intefaces. Still some edge cases to handle...Steve Naroff2007-10-301-3/+3
| | | | llvm-svn: 43493
* Handle function types.Anders Carlsson2007-10-301-0/+2
| | | | llvm-svn: 43485
* VariableArrayTypes (VLAs) without a size expression are now uniquedTed Kremenek2007-10-291-5/+43
| | | | | | and inserted into a FoldingSet owned by ASTContext. llvm-svn: 43482
* Encoding for objectiive-c methods.Fariborz Jahanian2007-10-292-0/+67
| | | | llvm-svn: 43481
* This commit contains lot's of small tweaks to how we pass around and store ↵Steve Naroff2007-10-291-26/+34
| | | | | | SourceLocation's for interfaces/protocols/categories/implementations. llvm-svn: 43475
* Added support for StmtIterators to iterate over the size expressionsTed Kremenek2007-10-291-4/+12
| | | | | | | | | | | | | of VariableArrayTypes that appear in TypedefDecls. for example: typedef int T[x][x]; the StmtIterator will iterate over "x" and "x" as subexpressions of the DeclStmt for T. llvm-svn: 43474
* Fixed deadcode bug where check for NULL decl occured within a blockTed Kremenek2007-10-291-5/+6
| | | | | | | where the decl would always be non-NULL. Moved the check to after the block to properly tidy up the iterator's state. llvm-svn: 43473
* Modified StmtIterator to support iteration over the size expressionsTed Kremenek2007-10-291-44/+66
| | | | | | | | | of VariableTypeArray types that appear in DeclStmts. Removed operator-- from StmtIterator. operator-- added undesired complexity, and we have no consumers of it. llvm-svn: 43471
* Modified CFG pretty-printing to directly use the (reverse) bodyTed Kremenek2007-10-291-1/+1
| | | | | | iterator of a CompountStmt instead of relying on StmtIterators. llvm-svn: 43469
* Renamed internal variables of StmtIteratorBase to make the codeTed Kremenek2007-10-291-10/+10
| | | | | | | | | slightly more succinct. Introduced VariableArrayType* within StmtIteratorBase to (soon) support iteration over the size expressions of variable length arrays. llvm-svn: 43455
* Address Chris's comments.Anders Carlsson2007-10-291-10/+16
| | | | llvm-svn: 43445
* Fix logic error.Anders Carlsson2007-10-291-1/+1
| | | | llvm-svn: 43443
* Add (partial) support for @encode.Anders Carlsson2007-10-291-0/+100
| | | | llvm-svn: 43439
* Add prototype info for __builtin_memcpy, reducing #diagnostics from 37 to 34 on Chris Lattner2007-10-291-0/+4
| | | | | | PR1750 llvm-svn: 43435
* Implement *skeletal* support for representing GNU inline asm stmts in the AST,Chris Lattner2007-10-292-0/+9
| | | | | | | resolving a crash on a .i file in PR1750. We now generate 49 errors on the .i file in that bug. llvm-svn: 43433
* Fix a major bug in the Type::getAs*Type methods: they didn't strip offChris Lattner2007-10-291-51/+94
| | | | | | | typeof(type) and typeof(expr) correctly. Now provide a single point of contact (Type::getDesugaredType) for doing the shallow stripping we need. llvm-svn: 43432
* Add BuiltinType::Char_S to Type::isCharTypeAnders Carlsson2007-10-291-1/+2
| | | | llvm-svn: 43428
* Implemented serialization for TypedefType.Ted Kremenek2007-10-281-0/+12
| | | | llvm-svn: 43423
* Implemented serialization of FunctionTypeProto.Ted Kremenek2007-10-281-0/+31
| | | | llvm-svn: 43419
* Implemented serialization of FunctionTypeNoProto.Ted Kremenek2007-10-271-0/+19
| | | | llvm-svn: 43418
* Implemented serialization for VectorType.Ted Kremenek2007-10-271-0/+14
| | | | llvm-svn: 43417
* More work on type serialization: added support for serializing BuiltinTypes.Ted Kremenek2007-10-261-1/+23
| | | | llvm-svn: 43414
* Completed serialization of ConstantArrayTypes (now that APInt serialization ↵Ted Kremenek2007-10-261-13/+5
| | | | | | is in place). llvm-svn: 43407
* Added skeleton implementation of serialization for types (not complete).Ted Kremenek2007-10-261-0/+127
| | | | llvm-svn: 43397
* Disambiguated variable name to comply with VC++'s archaic variable scoping ↵Hartmut Kaiser2007-10-251-2/+2
| | | | | | rules. llvm-svn: 43371
* Modified StmtIterator to now include visiting the initialization expression ↵Ted Kremenek2007-10-251-8/+21
| | | | | | for EnumConstantDecls. llvm-svn: 43366
* Added skeleton for Decl serialization.Ted Kremenek2007-10-251-0/+62
| | | | llvm-svn: 43361
* Add a new ChooseExpr::isConditionTrue method to unifyChris Lattner2007-10-251-0/+8
| | | | | | some code. llvm-svn: 43322
* Modified operator* for StmtIterator to return Stmt*& instead of Stmt*.Ted Kremenek2007-10-241-2/+2
| | | | | | This permits in-place replacement of the original AST statements. llvm-svn: 43295
* Fixed DeclStmt::child_begin() to actually create an iterator thatTed Kremenek2007-10-184-40/+67
| | | | | | | | | | | | | visits its decls, rather than just creating an "end()" iterator. Fixed child_end() for statements and expressions to use child_iterator() to create the end() iterator, rather than just returning NULL. Fixed bug in StmtIterator where we did not correctly detect if we had marched off the end of the ScopedDecls. llvm-svn: 43156
* remove dead #includeChris Lattner2007-10-181-1/+0
| | | | llvm-svn: 43149
* Refactored StmtIterator into classes StmtIteratorBase (non-templated)Ted Kremenek2007-10-181-19/+33
| | | | | | | | | | and StmtIteratorImpl (templated), which StmtIterator and ConstStmtIterator now succintly subclass. Implemented iteration over the initializers in DeclStmts. This is not thoroughly tested, so there may be bugs. llvm-svn: 43138
* Replaced virtual method call to child_begin() in child_end() byTed Kremenek2007-10-181-1/+1
| | | | | | directly inlining its logic. llvm-svn: 43137
* Fixed broken build.Ted Kremenek2007-10-181-2/+25
| | | | llvm-svn: 43132
* remove extraneous space in @selector()Chris Lattner2007-10-181-9/+3
| | | | llvm-svn: 43110
* Implemented 90% functionality of new child_iterator for Stmt objectsTed Kremenek2007-10-183-2/+29
| | | | | | | | | | | | | | | that will (soon) allow iteration over the initializers in declarations. This new iterator mechanism is implemented by the classes StmtIterator and ConstStmtIterator. Patched a few files to use "operator++" instead of "operator+" on child_iterators. Friendship added in VarDecl to StmtIterator to allow returning a reference to the initializer within the VarDecl. We may not wish this as a permanent solution. llvm-svn: 43105
* Make control flow in Expr::isConstantExpr more simple andChris Lattner2007-10-181-20/+12
| | | | | | local, making the code easier to read. llvm-svn: 43104
OpenPOWER on IntegriCloud