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