-Keep a reference to the ASTContext inside the TranslationUnitDecl.
commit2a6dca1f553de927e0872e010f6935b6e8a10fa1
authorArgiris Kirtzidis <akyrtzi@gmail.com>
Mon, 29 Jun 2009 17:38:40 +0000 (29 17:38 +0000)
committerArgiris Kirtzidis <akyrtzi@gmail.com>
Mon, 29 Jun 2009 17:38:40 +0000 (29 17:38 +0000)
tree7ac648e965ab60eb5720ac1bee5247c2c5f2fae5
parentb2f77b191e66fcf40f38fef4d84f37413a6b0454
-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