Lines Matching refs:ThisDeclInfo

32     PP(PP), ThisDeclInfo(nullptr), BriefCommand(nullptr),  in Sema()
40 ThisDeclInfo = new (Allocator) DeclInfo; in setDecl()
41 ThisDeclInfo->CommentDecl = D; in setDecl()
42 ThisDeclInfo->IsFilled = false; in setDecl()
72 if (ThisDeclInfo) { in actOnBlockCommandFinish()
318 ThisDeclInfo->TemplateParameters; in actOnTParamCommandParamNameArg()
546 FullComment *FC = new (Allocator) FullComment(Blocks, ThisDeclInfo); in actOnFullComment()
585 assert(ThisDeclInfo && "should not call this check on a bare comment"); in checkReturnsCommand()
592 if (ThisDeclInfo->ReturnType->isVoidType()) { in checkReturnsCommand()
594 switch (ThisDeclInfo->CommentDecl->getKind()) { in checkReturnsCommand()
596 if (ThisDeclInfo->IsObjCMethod) in checkReturnsCommand()
667 assert(ThisDeclInfo && "should not call this check on a bare comment"); in checkDeprecatedCommand()
669 const Decl *D = ThisDeclInfo->CommentDecl; in checkDeprecatedCommand()
802 if (!ThisDeclInfo) in isFunctionDecl()
804 if (!ThisDeclInfo->IsFilled) in isFunctionDecl()
806 return ThisDeclInfo->getKind() == DeclInfo::FunctionKind; in isFunctionDecl()
810 return isFunctionDecl() && ThisDeclInfo->CurrentDecl && in isAnyFunctionDecl()
811 isa<FunctionDecl>(ThisDeclInfo->CurrentDecl); in isAnyFunctionDecl()
815 if (!isFunctionDecl() || !ThisDeclInfo->CurrentDecl) in isFunctionOrMethodVariadic()
818 dyn_cast<FunctionDecl>(ThisDeclInfo->CurrentDecl)) in isFunctionOrMethodVariadic()
821 dyn_cast<FunctionTemplateDecl>(ThisDeclInfo->CurrentDecl)) in isFunctionOrMethodVariadic()
824 dyn_cast<ObjCMethodDecl>(ThisDeclInfo->CurrentDecl)) in isFunctionOrMethodVariadic()
827 dyn_cast<TypedefNameDecl>(ThisDeclInfo->CurrentDecl)) { in isFunctionOrMethodVariadic()
838 return isFunctionDecl() && ThisDeclInfo->CurrentDecl && in isObjCMethodDecl()
839 isa<ObjCMethodDecl>(ThisDeclInfo->CurrentDecl); in isObjCMethodDecl()
843 if (!ThisDeclInfo) in isFunctionPointerVarDecl()
845 if (!ThisDeclInfo->IsFilled) in isFunctionPointerVarDecl()
847 if (ThisDeclInfo->getKind() == DeclInfo::VariableKind) { in isFunctionPointerVarDecl()
848 if (const VarDecl *VD = dyn_cast_or_null<VarDecl>(ThisDeclInfo->CurrentDecl)) { in isFunctionPointerVarDecl()
857 if (!ThisDeclInfo) in isFunctionOrBlockPointerVarLikeDecl()
859 if (!ThisDeclInfo->IsFilled) in isFunctionOrBlockPointerVarLikeDecl()
861 if (ThisDeclInfo->getKind() != DeclInfo::VariableKind || in isFunctionOrBlockPointerVarLikeDecl()
862 !ThisDeclInfo->CurrentDecl) in isFunctionOrBlockPointerVarLikeDecl()
865 if (const auto *VD = dyn_cast<DeclaratorDecl>(ThisDeclInfo->CurrentDecl)) in isFunctionOrBlockPointerVarLikeDecl()
868 dyn_cast<ObjCPropertyDecl>(ThisDeclInfo->CurrentDecl)) in isFunctionOrBlockPointerVarLikeDecl()
881 if (!ThisDeclInfo) in isObjCPropertyDecl()
883 if (!ThisDeclInfo->IsFilled) in isObjCPropertyDecl()
885 return ThisDeclInfo->CurrentDecl->getKind() == Decl::ObjCProperty; in isObjCPropertyDecl()
889 if (!ThisDeclInfo) in isTemplateOrSpecialization()
891 if (!ThisDeclInfo->IsFilled) in isTemplateOrSpecialization()
893 return ThisDeclInfo->getTemplateKind() != DeclInfo::NotTemplate; in isTemplateOrSpecialization()
897 if (!ThisDeclInfo) in isRecordLikeDecl()
899 if (!ThisDeclInfo->IsFilled) in isRecordLikeDecl()
906 if (!ThisDeclInfo) in isUnionDecl()
908 if (!ThisDeclInfo->IsFilled) in isUnionDecl()
911 dyn_cast_or_null<RecordDecl>(ThisDeclInfo->CurrentDecl)) in isUnionDecl()
917 if (!ThisDeclInfo) in isClassOrStructDecl()
919 if (!ThisDeclInfo->IsFilled) in isClassOrStructDecl()
921 return ThisDeclInfo->CurrentDecl && in isClassOrStructDecl()
922 isa<RecordDecl>(ThisDeclInfo->CurrentDecl) && in isClassOrStructDecl()
927 if (!ThisDeclInfo) in isClassTemplateDecl()
929 if (!ThisDeclInfo->IsFilled) in isClassTemplateDecl()
931 return ThisDeclInfo->CurrentDecl && in isClassTemplateDecl()
932 (isa<ClassTemplateDecl>(ThisDeclInfo->CurrentDecl)); in isClassTemplateDecl()
936 if (!ThisDeclInfo) in isFunctionTemplateDecl()
938 if (!ThisDeclInfo->IsFilled) in isFunctionTemplateDecl()
940 return ThisDeclInfo->CurrentDecl && in isFunctionTemplateDecl()
941 (isa<FunctionTemplateDecl>(ThisDeclInfo->CurrentDecl)); in isFunctionTemplateDecl()
945 if (!ThisDeclInfo) in isObjCInterfaceDecl()
947 if (!ThisDeclInfo->IsFilled) in isObjCInterfaceDecl()
949 return ThisDeclInfo->CurrentDecl && in isObjCInterfaceDecl()
950 isa<ObjCInterfaceDecl>(ThisDeclInfo->CurrentDecl); in isObjCInterfaceDecl()
954 if (!ThisDeclInfo) in isObjCProtocolDecl()
956 if (!ThisDeclInfo->IsFilled) in isObjCProtocolDecl()
958 return ThisDeclInfo->CurrentDecl && in isObjCProtocolDecl()
959 isa<ObjCProtocolDecl>(ThisDeclInfo->CurrentDecl); in isObjCProtocolDecl()
963 if (!ThisDeclInfo->IsFilled) in getParamVars()
965 return ThisDeclInfo->ParamVars; in getParamVars()
969 ThisDeclInfo->fill(); in inspectThisDecl()