Home
last modified time | relevance | path

Searched refs:CXCursor (Results 1 – 25 of 42) sorted by relevance

12

/external/clang/tools/libclang/
DCXCursor.h49 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,
79 getCursorObjCProtocolRef(CXCursor C);
82 CXCursor MakeCursorObjCClassRef(const ObjCInterfaceDecl *Class,
[all …]
DCXCursor.cpp35 CXCursor cxcursor::MakeCXCursorInvalid(CXCursorKind K, CXTranslationUnit TU) { in MakeCXCursorInvalid()
37 CXCursor C = { K, 0, { nullptr, nullptr, TU } }; in MakeCXCursorInvalid()
69 CXCursor cxcursor::MakeCXCursor(const Attr *A, const Decl *Parent, in MakeCXCursor()
72 CXCursor C = { GetCursorKind(A), 0, { Parent, A, TU } }; in MakeCXCursor()
76 CXCursor cxcursor::MakeCXCursor(const Decl *D, CXTranslationUnit TU, in MakeCXCursor()
96 CXCursor C = { K, SelectorIdIndex, in MakeCXCursor()
101 CXCursor C = { K, 0, { D, (void*)(intptr_t) (FirstInDeclGroup ? 1 : 0), TU }}; in MakeCXCursor()
105 CXCursor cxcursor::MakeCXCursor(const Stmt *S, const Decl *Parent, in MakeCXCursor()
531 CXCursor C = { K, 0, { Parent, S, TU } }; in MakeCXCursor()
651 CXCursor C = { K, 0, { Parent, S, TU } }; in MakeCXCursor()
[all …]
DCursorVisitor.h37 CXCursor parent;
39 VisitorJob(CXCursor C, Kind k, const void *d1, const void *d2 = nullptr,
48 const CXCursor &getParent() const { return parent; } in getParent()
60 typedef bool (*PostChildrenVisitorTy)(CXCursor cursor,
69 CXCursor Parent;
122 CXCursor &Parent;
124 CXCursor OldParent;
127 SetParentRAII(CXCursor &Parent, const Decl *&StmtParent, in SetParentRAII()
128 CXCursor NewParent) in SetParentRAII()
178 bool Visit(CXCursor Cursor, bool CheckedRegionOfInterest = false);
[all …]
DCIndexHigh.cpp31 SmallVector<CXCursor, 8> Overridden; in getTopOverriddenMethods()
39 for (SmallVectorImpl<CXCursor>::iterator in getTopOverriddenMethods()
147 static enum CXChildVisitResult findFileIdRefVisit(CXCursor cursor, in findFileIdRefVisit()
148 CXCursor parent, in findFileIdRefVisit()
150 CXCursor declCursor = clang_getCursorReferenced(cursor); in findFileIdRefVisit()
215 static bool findIdRefsInFile(CXTranslationUnit TU, CXCursor declCursor, in findIdRefsInFile()
265 static enum CXChildVisitResult findFileMacroRefVisit(CXCursor cursor, in findFileMacroRefVisit()
266 CXCursor parent, in findFileMacroRefVisit()
309 static bool findMacroRefsInFile(CXTranslationUnit TU, CXCursor Cursor, in findMacroRefsInFile()
354 enum CXChildVisitResult visit(CXCursor cursor, CXCursor parent) { in visit()
[all …]
DCIndexCXX.cpp25 unsigned clang_isVirtualBase(CXCursor C) { in clang_isVirtualBase()
33 enum CX_CXXAccessSpecifier clang_getCXXAccessSpecifier(CXCursor C) { in clang_getCXXAccessSpecifier()
53 enum CXCursorKind clang_getTemplateCursorKind(CXCursor C) { in clang_getTemplateCursorKind()
85 CXCursor clang_getSpecializedCursorTemplate(CXCursor C) { in clang_getSpecializedCursorTemplate()
DCIndex.cpp165 static SourceRange getRawCursorExtent(CXCursor C);
166 static SourceRange getFullCursorExtent(CXCursor C, SourceManager &SrcMgr);
183 bool CursorVisitor::Visit(CXCursor Cursor, bool CheckedRegionOfInterest) { in Visit()
481 bool CursorVisitor::VisitChildren(CXCursor Cursor) { in VisitChildren()
591 Optional<bool> CursorVisitor::shouldVisitCursor(CXCursor Cursor) { in shouldVisitCursor()
635 CXCursor Cursor = MakeCXCursor(D, TU, RegionOfInterest); in handleDeclForVisitation()
1028 CXCursor Cursor = MakeCXCursor(*I, TU, RegionOfInterest); in VisitObjCContainerDecl()
1753 NAME(const DATA *d, CXCursor parent) : \
1771 const TemplateArgumentLoc *End, CXCursor parent) in ExplicitTemplateArgsVisit()
1786 DeclVisit(const Decl *D, CXCursor parent, bool isFirst) : in DeclVisit()
[all …]
DCXType.cpp148 CXType clang_getCursorType(CXCursor C) { in clang_getCursorType()
238 CXType clang_getTypedefDeclUnderlyingType(CXCursor C) { in clang_getTypedefDeclUnderlyingType()
256 CXType clang_getEnumDeclIntegerType(CXCursor C) { in clang_getEnumDeclIntegerType()
274 long long clang_getEnumConstantDeclValue(CXCursor C) { in clang_getEnumConstantDeclValue()
290 unsigned long long clang_getEnumConstantDeclUnsignedValue(CXCursor C) { in clang_getEnumConstantDeclUnsignedValue()
306 int clang_getFieldDeclBitWidth(CXCursor C) { in clang_getFieldDeclBitWidth()
382 CXCursor clang_getTypeDeclaration(CXType CT) { in clang_getTypeDeclaration()
596 CXType clang_getCursorResultType(CXCursor C) { in clang_getCursorResultType()
792 static long long validateFieldParentType(CXCursor PC, CXType PT){ in validateFieldParentType()
820 CXCursor PC = clang_getTypeDeclaration(PT); in clang_Type_getOffsetOf()
[all …]
DCXIndexDataConsumer.h216 AttrInfo(CXIdxAttrKind Kind, CXCursor C, CXIdxLoc Loc, const Attr *A) { in AttrInfo()
228 IBOutletCollectionInfo(CXCursor C, CXIdxLoc Loc, const Attr *A) : in IBOutletCollectionInfo()
436 bool handleReference(const NamedDecl *D, SourceLocation Loc, CXCursor Cursor,
477 SourceLocation Loc, CXCursor Cursor,
483 SourceLocation Loc, CXCursor Cursor,
504 CXCursor getCursor(const Decl *D) { in getCursor()
508 CXCursor getRefCursor(const NamedDecl *D, SourceLocation Loc);
DCMakeLists.txt13 CXCursor.cpp
26 CXCursor.h
/external/llvm-project/clang/tools/libclang/
DCXCursor.h48 CXCursor getCursor(CXTranslationUnit, SourceLocation);
50 CXCursor MakeCXCursor(const clang::Attr *A, const clang::Decl *Parent,
52 CXCursor MakeCXCursor(const clang::Decl *D, CXTranslationUnit TU,
55 CXCursor MakeCXCursor(const clang::Stmt *S, const clang::Decl *Parent,
58 CXCursor MakeCXCursorInvalid(CXCursorKind K, CXTranslationUnit TU = nullptr);
61 CXCursor MakeCursorObjCSuperClassRef(ObjCInterfaceDecl *Super,
67 getCursorObjCSuperClassRef(CXCursor C);
70 CXCursor MakeCursorObjCProtocolRef(const ObjCProtocolDecl *Proto,
76 getCursorObjCProtocolRef(CXCursor C);
79 CXCursor MakeCursorObjCClassRef(const ObjCInterfaceDecl *Class,
[all …]
DCXCursor.cpp34 CXCursor cxcursor::MakeCXCursorInvalid(CXCursorKind K, CXTranslationUnit TU) { in MakeCXCursorInvalid()
36 CXCursor C = {K, 0, {nullptr, nullptr, TU}}; in MakeCXCursorInvalid()
132 CXCursor cxcursor::MakeCXCursor(const Attr *A, const Decl *Parent, in MakeCXCursor()
135 CXCursor C = {GetCursorKind(A), 0, {Parent, A, TU}}; in MakeCXCursor()
139 CXCursor cxcursor::MakeCXCursor(const Decl *D, CXTranslationUnit TU, in MakeCXCursor()
159 CXCursor C = {K, in MakeCXCursor()
165 CXCursor C = {K, 0, {D, (void *)(intptr_t)(FirstInDeclGroup ? 1 : 0), TU}}; in MakeCXCursor()
169 CXCursor cxcursor::MakeCXCursor(const Stmt *S, const Decl *Parent, in MakeCXCursor()
635 CXCursor C = {K, 0, {Parent, S, TU}}; in MakeCXCursor()
808 CXCursor C = {K, 0, {Parent, S, TU}}; in MakeCXCursor()
[all …]
DCursorVisitor.h45 CXCursor parent;
47 VisitorJob(CXCursor C, Kind k, const void *d1, const void *d2 = nullptr,
57 const CXCursor &getParent() const { return parent; } in getParent()
68 typedef bool (*PostChildrenVisitorTy)(CXCursor cursor,
77 CXCursor Parent;
130 CXCursor &Parent;
132 CXCursor OldParent;
135 SetParentRAII(CXCursor &Parent, const Decl *&StmtParent, CXCursor NewParent) in SetParentRAII()
181 bool Visit(CXCursor Cursor, bool CheckedRegionOfInterest = false);
196 bool VisitChildren(CXCursor Parent);
[all …]
DCIndexHigh.cpp30 SmallVector<CXCursor, 8> Overridden; in getTopOverriddenMethods()
38 for (SmallVectorImpl<CXCursor>::iterator in getTopOverriddenMethods()
144 static enum CXChildVisitResult findFileIdRefVisit(CXCursor cursor, in findFileIdRefVisit()
145 CXCursor parent, in findFileIdRefVisit()
147 CXCursor declCursor = clang_getCursorReferenced(cursor); in findFileIdRefVisit()
212 static bool findIdRefsInFile(CXTranslationUnit TU, CXCursor declCursor, in findIdRefsInFile()
262 static enum CXChildVisitResult findFileMacroRefVisit(CXCursor cursor, in findFileMacroRefVisit()
263 CXCursor parent, in findFileMacroRefVisit()
306 static bool findMacroRefsInFile(CXTranslationUnit TU, CXCursor Cursor, in findMacroRefsInFile()
351 enum CXChildVisitResult visit(CXCursor cursor, CXCursor parent) { in visit()
[all …]
DCIndexCXX.cpp22 unsigned clang_isVirtualBase(CXCursor C) { in clang_isVirtualBase()
30 enum CX_CXXAccessSpecifier clang_getCXXAccessSpecifier(CXCursor C) { in clang_getCXXAccessSpecifier()
50 enum CXCursorKind clang_getTemplateCursorKind(CXCursor C) { in clang_getTemplateCursorKind()
82 CXCursor clang_getSpecializedCursorTemplate(CXCursor C) { in clang_getSpecializedCursorTemplate()
DCIndex.cpp177 static SourceRange getRawCursorExtent(CXCursor C);
178 static SourceRange getFullCursorExtent(CXCursor C, SourceManager &SrcMgr);
194 bool CursorVisitor::Visit(CXCursor Cursor, bool CheckedRegionOfInterest) { in Visit()
492 bool CursorVisitor::VisitChildren(CXCursor Cursor) { in VisitChildren()
602 Optional<bool> CursorVisitor::shouldVisitCursor(CXCursor Cursor) { in shouldVisitCursor()
651 CXCursor Cursor = MakeCXCursor(D, TU, RegionOfInterest); in handleDeclForVisitation()
1069 CXCursor Cursor = MakeCXCursor(*I, TU, RegionOfInterest); in VisitObjCContainerDecl()
1852 NAME(const DATA *d, CXCursor parent) \
1872 const TemplateArgumentLoc *End, CXCursor parent) in ExplicitTemplateArgsVisit()
1887 DeclVisit(const Decl *D, CXCursor parent, bool isFirst) in DeclVisit()
[all …]
DCXType.cpp216 CXType clang_getCursorType(CXCursor C) { in clang_getCursorType()
306 CXType clang_getTypedefDeclUnderlyingType(CXCursor C) { in clang_getTypedefDeclUnderlyingType()
324 CXType clang_getEnumDeclIntegerType(CXCursor C) { in clang_getEnumDeclIntegerType()
342 long long clang_getEnumConstantDeclValue(CXCursor C) { in clang_getEnumConstantDeclValue()
358 unsigned long long clang_getEnumConstantDeclUnsignedValue(CXCursor C) { in clang_getEnumConstantDeclUnsignedValue()
374 int clang_getFieldDeclBitWidth(CXCursor C) { in clang_getFieldDeclBitWidth()
481 CXCursor clang_getTypeDeclaration(CXType CT) { in clang_getTypeDeclaration()
722 CXType clang_getCursorResultType(CXCursor C) { in clang_getCursorResultType()
775 int clang_getCursorExceptionSpecificationType(CXCursor C) { in clang_getCursorExceptionSpecificationType()
986 static long long validateFieldParentType(CXCursor PC, CXType PT){ in validateFieldParentType()
[all …]
DCXIndexDataConsumer.h214 AttrInfo(CXIdxAttrKind Kind, CXCursor C, CXIdxLoc Loc, const Attr *A) { in AttrInfo()
226 IBOutletCollectionInfo(CXCursor C, CXIdxLoc Loc, const Attr *A) : in IBOutletCollectionInfo()
413 bool handleReference(const NamedDecl *D, SourceLocation Loc, CXCursor Cursor,
445 SourceLocation Loc, CXCursor Cursor,
451 SourceLocation Loc, CXCursor Cursor,
472 CXCursor getCursor(const Decl *D) { in getCursor()
476 CXCursor getRefCursor(const NamedDecl *D, SourceLocation Loc);
/external/llvm-project/clang/include/clang-c/
DIndex.h2686 } CXCursor; typedef
2697 CINDEX_LINKAGE CXCursor clang_getNullCursor(void);
2705 CINDEX_LINKAGE CXCursor clang_getTranslationUnitCursor(CXTranslationUnit);
2710 CINDEX_LINKAGE unsigned clang_equalCursors(CXCursor, CXCursor);
2715 CINDEX_LINKAGE int clang_Cursor_isNull(CXCursor cursor);
2720 CINDEX_LINKAGE unsigned clang_hashCursor(CXCursor);
2725 CINDEX_LINKAGE enum CXCursorKind clang_getCursorKind(CXCursor);
2740 CINDEX_LINKAGE unsigned clang_isInvalidDeclaration(CXCursor);
2770 CINDEX_LINKAGE unsigned clang_Cursor_hasAttrs(CXCursor C);
2820 CINDEX_LINKAGE enum CXLinkageKind clang_getCursorLinkage(CXCursor cursor);
[all …]
/external/clang/include/clang-c/
DIndex.h2413 } CXCursor; typedef
2424 CINDEX_LINKAGE CXCursor clang_getNullCursor(void);
2432 CINDEX_LINKAGE CXCursor clang_getTranslationUnitCursor(CXTranslationUnit);
2437 CINDEX_LINKAGE unsigned clang_equalCursors(CXCursor, CXCursor);
2442 CINDEX_LINKAGE int clang_Cursor_isNull(CXCursor cursor);
2447 CINDEX_LINKAGE unsigned clang_hashCursor(CXCursor);
2452 CINDEX_LINKAGE enum CXCursorKind clang_getCursorKind(CXCursor);
2487 CINDEX_LINKAGE unsigned clang_Cursor_hasAttrs(CXCursor C);
2537 CINDEX_LINKAGE enum CXLinkageKind clang_getCursorLinkage(CXCursor cursor);
2563 CINDEX_LINKAGE enum CXVisibilityKind clang_getCursorVisibility(CXCursor cursor);
[all …]
/external/rust/crates/clang-sys/src/
Dlib.rs50 pub type CXCursorVisitor = extern "C" fn(CXCursor, CXCursor, CXClientData) -> CXChildVisitResult;
52 pub type CXFieldVisitor = extern "C" fn(CXCursor, CXClientData) -> CXVisitorResult;
1324 pub struct CXCursor { struct
1330 default!(CXCursor); argument
1336 pub visit: Option<extern "C" fn(*mut c_void, CXCursor, CXSourceRange) -> CXVisitorResult>,
1353 pub cursor: CXCursor,
1363 pub cursor: CXCursor,
1382 pub cursor: CXCursor,
1391 pub cursor: CXCursor,
1415 pub cursor: CXCursor,
[all …]
/external/llvm-project/clang/unittests/libclang/
DLibclangTest.cpp403 CXCursor C = clang_getTranslationUnitCursor(ClangTU); in TEST_F()
406 [](CXCursor cursor, CXCursor parent, in TEST_F()
412 [](CXCursor cursor, CXCursor parent, in TEST_F()
576 CXCursor TUCursor = clang_getTranslationUnitCursor(ClangTU); in SetUp()
747 CXCursor C = clang_getTranslationUnitCursor(ClangTU); in TEST_F()
750 [](CXCursor cursor, CXCursor parent, in TEST_F()
753 const CXCursor Initializer = clang_Cursor_getVarDeclInitializer(cursor); in TEST_F()
773 CXCursor C = clang_getTranslationUnitCursor(ClangTU); in TEST_F()
776 [](CXCursor cursor, CXCursor parent, in TEST_F()
793 CXCursor C = clang_getTranslationUnitCursor(ClangTU); in TEST_F()
[all …]
DTestUtils.h79 CXCursor TuCursor = clang_getTranslationUnitCursor(ClangTU); in Traverse()
87 static CXChildVisitResult TraverseStateless(CXCursor cx, CXCursor parent, in TraverseStateless()
/external/rust/crates/cexpr/tests/
Dclang.rs191 cur: CXCursor, in visit_children_thunk() argument
192 parent: CXCursor, in visit_children_thunk() argument
196 F: FnMut(CXCursor, CXCursor) -> CXChildVisitResult, in visit_children_thunk()
201 unsafe fn visit_children<F>(cursor: CXCursor, mut f: F) in visit_children() argument
203 F: FnMut(CXCursor, CXCursor) -> CXChildVisitResult, in visit_children() argument
/external/llvm-project/clang/tools/c-index-test/
Dc-index-test.c687 static void PrintCursorComments(CXCursor Cursor, in PrintCursorComments()
741 static CXString CursorToText(CXCursor Cursor) { in CursorToText()
763 static void PrintCursor(CXCursor Cursor, const char *CommentSchemaFile) { in PrintCursor()
772 CXCursor Referenced; in PrintCursor()
774 CXCursor SpecializationOf; in PrintCursor()
775 CXCursor *overridden; in PrintCursor()
801 CXCursor Ovl = clang_getOverloadedDecl(Referenced, I); in PrintCursor()
1158 static const char* GetCursorSource(CXCursor Cursor) { in GetCursorSource()
1283 static void PrintCursorExtent(CXCursor C) { in PrintCursorExtent()
1296 enum CXChildVisitResult FilteredPrintingVisitor(CXCursor Cursor, in FilteredPrintingVisitor()
[all …]
/external/clang/tools/c-index-test/
Dc-index-test.c605 static void PrintCursorComments(CXCursor Cursor, in PrintCursorComments()
659 static void PrintCursor(CXCursor Cursor, const char *CommentSchemaFile) { in PrintCursor()
668 CXCursor Referenced; in PrintCursor()
670 CXCursor SpecializationOf; in PrintCursor()
671 CXCursor *overridden; in PrintCursor()
698 CXCursor Ovl = clang_getOverloadedDecl(Referenced, I); in PrintCursor()
963 static const char* GetCursorSource(CXCursor Cursor) { in GetCursorSource()
1081 static void PrintCursorExtent(CXCursor C) { in PrintCursorExtent()
1094 enum CXChildVisitResult FilteredPrintingVisitor(CXCursor Cursor, in FilteredPrintingVisitor()
1095 CXCursor Parent, in FilteredPrintingVisitor()
[all …]

12