[cfe-commits] r38907 - /cfe/cfe/trunk/include/clang/Parse/Scope.h
sabre at cs.uiuc.edu
sabre at cs.uiuc.edu
Wed Jul 11 09:25:40 PDT 2007
Author: sabre
Date: Wed Jul 11 11:25:39 2007
New Revision: 38907
URL: http://llvm.org/viewvc/llvm-project?rev=38907&view=rev
Log:
add accessor method for parent.
Modified:
cfe/cfe/trunk/include/clang/Parse/Scope.h
Modified: cfe/cfe/trunk/include/clang/Parse/Scope.h
URL: http://llvm.org/viewvc/llvm-project/cfe/cfe/trunk/include/clang/Parse/Scope.h?rev=38907&r1=38906&r2=38907&view=diff
==============================================================================
--- cfe/cfe/trunk/include/clang/Parse/Scope.h (original)
+++ cfe/cfe/trunk/include/clang/Parse/Scope.h Wed Jul 11 11:25:39 2007
@@ -43,6 +43,10 @@
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
More information about the cfe-commits
mailing list