Lines Matching defs:kind

572   if (clang_isInvalid(Cursor.kind)) {
573 CXString ks = clang_getCursorKindSpelling(Cursor.kind);
595 ks = clang_getCursorKindSpelling(Cursor.kind);
692 if (Cursor.kind == CXCursor_IBOutletCollectionAttr) {
695 CXString S = clang_getTypeKindSpelling(T.kind);
700 if (Cursor.kind == CXCursor_CXXBaseSpecifier) {
753 if (Cursor.kind == CXCursor_InclusionDirective) {
891 const char *name = clang_getTUResourceUsageName(usage.entries[i].kind);
923 if (!Data->Filter || (Cursor.kind == *(enum CXCursorKind *)Data->Filter)) {
946 if (Cursor.kind != CXCursor_FunctionDecl ||
977 if (Ref.kind == CXCursor_NoDeclFound) {
979 } else if (Ref.kind != CXCursor_FunctionDecl) {
1000 if (!Data->Filter || (C.kind == *(enum CXCursorKind *)Data->Filter)) {
1084 CXString S = clang_getTypeKindSpelling(T.kind);
1098 CXString CS = clang_getTypeKindSpelling(CT.kind);
1106 if (RT.kind != CXType_Invalid) {
1107 CXString RS = clang_getTypeKindSpelling(RT.kind);
1120 if (T.kind != CXType_Invalid) {
1121 CXString S = clang_getTypeKindSpelling(T.kind);
1384 prevCursor.kind != CXCursor_InvalidFile) {
2181 static const char *getEntityKindString(CXIdxEntityKind kind) {
2182 switch (kind) {
2211 assert(0 && "Garbage entity kind");
2215 static const char *getEntityTemplateKindString(CXIdxEntityCXXTemplateKind kind) {
2216 switch (kind) {
2223 assert(0 && "Garbage entity kind");
2227 static const char *getEntityLanguageString(CXIdxEntityLanguage kind) {
2228 switch (kind) {
2234 assert(0 && "Garbage language kind");
2256 printf("%s: kind: %s%s", cb, getEntityKindString(info->kind),
2394 if (clang_index_isEntityObjCContainerKind(info->entityInfo->kind)) {
2396 CXIdxObjCContainerKind K = clang_index_getObjCContainerDeclInfo(info)->kind;
2406 printf(" <ObjCContainerInfo>: kind: %s\n", kindName);
2464 switch (info->kind) {
2705 const char *kind = "<unknown>";
2711 case CXToken_Punctuation: kind = "Punctuation"; break;
2712 case CXToken_Keyword: kind = "Keyword"; break;
2713 case CXToken_Identifier: kind = "Identifier"; break;
2714 case CXToken_Literal: kind = "Literal"; break;
2715 case CXToken_Comment: kind = "Comment"; break;
2721 printf("%s: \"%s\" ", kind, clang_getCString(spelling));
2724 if (!clang_isInvalid(cursors[i].kind)) {
2829 static int insufficient_usr(const char *kind, const char *usage) {
2830 fprintf(stderr, "USR for '%s' requires: %s\n", kind, usage);
2862 const char *kind = *I;
2863 unsigned len = strlen(kind);
2866 if (memcmp(kind, "ObjCIvar", 8) == 0) {
2868 return insufficient_usr(kind, "<ivar name> <class USR>");
2883 if (memcmp(kind, "ObjCClass", 9) == 0) {
2885 return insufficient_usr(kind, "<class name>");
2892 if (memcmp(kind, "ObjCMethod", 10) == 0) {
2894 return insufficient_usr(kind, "<method selector> "
2909 if (memcmp(kind, "ObjCCategory", 12) == 0) {
2911 return insufficient_usr(kind, "<class name> <category name>");
2916 if (memcmp(kind, "ObjCProtocol", 12) == 0) {
2918 return insufficient_usr(kind, "<protocol name>");
2923 if (memcmp(kind, "ObjCProperty", 12) == 0) {
2925 return insufficient_usr(kind, "<property name> <class USR>");
2945 fprintf(stderr, "Invalid USR kind: %s\n", *I);