Lines Matching refs:kind
187 if (clang_isInvalid(Cursor.kind))
190 if (clang_isDeclaration(Cursor.kind)) {
485 if (clang_isReference(Cursor.kind) &&
486 Cursor.kind != CXCursor_CXXBaseSpecifier) {
495 if (clang_isDeclaration(Cursor.kind)) {
503 if (clang_isStatement(Cursor.kind)) {
510 if (clang_isExpression(Cursor.kind)) {
517 if (clang_isTranslationUnit(Cursor.kind)) {
546 if (Cursor.kind == CXCursor_CXXBaseSpecifier) {
554 if (Cursor.kind == CXCursor_IBOutletCollectionAttr) {
567 if (Cursor.kind == CXCursor_MacroDefinition &&
641 if (Cursor.kind == CXCursor_ObjCInterfaceDecl) {
646 } else if (Cursor.kind == CXCursor_ObjCProtocolDecl) {
1263 llvm_unreachable("Invalid DeclarationName::Kind!");
1404 llvm_unreachable("Invalid TemplateName::Kind!");
1443 llvm_unreachable("Invalid TemplateArgument::Kind!");
1745 #define DEF_JOB(NAME, DATA, KIND)\
1749 VisitorJob(parent, VisitorJob::KIND, d) {} \
1750 static bool classof(const VisitorJob *VJ) { return VJ->getKind() == KIND; }\
2364 assert(D->isArrayRangeDesignator() && "Unknown designator kind");
2895 const DeclarationName::NameKind Kind = NI.getName().getNameKind();
2902 if (Kind != DeclarationName::CXXOperatorName || IsMemberRefExpr)
2909 if (Kind == DeclarationName::CXXOperatorName) {
3717 if (clang_isTranslationUnit(C.kind))
3720 if (clang_isReference(C.kind)) {
3721 switch (C.kind) {
3802 if (clang_isExpression(C.kind)) {
3805 if (C.kind == CXCursor_ObjCStringLiteral ||
3806 C.kind == CXCursor_StringLiteral) {
3825 if (clang_isStatement(C.kind)) {
3833 if (C.kind == CXCursor_MacroExpansion)
3837 if (C.kind == CXCursor_MacroDefinition)
3841 if (C.kind == CXCursor_InclusionDirective)
3844 if (clang_isDeclaration(C.kind))
3847 if (C.kind == CXCursor_AnnotateAttr) {
3852 if (C.kind == CXCursor_AsmLabelAttr) {
3857 if (C.kind == CXCursor_PackedAttr) {
3861 if (C.kind == CXCursor_VisibilityAttr) {
3885 if (clang_isStatement(C.kind)) {
3896 if (C.kind == CXCursor_ObjCMessageExpr) {
3905 if (C.kind == CXCursor_ObjCInstanceMethodDecl ||
3906 C.kind == CXCursor_ObjCClassMethodDecl) {
3915 if (C.kind == CXCursor_ObjCCategoryDecl ||
3916 C.kind == CXCursor_ObjCCategoryImplDecl) {
3927 if (C.kind == CXCursor_ModuleImportDecl) {
3940 if (C.kind == CXCursor_CXXMethod || C.kind == CXCursor_Destructor ||
3941 C.kind == CXCursor_ConversionFunction) {
3972 if (clang_isInvalid(C.kind) || !clang_isDeclaration(C.kind))
4006 if (clang_isInvalid(C.kind) || !clang_isDeclaration(C.kind))
4054 if (!clang_isDeclaration(C.kind))
4137 CXString clang_getCursorKindSpelling(enum CXCursorKind Kind) {
4138 switch (Kind) {
4550 if (cursor.kind == CXCursor_MacroExpansion && Data->PointsAtMacroArgExpansion)
4553 if (clang_isDeclaration(cursor.kind)) {
4568 if (BestCursor->kind == CXCursor_ObjCInterfaceDecl ||
4569 BestCursor->kind == CXCursor_ObjCClassRef)
4606 if (clang_isExpression(cursor.kind) &&
4607 clang_isDeclaration(BestCursor->kind)) {
4623 if (clang_isExpression(BestCursor->kind) &&
4625 cursor.kind == CXCursor_TypeRef) {
4634 if (BestCursor->kind == CXCursor_ObjCSuperClassRef)
4668 KindSpelling = clang_getCursorKindSpelling(Result.kind);
4685 = clang_getCursorKindSpelling(Definition.kind);
4714 // to provide that kind of info.
4715 if (clang_isDeclaration(X.kind))
4717 if (clang_isDeclaration(Y.kind))
4725 if (clang_isExpression(C.kind) || clang_isStatement(C.kind))
4729 std::make_pair(C.kind, C.data[Index]));
4778 return C.kind;
4782 if (clang_isReference(C.kind)) {
4783 switch (C.kind) {
4852 llvm_unreachable("Missed a reference kind");
4856 if (clang_isExpression(C.kind))
4860 if (clang_isStatement(C.kind))
4864 if (C.kind == CXCursor_PreprocessingDirective) {
4869 if (C.kind == CXCursor_MacroExpansion) {
4875 if (C.kind == CXCursor_MacroDefinition) {
4880 if (C.kind == CXCursor_InclusionDirective) {
4886 if (clang_isAttribute(C.kind)) {
4892 if (!clang_isDeclaration(C.kind))
4948 if (clang_isReference(C.kind)) {
4949 switch (C.kind) {
4985 llvm_unreachable("Missed a reference kind");
4989 if (clang_isExpression(C.kind))
4992 if (clang_isStatement(C.kind))
4995 if (clang_isAttribute(C.kind))
4998 if (C.kind == CXCursor_PreprocessingDirective)
5001 if (C.kind == CXCursor_MacroExpansion) {
5007 if (C.kind == CXCursor_MacroDefinition) {
5013 if (C.kind == CXCursor_InclusionDirective) {
5019 if (C.kind == CXCursor_TranslationUnit) {
5027 if (clang_isDeclaration(C.kind)) {
5050 if (clang_isDeclaration(C.kind)) {
5099 if (clang_isInvalid(C.kind))
5103 if (clang_isDeclaration(C.kind)) {
5117 if (clang_isExpression(C.kind)) {
5133 if (clang_isStatement(C.kind)) {
5143 if (C.kind == CXCursor_MacroExpansion) {
5149 if (!clang_isReference(C.kind))
5152 switch (C.kind) {
5206 llvm_unreachable("Unhandled reference cursor kind");
5211 if (clang_isInvalid(C.kind))
5217 if (clang_isReference(C.kind) || clang_isExpression(C.kind)) {
5222 if (C.kind == CXCursor_MacroExpansion)
5225 if (!clang_isDeclaration(C.kind))
5419 if (!clang_isDeclaration(C.kind))
5426 if (!clang_isDeclaration(C.kind))
5449 if (C.kind != CXCursor_OverloadedDeclRef)
5468 if (cursor.kind != CXCursor_OverloadedDeclRef)
5519 switch (C.kind) {
5703 // - Kind-specific fields
5871 if (clang_isInvalid(updateC.kind) || !clang_isInvalid(Cursor.kind))
5948 if (cursor.kind == CXCursor_ObjCPropertyDecl) {
5954 else if (cursor.kind == CXCursor_ObjCInstanceMethodDecl ||
5955 cursor.kind == CXCursor_ObjCClassMethodDecl) {
5971 else if (cursor.kind == CXCursor_CXXMethod) {
5979 else if (cursor.kind == CXCursor_StructDecl ||
5980 cursor.kind == CXCursor_ClassDecl ||
5981 cursor.kind == CXCursor_ClassTemplate ||
5982 cursor.kind == CXCursor_ClassTemplatePartialSpecialization) {
5990 if (cursor.kind == CXCursor_ObjCInstanceMethodDecl &&
5991 parent.kind == CXCursor_ObjCPropertyDecl)
5994 if (clang_isPreprocessing(cursor.kind)) {
6028 if (cursor.kind == CXCursor_MacroExpansion) {
6035 if (Cursors[I].kind != CXCursor_MacroExpansion)
6059 clang_isAttribute(cursor.kind))
6124 if (clang_isAttribute(cursor.kind))
6160 if (cursor.kind != CXCursor_MacroExpansion)
6398 if (Cursors[I].kind == CXCursor_ObjCPropertyDecl) {
6422 if (Cursors[I].kind == CXCursor_ObjCInstanceMethodDecl ||
6423 Cursors[I].kind == CXCursor_ObjCClassMethodDecl) {
6437 if (Cursors[I].kind == CXCursor_CXXFinalAttr ||
6438 Cursors[I].kind == CXCursor_CXXOverrideAttr) {
6495 if (!clang_isDeclaration(cursor.kind))
6518 if (!clang_isDeclaration(cursor.kind))
6608 llvm_unreachable("Unknown availability kind!");
6612 if (clang_isDeclaration(cursor.kind))
6716 if (!clang_isDeclaration(cursor.kind))
6737 if (clang_isDeclaration(cursor.kind))
6794 if (clang_isDeclaration(cursor.kind)) {
6805 if (clang_isStatement(cursor.kind) || clang_isExpression(cursor.kind)) {
6814 if (clang_isDeclaration(cursor.kind)) {
6831 if (cursor.kind != CXCursor_InclusionDirective)
6839 if (C.kind != CXCursor_ObjCPropertyDecl)
6868 if (!clang_isDeclaration(C.kind))
6892 if (!clang_isDeclaration(C.kind))
6905 if (!clang_isDeclaration(C.kind))
6918 if (!clang_isDeclaration(C.kind))
6931 if (!clang_isDeclaration(C.kind))
6946 if (!clang_isDeclaration(C.kind))
6965 if (C.kind == CXCursor_ModuleImportDecl) {
7065 if (!clang_isDeclaration(C.kind))
7075 if (!clang_isDeclaration(C.kind))
7085 if (!clang_isDeclaration(C.kind))
7095 if (!clang_isDeclaration(C.kind))
7105 if (!clang_isDeclaration(C.kind))
7121 if (C.kind != CXCursor_IBOutletCollectionAttr)
7146 const char *clang_getTUResourceUsageName(CXTUResourceUsageKind kind) {
7148 switch (kind) {
7345 clang_getTUResourceUsageName(Usage.entries[I].kind),