]> granicus.if.org Git - clang/commit
-Keep a reference to the ASTContext inside the TranslationUnitDecl.
authorArgyrios Kyrtzidis <akyrtzi@gmail.com>
Mon, 29 Jun 2009 17:38:40 +0000 (17:38 +0000)
committerArgyrios Kyrtzidis <akyrtzi@gmail.com>
Mon, 29 Jun 2009 17:38:40 +0000 (17:38 +0000)
commit3708b3df2e86998dca4c006939014ea1174da834
tree7ac648e965ab60eb5720ac1bee5247c2c5f2fae5
parent512230c49b6099bc6af3beecca2a32ceaea5f2b0
-Keep a reference to the ASTContext inside the TranslationUnitDecl.
-Introduce Decl::getASTContext() which returns the reference from the TranslationUnitDecl that it is contained in.

The general idea is that Decls can point to their own ASTContext so that it is no longer required to "manually" keep track and make sure that you pass the correct ASTContext to Decls' methods, e.g. methods like Decl::getAttrs should eventually not require a ASTContext parameter.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@74434 91177308-0d34-0410-b5e6-96231b3b80d8
include/clang/AST/Decl.h
include/clang/AST/DeclBase.h
lib/AST/Decl.cpp
lib/AST/DeclBase.cpp