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()
320 ThisDeclInfo->TemplateParameters; in actOnTParamCommandParamNameArg()
548 FullComment *FC = new (Allocator) FullComment(Blocks, ThisDeclInfo); in actOnFullComment()
587 assert(ThisDeclInfo && "should not call this check on a bare comment"); in checkReturnsCommand()
594 assert(!ThisDeclInfo->ReturnType.isNull() && in checkReturnsCommand()
596 if (ThisDeclInfo->ReturnType->isVoidType()) { in checkReturnsCommand()
598 switch (ThisDeclInfo->CommentDecl->getKind()) { in checkReturnsCommand()
600 if (ThisDeclInfo->IsObjCMethod) in checkReturnsCommand()
671 assert(ThisDeclInfo && "should not call this check on a bare comment"); in checkDeprecatedCommand()
673 const Decl *D = ThisDeclInfo->CommentDecl; in checkDeprecatedCommand()
822 if (!ThisDeclInfo) in isFunctionDecl()
824 if (!ThisDeclInfo->IsFilled) in isFunctionDecl()
826 return ThisDeclInfo->getKind() == DeclInfo::FunctionKind; in isFunctionDecl()
830 return isFunctionDecl() && ThisDeclInfo->CurrentDecl && in isAnyFunctionDecl()
831 isa<FunctionDecl>(ThisDeclInfo->CurrentDecl); in isAnyFunctionDecl()
835 if (!isFunctionDecl() || !ThisDeclInfo->CurrentDecl) in isFunctionOrMethodVariadic()
838 dyn_cast<FunctionDecl>(ThisDeclInfo->CurrentDecl)) in isFunctionOrMethodVariadic()
841 dyn_cast<FunctionTemplateDecl>(ThisDeclInfo->CurrentDecl)) in isFunctionOrMethodVariadic()
844 dyn_cast<ObjCMethodDecl>(ThisDeclInfo->CurrentDecl)) in isFunctionOrMethodVariadic()
847 dyn_cast<TypedefNameDecl>(ThisDeclInfo->CurrentDecl)) { in isFunctionOrMethodVariadic()
858 return isFunctionDecl() && ThisDeclInfo->CurrentDecl && in isObjCMethodDecl()
859 isa<ObjCMethodDecl>(ThisDeclInfo->CurrentDecl); in isObjCMethodDecl()
863 if (!ThisDeclInfo) in isFunctionPointerVarDecl()
865 if (!ThisDeclInfo->IsFilled) in isFunctionPointerVarDecl()
867 if (ThisDeclInfo->getKind() == DeclInfo::VariableKind) { in isFunctionPointerVarDecl()
868 if (const VarDecl *VD = dyn_cast_or_null<VarDecl>(ThisDeclInfo->CurrentDecl)) { in isFunctionPointerVarDecl()
877 if (!ThisDeclInfo) in isFunctionOrBlockPointerVarLikeDecl()
879 if (!ThisDeclInfo->IsFilled) in isFunctionOrBlockPointerVarLikeDecl()
881 if (ThisDeclInfo->getKind() != DeclInfo::VariableKind || in isFunctionOrBlockPointerVarLikeDecl()
882 !ThisDeclInfo->CurrentDecl) in isFunctionOrBlockPointerVarLikeDecl()
885 if (const auto *VD = dyn_cast<DeclaratorDecl>(ThisDeclInfo->CurrentDecl)) in isFunctionOrBlockPointerVarLikeDecl()
888 dyn_cast<ObjCPropertyDecl>(ThisDeclInfo->CurrentDecl)) in isFunctionOrBlockPointerVarLikeDecl()
907 if (!ThisDeclInfo) in isObjCPropertyDecl()
909 if (!ThisDeclInfo->IsFilled) in isObjCPropertyDecl()
911 return ThisDeclInfo->CurrentDecl->getKind() == Decl::ObjCProperty; in isObjCPropertyDecl()
915 if (!ThisDeclInfo) in isTemplateOrSpecialization()
917 if (!ThisDeclInfo->IsFilled) in isTemplateOrSpecialization()
919 return ThisDeclInfo->getTemplateKind() != DeclInfo::NotTemplate; in isTemplateOrSpecialization()
923 if (!ThisDeclInfo) in isRecordLikeDecl()
925 if (!ThisDeclInfo->IsFilled) in isRecordLikeDecl()
932 if (!ThisDeclInfo) in isUnionDecl()
934 if (!ThisDeclInfo->IsFilled) in isUnionDecl()
937 dyn_cast_or_null<RecordDecl>(ThisDeclInfo->CurrentDecl)) in isUnionDecl()
949 if (!ThisDeclInfo) in isClassOrStructDecl()
951 if (!ThisDeclInfo->IsFilled) in isClassOrStructDecl()
954 if (!ThisDeclInfo->CurrentDecl) in isClassOrStructDecl()
957 return isClassOrStructDeclImpl(ThisDeclInfo->CurrentDecl); in isClassOrStructDecl()
961 if (!ThisDeclInfo) in isClassOrStructOrTagTypedefDecl()
963 if (!ThisDeclInfo->IsFilled) in isClassOrStructOrTagTypedefDecl()
966 if (!ThisDeclInfo->CurrentDecl) in isClassOrStructOrTagTypedefDecl()
969 if (isClassOrStructDeclImpl(ThisDeclInfo->CurrentDecl)) in isClassOrStructOrTagTypedefDecl()
972 if (auto *ThisTypedefDecl = dyn_cast<TypedefDecl>(ThisDeclInfo->CurrentDecl)) { in isClassOrStructOrTagTypedefDecl()
988 if (!ThisDeclInfo) in isClassTemplateDecl()
990 if (!ThisDeclInfo->IsFilled) in isClassTemplateDecl()
992 return ThisDeclInfo->CurrentDecl && in isClassTemplateDecl()
993 (isa<ClassTemplateDecl>(ThisDeclInfo->CurrentDecl)); in isClassTemplateDecl()
997 if (!ThisDeclInfo) in isFunctionTemplateDecl()
999 if (!ThisDeclInfo->IsFilled) in isFunctionTemplateDecl()
1001 return ThisDeclInfo->CurrentDecl && in isFunctionTemplateDecl()
1002 (isa<FunctionTemplateDecl>(ThisDeclInfo->CurrentDecl)); in isFunctionTemplateDecl()
1006 if (!ThisDeclInfo) in isObjCInterfaceDecl()
1008 if (!ThisDeclInfo->IsFilled) in isObjCInterfaceDecl()
1010 return ThisDeclInfo->CurrentDecl && in isObjCInterfaceDecl()
1011 isa<ObjCInterfaceDecl>(ThisDeclInfo->CurrentDecl); in isObjCInterfaceDecl()
1015 if (!ThisDeclInfo) in isObjCProtocolDecl()
1017 if (!ThisDeclInfo->IsFilled) in isObjCProtocolDecl()
1019 return ThisDeclInfo->CurrentDecl && in isObjCProtocolDecl()
1020 isa<ObjCProtocolDecl>(ThisDeclInfo->CurrentDecl); in isObjCProtocolDecl()
1024 if (!ThisDeclInfo->IsFilled) in getParamVars()
1026 return ThisDeclInfo->ParamVars; in getParamVars()
1030 ThisDeclInfo->fill(); in inspectThisDecl()