diff options
author | Dmitri Gribenko <gribozavr@gmail.com> | 2013-01-26 18:08:08 +0000 |
---|---|---|
committer | Dmitri Gribenko <gribozavr@gmail.com> | 2013-01-26 18:08:08 +0000 |
commit | e4baea61b5208e6a2be60c5ad93a5d396aa6d807 (patch) | |
tree | a9eedfce2ab14081104ad312c3ee88c0f58b7c12 /clang/tools/libclang/CIndex.cpp | |
parent | 5a7ae8dc188323b50a69fa8493217cbc9feeb881 (diff) | |
download | bcm5719-llvm-e4baea61b5208e6a2be60c5ad93a5d396aa6d807.tar.gz bcm5719-llvm-e4baea61b5208e6a2be60c5ad93a5d396aa6d807.zip |
libclang: change getCursorAttr() to return 'const Attr *'
llvm-svn: 173583
Diffstat (limited to 'clang/tools/libclang/CIndex.cpp')
-rw-r--r-- | clang/tools/libclang/CIndex.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/clang/tools/libclang/CIndex.cpp b/clang/tools/libclang/CIndex.cpp index 62b1a042caf..0d1e3f721a8 100644 --- a/clang/tools/libclang/CIndex.cpp +++ b/clang/tools/libclang/CIndex.cpp @@ -522,7 +522,7 @@ bool CursorVisitor::VisitChildren(CXCursor Cursor) { } if (Cursor.kind == CXCursor_IBOutletCollectionAttr) { - IBOutletCollectionAttr *A = + const IBOutletCollectionAttr *A = cast<IBOutletCollectionAttr>(cxcursor::getCursorAttr(Cursor)); if (const ObjCInterfaceType *InterT = A->getInterface()->getAs<ObjCInterfaceType>()) return Visit(cxcursor::MakeCursorObjCClassRef(InterT->getInterface(), @@ -3258,12 +3258,12 @@ CXString clang_getCursorSpelling(CXCursor C) { return getDeclSpelling(getCursorDecl(C)); if (C.kind == CXCursor_AnnotateAttr) { - AnnotateAttr *AA = cast<AnnotateAttr>(cxcursor::getCursorAttr(C)); + const AnnotateAttr *AA = cast<AnnotateAttr>(cxcursor::getCursorAttr(C)); return createCXString(AA->getAnnotation()); } if (C.kind == CXCursor_AsmLabelAttr) { - AsmLabelAttr *AA = cast<AsmLabelAttr>(cxcursor::getCursorAttr(C)); + const AsmLabelAttr *AA = cast<AsmLabelAttr>(cxcursor::getCursorAttr(C)); return createCXString(AA->getLabel()); } @@ -6012,7 +6012,7 @@ CXType clang_getIBOutletCollectionType(CXCursor C) { if (C.kind != CXCursor_IBOutletCollectionAttr) return cxtype::MakeCXType(QualType(), cxcursor::getCursorTU(C)); - IBOutletCollectionAttr *A = + const IBOutletCollectionAttr *A = cast<IBOutletCollectionAttr>(cxcursor::getCursorAttr(C)); return cxtype::MakeCXType(A->getInterface(), cxcursor::getCursorTU(C)); |