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/CIndexUSRs.cpp | |
parent | 89cf425f1136f8d24a64ed94450e488b6794dfa4 (diff) |
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/CIndexUSRs.cpp')
-rw-r--r-- | tools/libclang/CIndexUSRs.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/libclang/CIndexUSRs.cpp b/tools/libclang/CIndexUSRs.cpp index 5942b42ed0..16735f4d52 100644 --- a/tools/libclang/CIndexUSRs.cpp +++ b/tools/libclang/CIndexUSRs.cpp @@ -821,7 +821,7 @@ CXString clang_getCursorUSR(CXCursor C) { const CXCursorKind &K = clang_getCursorKind(C); if (clang_isDeclaration(K)) { - Decl *D = cxcursor::getCursorDecl(C); + const Decl *D = cxcursor::getCursorDecl(C); if (!D) return createCXString(""); |