diff options
author | Dmitri Gribenko <gribozavr@gmail.com> | 2013-01-23 17:25:27 +0000 |
---|---|---|
committer | Dmitri Gribenko <gribozavr@gmail.com> | 2013-01-23 17:25:27 +0000 |
commit | e22339c44bb28d71a2cc97c840d3da0c4bdb4909 (patch) | |
tree | 5288e46873098b5ae526f3ef53957c4ec5528d2c /tools/libclang/CursorVisitor.h | |
parent | 89cf425f1136f8d24a64ed94450e488b6794dfa4 (diff) | |
download | clang-e22339c44bb28d71a2cc97c840d3da0c4bdb4909.tar.gz |
libclang: change return type of getCursorDecl() to 'const Decl *'
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@173278 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'tools/libclang/CursorVisitor.h')
-rw-r--r-- | tools/libclang/CursorVisitor.h | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/tools/libclang/CursorVisitor.h b/tools/libclang/CursorVisitor.h index fa978b7647..563081e1cd 100644 --- a/tools/libclang/CursorVisitor.h +++ b/tools/libclang/CursorVisitor.h @@ -69,7 +69,7 @@ private: /// \brief The declaration that serves at the parent of any statement or /// expression nodes. - Decl *StmtParent; + const Decl *StmtParent; /// \brief The visitor function. CXCursorVisitor Visitor; @@ -119,11 +119,12 @@ private: class SetParentRAII { CXCursor &Parent; - Decl *&StmtParent; + const Decl *&StmtParent; CXCursor OldParent; public: - SetParentRAII(CXCursor &Parent, Decl *&StmtParent, CXCursor NewParent) + SetParentRAII(CXCursor &Parent, const Decl *&StmtParent, + CXCursor NewParent) : Parent(Parent), StmtParent(StmtParent), OldParent(Parent) { Parent = NewParent; |