aboutsummaryrefslogtreecommitdiff
path: root/include/clang/AST/DeclBase.h
diff options
context:
space:
mode:
authorSam Bishop <sam@bishop.dhs.org>2008-04-11 18:04:39 +0000
committerSam Bishop <sam@bishop.dhs.org>2008-04-11 18:04:39 +0000
commit1bb19638f2ec0d63ed131b51ca8d9542d1a9afee (patch)
treeb4f0cb9425641903c28c01290051bd5e3e54a51a /include/clang/AST/DeclBase.h
parent45bc03f9202d5649fd41f35b98d34bb34823d0f3 (diff)
Invoke destructors in Decl::Destroy().
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@49547 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/clang/AST/DeclBase.h')
-rw-r--r--include/clang/AST/DeclBase.h8
1 files changed, 3 insertions, 5 deletions
diff --git a/include/clang/AST/DeclBase.h b/include/clang/AST/DeclBase.h
index ec3c753051..058cb9223c 100644
--- a/include/clang/AST/DeclBase.h
+++ b/include/clang/AST/DeclBase.h
@@ -118,12 +118,10 @@ protected:
HasAttrs(false) {
if (Decl::CollectingStats()) addDeclKind(DK);
}
-
-public:
- // TODO: This should probably be made protected once derived classes have
- // destructors.
+
virtual ~Decl();
-
+
+public:
SourceLocation getLocation() const { return Loc; }
void setLocation(SourceLocation L) { Loc = L; }