diff options
author | Argyrios Kyrtzidis <akyrtzi@gmail.com> | 2009-06-29 17:38:40 +0000 |
---|---|---|
committer | Argyrios Kyrtzidis <akyrtzi@gmail.com> | 2009-06-29 17:38:40 +0000 |
commit | 3708b3df2e86998dca4c006939014ea1174da834 (patch) | |
tree | 7ac648e965ab60eb5720ac1bee5247c2c5f2fae5 /lib/Sema/SemaType.cpp | |
parent | 512230c49b6099bc6af3beecca2a32ceaea5f2b0 (diff) |
-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
Diffstat (limited to 'lib/Sema/SemaType.cpp')
0 files changed, 0 insertions, 0 deletions