]> granicus.if.org Git - clang/commit
Addition of TranslationUnitDecl to the AST:
authorArgyrios Kyrtzidis <akyrtzi@gmail.com>
Thu, 17 Apr 2008 14:40:12 +0000 (14:40 +0000)
committerArgyrios Kyrtzidis <akyrtzi@gmail.com>
Thu, 17 Apr 2008 14:40:12 +0000 (14:40 +0000)
commitef177820100ab583b08fd3056e2a5a52ee4b1629
tree14282d5187bbc1083390174abf161b6cd5155bd2
parent5da6b2592fbf69708a7863b41d8bd76440d0f41b
Addition of TranslationUnitDecl to the AST:

-Added TranslationUnitDecl class to serve as top declaration context
-ASTContext gets a TUDecl member and a getTranslationUnitDecl() function
-All ScopedDecls get the TUDecl as DeclContext when declared at global scope

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@49855 91177308-0d34-0410-b5e6-96231b3b80d8
Driver/RewriteObjC.cpp
include/clang/AST/ASTContext.h
include/clang/AST/Decl.h
include/clang/AST/DeclBase.h
lib/AST/ASTContext.cpp
lib/AST/Decl.cpp
lib/AST/DeclSerialization.cpp
lib/Sema/Sema.cpp
lib/Sema/SemaDecl.cpp