/external/clang/tools/libclang/ |
CXCursor.cpp | 1 //===- CXCursor.cpp - Routines for manipulating CXCursors -----------------===// 12 // CXCursor. 17 #include "CXCursor.h" 33 using namespace cxcursor; 35 CXCursor cxcursor::MakeCXCursorInvalid(CXCursorKind K, CXTranslationUnit TU) { 37 CXCursor C = { K, 0, { nullptr, nullptr, TU } }; 65 CXCursor cxcursor::MakeCXCursor(const Attr *A, const Decl *Parent, 68 CXCursor C = { GetCursorKind(A), 0, { Parent, A, TU } } [all...] |
CIndexUSRs.cpp | 15 #include "CXCursor.h" 35 bool cxcursor::getDeclCursorUSR(const Decl *D, SmallVectorImpl<char> &Buf) { 41 CXString clang_getCursorUSR(CXCursor C) { 45 const Decl *D = cxcursor::getCursorDecl(C); 49 CXTranslationUnit TU = cxcursor::getCursorTU(C); 57 bool Ignore = cxcursor::getDeclCursorUSR(D, buf->Data); 70 CXTranslationUnit TU = cxcursor::getCursorTU(C); 78 bool Ignore = generateUSRForMacro(cxcursor::getCursorMacroDefinition(C),
|
CXType.cpp | 15 #include "CXCursor.h" 140 CXType clang_getCursorType(CXCursor C) { 141 using namespace cxcursor; 143 CXTranslationUnit TU = cxcursor::getCursorTU(C); 149 QualType T = cxcursor::getCursorExpr(C)->getType(); 154 const Decl *D = cxcursor::getCursorDecl(C); 236 CXType clang_getTypedefDeclUnderlyingType(CXCursor C) { 237 using namespace cxcursor; 238 CXTranslationUnit TU = cxcursor::getCursorTU(C); 241 const Decl *D = cxcursor::getCursorDecl(C) [all...] |
CIndexHigh.cpp | 12 #include "CXCursor.h" 20 using namespace cxcursor; 31 SmallVector<CXCursor, 8> Overridden; 32 cxcursor::getOverriddenCursors(cxcursor::MakeCXCursor(D, TU), Overridden); 39 for (SmallVectorImpl<CXCursor>::iterator 41 getTopOverriddenMethods(TU, cxcursor::getCursorDecl(*I), Methods); 147 static enum CXChildVisitResult findFileIdRefVisit(CXCursor cursor, 148 CXCursor parent, 150 CXCursor declCursor = clang_getCursorReferenced(cursor) [all...] |
CIndexCXX.cpp | 15 #include "CXCursor.h" 21 using namespace clang::cxcursor; 25 unsigned clang_isVirtualBase(CXCursor C) { 33 enum CX_CXXAccessSpecifier clang_getCXXAccessSpecifier(CXCursor C) { 53 enum CXCursorKind clang_getTemplateCursorKind(CXCursor C) { 54 using namespace clang::cxcursor; 85 CXCursor clang_getSpecializedCursorTemplate(CXCursor C) {
|
CIndex.cpp | 18 #include "CXCursor.h" 65 using namespace clang::cxcursor; 163 static SourceRange getRawCursorExtent(CXCursor C); 164 static SourceRange getFullCursorExtent(CXCursor C, SourceManager &SrcMgr); 181 bool CursorVisitor::Visit(CXCursor Cursor, bool CheckedRegionOfInterest) { 480 bool CursorVisitor::VisitChildren(CXCursor Cursor) { 552 cast<IBOutletCollectionAttr>(cxcursor::getCursorAttr(Cursor)); 554 return Visit(cxcursor::MakeCursorObjCClassRef( 567 getMacroInfo(cxcursor::getCursorMacroDefinition(Cursor), TU); 570 return Visit(cxcursor::MakeMacroExpansionCursor(MacroDef, BeginLoc, TU)) [all...] |
CXCursor.h | 1 //===- CXCursor.h - Routines for manipulating CXCursors -------------------===// 47 namespace cxcursor { namespace in namespace:clang 49 CXCursor getCursor(CXTranslationUnit, SourceLocation); 51 CXCursor MakeCXCursor(const clang::Attr *A, const clang::Decl *Parent, 53 CXCursor MakeCXCursor(const clang::Decl *D, CXTranslationUnit TU, 56 CXCursor MakeCXCursor(const clang::Stmt *S, const clang::Decl *Parent, 59 CXCursor MakeCXCursorInvalid(CXCursorKind K, CXTranslationUnit TU = nullptr); 62 CXCursor MakeCursorObjCSuperClassRef(ObjCInterfaceDecl *Super, 69 getCursorObjCSuperClassRef(CXCursor C); 72 CXCursor MakeCursorObjCProtocolRef(const ObjCProtocolDecl *Proto [all...] |
CursorVisitor.h | 13 #include "CXCursor.h" 23 namespace cxcursor { namespace in namespace:clang 37 CXCursor parent; 39 VisitorJob(CXCursor C, Kind k, const void *d1, const void *d2 = nullptr, 48 const CXCursor &getParent() const { return parent; } 60 typedef bool (*PostChildrenVisitorTy)(CXCursor cursor, 69 CXCursor Parent; 122 CXCursor &Parent; 124 CXCursor OldParent; 127 SetParentRAII(CXCursor &Parent, const Decl *&StmtParent [all...] |
CXComment.cpp | 17 #include "CXCursor.h" 32 CXComment clang_Cursor_getParsedComment(CXCursor C) { 33 using namespace clang::cxcursor;
|
IndexingContext.h | 10 #include "CXCursor.h" 212 AttrInfo(CXIdxAttrKind Kind, CXCursor C, CXIdxLoc Loc, const Attr *A) { 224 IBOutletCollectionInfo(CXCursor C, CXIdxLoc Loc, const Attr *A) : 431 bool handleReference(const NamedDecl *D, SourceLocation Loc, CXCursor Cursor, 466 SourceLocation Loc, CXCursor Cursor, 471 SourceLocation Loc, CXCursor Cursor, 492 CXCursor getCursor(const Decl *D) { 493 return cxcursor::MakeCXCursor(D, CXTU); 496 CXCursor getRefCursor(const NamedDecl *D, SourceLocation Loc);
|
CIndexCodeCompletion.cpp | 18 #include "CXCursor.h" 592 CXCursor cursor = cxcursor::MakeCXCursor(D, *TU); [all...] |
IndexingContext.cpp | 20 using namespace cxcursor; 71 CXCursor C = MakeCXCursor(A, D, IdxCtx.CXTU); 310 SourceLocation Loc, CXCursor Cursor, 366 SourceLocation Loc, CXCursor Cursor, 661 CXCursor Cursor = E ? MakeCXCursor(E, cast<Decl>(DC), CXTU) 667 CXCursor Cursor, [all...] |