From 8c88b5a981785785a236443ef30e661dfcb719cc Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Mon, 14 Aug 2006 00:13:44 +0000 Subject: [PATCH] add accessor method for parent. llvm-svn: 38907 --- clang/include/clang/Parse/Scope.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/clang/include/clang/Parse/Scope.h b/clang/include/clang/Parse/Scope.h index c0c532943ef6..b83d47808185 100644 --- a/clang/include/clang/Parse/Scope.h +++ b/clang/include/clang/Parse/Scope.h @@ -43,6 +43,10 @@ public: Scope(Scope *parent) : Parent(parent), Depth(Parent ? Parent->Depth+1 : 0) { } + /// getParent - Return the scope that this is nested in. + /// + Scope *getParent() const { return Parent; } + }; } // end namespace clang