]> granicus.if.org Git - clang/commit
DeclContext had its "casting machinery" inside the class definition so that if a...
authorArgyrios Kyrtzidis <akyrtzi@gmail.com>
Mon, 16 Feb 2009 14:29:28 +0000 (14:29 +0000)
committerArgyrios Kyrtzidis <akyrtzi@gmail.com>
Mon, 16 Feb 2009 14:29:28 +0000 (14:29 +0000)
commit3d7641e090cf113dec64306a1597d3e4523e2a55
treedc0cf41f3de0fd90c45b8fef0b2e372fdbcc7045
parent1ad4dd78ec53c24ea9e752b216035d7aa666fe49
DeclContext had its "casting machinery" inside the class definition so that if a new declaration context Decl appeared, the necessary changes
would be in one place. Since, now, only DeclNodes.def needs to be modified, move things out-of-line and simplify the DeclContext class.

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