Home
last modified time | relevance | path

Searched refs:CursorKind (Results 1 – 13 of 13) sorted by relevance

/external/clang/bindings/python/clang/
Dcindex.py477 class CursorKind(object): class
487 if value >= len(CursorKind._kinds):
488 CursorKind._kinds += [None] * (value - len(CursorKind._kinds) + 1)
489 if CursorKind._kinds[value] is not None:
492 CursorKind._kinds[value] = self
493 CursorKind._name_map = None
503 for key,value in CursorKind.__dict__.items():
504 if isinstance(value,CursorKind):
510 if id >= len(CursorKind._kinds) or CursorKind._kinds[id] is None:
512 return CursorKind._kinds[id]
[all …]
/external/clang/bindings/python/tests/cindex/
Dtest_cursor_kind.py1 from clang.cindex import CursorKind
4 assert CursorKind.UNEXPOSED_DECL.name is 'UNEXPOSED_DECL'
7 assert CursorKind.UNEXPOSED_DECL in CursorKind.get_all_kinds()
8 assert CursorKind.TRANSLATION_UNIT in CursorKind.get_all_kinds()
13 assert CursorKind.UNEXPOSED_DECL.is_declaration()
14 assert CursorKind.TYPE_REF.is_reference()
15 assert CursorKind.DECL_REF_EXPR.is_expression()
16 assert CursorKind.UNEXPOSED_STMT.is_statement()
17 assert CursorKind.INVALID_FILE.is_invalid()
19 assert CursorKind.TRANSLATION_UNIT.is_translation_unit()
[all …]
Dtest_cursor.py3 from clang.cindex import CursorKind
48 assert tu_nodes[0].kind == CursorKind.STRUCT_DECL
59 assert s0_nodes[0].kind == CursorKind.FIELD_DECL
62 assert s0_nodes[1].kind == CursorKind.FIELD_DECL
66 assert tu_nodes[1].kind == CursorKind.STRUCT_DECL
71 assert tu_nodes[2].kind == CursorKind.FUNCTION_DECL
159 assert enum.kind == CursorKind.ENUM_DECL
168 assert enum.kind == CursorKind.ENUM_DECL
183 assert enum.kind == CursorKind.ENUM_DECL
190 assert spam.kind == CursorKind.ENUM_CONSTANT_DECL
[all …]
Dtest_tokens.py1 from clang.cindex import CursorKind
22 assert cursor.kind == CursorKind.VAR_DECL
Dtest_translation_unit.py4 from clang.cindex import CursorKind
27 assert c.kind is CursorKind.TRANSLATION_UNIT
Dtest_type.py3 from clang.cindex import CursorKind
33 assert all(x.kind == CursorKind.FIELD_DECL for x in fields)
/external/clang/include/clang/Sema/
DCodeCompleteConsumer.h688 CXCursorKind CursorKind;
733 Kind(RK_Keyword), CursorKind(CXCursor_NotImplemented),
743 Kind(RK_Macro), CursorKind(CXCursor_MacroDefinition),
753 CXCursorKind CursorKind = CXCursor_NotImplemented,
757 Kind(RK_Pattern), CursorKind(CursorKind), Availability(Availability),
/external/clang/lib/Sema/
DCodeCompleteConsumer.cpp569 CursorKind = getCursorKindForDecl(Declaration); in computeCursorKindAndAvailability()
570 if (CursorKind == CXCursor_UnexposedDecl) { in computeCursorKindAndAvailability()
575 CursorKind = CXCursor_ObjCInterfaceDecl; in computeCursorKindAndAvailability()
577 CursorKind = CXCursor_ObjCProtocolDecl; in computeCursorKindAndAvailability()
579 CursorKind = CXCursor_NotImplemented; in computeCursorKindAndAvailability()
DSemaCodeComplete.cpp763 R.CursorKind = getCursorKindForDecl(R.Declaration); in MaybeAddConstructorResults()
/external/clang/tools/libclang/
DCIndexCodeCompletion.cpp543 R.CursorKind = Results[I].CursorKind; in ProcessCodeCompleteResults()
631 R.CursorKind = CXCursor_NotImplemented; in ProcessOverloadCandidates()
/external/clang/lib/Frontend/
DASTUnit.cpp369 CachedResult.Kind = Results[I].CursorKind; in CacheCodeCompletionResults()
469 CachedResult.Kind = Results[I].CursorKind; in CacheCodeCompletionResults()
2241 CXCursorKind CursorKind = C->Kind; in ProcessCodeCompleteResults() local
2275 CursorKind = CXCursor_NotImplemented; in ProcessCodeCompleteResults()
2280 AllResults.push_back(Result(Completion, Priority, CursorKind, in ProcessCodeCompleteResults()
/external/clang/include/clang-c/
DIndex.h4032 enum CXCursorKind CursorKind; member
/external/clang/tools/c-index-test/
Dc-index-test.c1560 CXString ks = clang_getCursorKindSpelling(completion_result->CursorKind); in print_completion_result()