summaryrefslogtreecommitdiffstats
path: root/clang/lib/AST/StmtIterator.cpp
Commit message (Collapse)AuthorAgeFilesLines
* [C++11] Use 'nullptr'. AST edition.Craig Topper2014-05-121-4/+4
| | | | llvm-svn: 208517
* Simplify StmtIterator.Eli Friedman2013-06-271-52/+11
| | | | llvm-svn: 185098
* Support for C++11 (non-template) alias declarations.Richard Smith2011-04-151-1/+1
| | | | llvm-svn: 129567
* Change QualType::getTypePtr() to return a const pointer, then change aJohn McCall2011-01-191-9/+9
| | | | | | thousand other things which were (generally inadvertantly) relying on that. llvm-svn: 123814
* Add StmtIterator support for iterating over both the conditionTed Kremenek2009-12-231-6/+6
| | | | | | | | | | variable initializer and the other expressions in an IfStmt. This change required adding a 'DoDestroy()' method for IfStmt that did not include destroying the initializer (since that is owned by the VarDecl). llvm-svn: 92089
* Increase StmtIterator size by one pointer (separating out the Stmt** from ↵Ted Kremenek2009-12-231-3/+3
| | | | | | | | the union including Decl* and Decl**). This change is setup for adding StmtIterator support for condition variables in IfStmt, WhileStmt, etc. llvm-svn: 92070
* Remove tabs, and whitespace cleanups.Mike Stump2009-09-091-20/+20
| | | | llvm-svn: 81346
* When evaluating a VarDecl as a constant or determining whether it isDouglas Gregor2009-05-261-2/+2
| | | | | | | | an integral constant expression, maintain a cache of the value and the is-an-ICE flag within the VarDecl itself. This eliminates exponential-time behavior of the Fibonacci template metaprogram. llvm-svn: 72428
* Push DeclGroup much farther throughout the compiler. Now the variousChris Lattner2009-03-291-5/+4
| | | | | | | | | | | | | | | | | | | | | | | | | productions (except the already broken ObjC cases like @class X,Y;) in the parser that can produce more than one Decl return a DeclGroup instead of a Decl, etc. This allows elimination of the Decl::NextDeclarator field, and exposes various clients that should look at all decls in a group, but which were only looking at one (such as the dumper, printer, etc). These have been fixed. Still TODO: 1) there are some FIXME's in the code about potentially using DeclGroup for better location info. 2) ParseObjCAtDirectives should return a DeclGroup due to @class etc. 3) I'm not sure what is going on with StmtIterator.cpp, or if it can be radically simplified now. 4) I put a truly horrible hack in ParseTemplate.cpp. I plan to bring up #3/4 on the mailing list, but don't plan to tackle #1/2 in the short term. llvm-svn: 68002
* Fix StmtIterator bug reported in PR 3780 where a VLA within a DeclGroup wouldTed Kremenek2009-03-111-7/+7
| | | | | | | not be consulted for its size expression when operator* was called in the StmtIterator (this resulted in an assertion failure). llvm-svn: 66679
* Remove ScopedDecl, collapsing all of its functionality into Decl, soDouglas Gregor2009-01-201-1/+1
| | | | | | | | | | | | | | | | that every declaration lives inside a DeclContext. Moved several things that don't have names but were ScopedDecls (and, therefore, NamedDecls) to inherit from Decl rather than NamedDecl, including ObjCImplementationDecl and LinkageSpecDecl. Now, we don't store empty DeclarationNames for these things, nor do we try to insert them into DeclContext's lookup structure. The serialization tests are temporarily disabled. We'll re-enable them once we've sorted out the remaining ownership/serialiazation issues between DeclContexts and TranslationUnion, DeclGroups, etc. llvm-svn: 62562
* Introduce basic support for dependent types, type-dependentDouglas Gregor2008-12-051-0/+2
| | | | | | | | | | | | expressions, and value-dependent expressions. This permits us to parse some template definitions. This is not a complete solution; we're missing type- and value-dependent computations for most of the expression types, and we're missing checks for dependent types and type-dependent expressions throughout Sema. llvm-svn: 60615
* A little more tweaking with StmtIterator and SizeOfAlignofExpr. A recent ↵Ted Kremenek2008-10-071-16/+19
| | | | | | commit actually introduced a regression, not fixed a bug. llvm-svn: 57282
* Add StmtIterator support for DeclGroups.Ted Kremenek2008-10-071-38/+73
| | | | llvm-svn: 57271
* More #include cleaningDaniel Dunbar2008-08-111-1/+0
| | | | | | | | | | | - Kill unnecessary #includes in .cpp files. This is an automatic sweep so some things removed are actually used, but happen to be included by a previous header. I tried to get rid of the obvious examples and this was the easiest way to trim the #includes in one fell swoop. - We now return to regularly scheduled development. llvm-svn: 54632
* Fix some strict-aliasing warnings by using Stmt* instead of Expr* in ↵Ted Kremenek2008-05-301-3/+3
| | | | | | VariableArrayType, EnumConstantDecl, and VarDecl. llvm-svn: 51772
* PR2347: Fix crash iterating over VLAs; this started triggering because Eli Friedman2008-05-211-5/+4
| | | | | | we now iterate over the whole AST when we destroy it. llvm-svn: 51363
* Make a major restructuring of the clang tree: introduce a top-levelChris Lattner2008-03-151-0/+118
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
OpenPOWER on IntegriCloud