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()
315 ThisDeclInfo->TemplateParameters; in actOnTParamCommandParamNameArg()
519 FullComment *FC = new (Allocator) FullComment(Blocks, ThisDeclInfo); in actOnFullComment()
558 assert(ThisDeclInfo && "should not call this check on a bare comment"); in checkReturnsCommand()
565 assert(!ThisDeclInfo->ReturnType.isNull() && in checkReturnsCommand()
567 if (ThisDeclInfo->ReturnType->isVoidType()) { in checkReturnsCommand()
569 switch (ThisDeclInfo->CommentDecl->getKind()) { in checkReturnsCommand()
571 if (ThisDeclInfo->IsObjCMethod) in checkReturnsCommand()
642 assert(ThisDeclInfo && "should not call this check on a bare comment"); in checkDeprecatedCommand()
644 const Decl *D = ThisDeclInfo->CommentDecl; in checkDeprecatedCommand()
793 if (!ThisDeclInfo) in involvesFunctionType()
795 if (!ThisDeclInfo->IsFilled) in involvesFunctionType()
797 return ThisDeclInfo->involvesFunctionType(); in involvesFunctionType()
801 if (!ThisDeclInfo) in isFunctionDecl()
803 if (!ThisDeclInfo->IsFilled) in isFunctionDecl()
805 return ThisDeclInfo->getKind() == DeclInfo::FunctionKind; in isFunctionDecl()
809 return isFunctionDecl() && ThisDeclInfo->CurrentDecl && in isAnyFunctionDecl()
810 isa<FunctionDecl>(ThisDeclInfo->CurrentDecl); in isAnyFunctionDecl()
814 if (!ThisDeclInfo) in isFunctionOrMethodVariadic()
816 if (!ThisDeclInfo->IsFilled) in isFunctionOrMethodVariadic()
818 return ThisDeclInfo->IsVariadic; in isFunctionOrMethodVariadic()
822 return isFunctionDecl() && ThisDeclInfo->CurrentDecl && in isObjCMethodDecl()
823 isa<ObjCMethodDecl>(ThisDeclInfo->CurrentDecl); in isObjCMethodDecl()
827 if (!ThisDeclInfo) in isFunctionPointerVarDecl()
829 if (!ThisDeclInfo->IsFilled) in isFunctionPointerVarDecl()
831 if (ThisDeclInfo->getKind() == DeclInfo::VariableKind) { in isFunctionPointerVarDecl()
832 if (const VarDecl *VD = dyn_cast_or_null<VarDecl>(ThisDeclInfo->CurrentDecl)) { in isFunctionPointerVarDecl()
841 if (!ThisDeclInfo) in isObjCPropertyDecl()
843 if (!ThisDeclInfo->IsFilled) in isObjCPropertyDecl()
845 return ThisDeclInfo->CurrentDecl->getKind() == Decl::ObjCProperty; in isObjCPropertyDecl()
849 if (!ThisDeclInfo) in isTemplateOrSpecialization()
851 if (!ThisDeclInfo->IsFilled) in isTemplateOrSpecialization()
853 return ThisDeclInfo->getTemplateKind() != DeclInfo::NotTemplate; in isTemplateOrSpecialization()
857 if (!ThisDeclInfo) in isRecordLikeDecl()
859 if (!ThisDeclInfo->IsFilled) in isRecordLikeDecl()
866 if (!ThisDeclInfo) in isUnionDecl()
868 if (!ThisDeclInfo->IsFilled) in isUnionDecl()
871 dyn_cast_or_null<RecordDecl>(ThisDeclInfo->CurrentDecl)) in isUnionDecl()
883 if (!ThisDeclInfo) in isClassOrStructDecl()
885 if (!ThisDeclInfo->IsFilled) in isClassOrStructDecl()
888 if (!ThisDeclInfo->CurrentDecl) in isClassOrStructDecl()
891 return isClassOrStructDeclImpl(ThisDeclInfo->CurrentDecl); in isClassOrStructDecl()
895 if (!ThisDeclInfo) in isClassOrStructOrTagTypedefDecl()
897 if (!ThisDeclInfo->IsFilled) in isClassOrStructOrTagTypedefDecl()
900 if (!ThisDeclInfo->CurrentDecl) in isClassOrStructOrTagTypedefDecl()
903 if (isClassOrStructDeclImpl(ThisDeclInfo->CurrentDecl)) in isClassOrStructOrTagTypedefDecl()
906 if (auto *ThisTypedefDecl = dyn_cast<TypedefDecl>(ThisDeclInfo->CurrentDecl)) { in isClassOrStructOrTagTypedefDecl()
922 if (!ThisDeclInfo) in isClassTemplateDecl()
924 if (!ThisDeclInfo->IsFilled) in isClassTemplateDecl()
926 return ThisDeclInfo->CurrentDecl && in isClassTemplateDecl()
927 (isa<ClassTemplateDecl>(ThisDeclInfo->CurrentDecl)); in isClassTemplateDecl()
931 if (!ThisDeclInfo) in isFunctionTemplateDecl()
933 if (!ThisDeclInfo->IsFilled) in isFunctionTemplateDecl()
935 return ThisDeclInfo->CurrentDecl && in isFunctionTemplateDecl()
936 (isa<FunctionTemplateDecl>(ThisDeclInfo->CurrentDecl)); in isFunctionTemplateDecl()
940 if (!ThisDeclInfo) in isObjCInterfaceDecl()
942 if (!ThisDeclInfo->IsFilled) in isObjCInterfaceDecl()
944 return ThisDeclInfo->CurrentDecl && in isObjCInterfaceDecl()
945 isa<ObjCInterfaceDecl>(ThisDeclInfo->CurrentDecl); in isObjCInterfaceDecl()
949 if (!ThisDeclInfo) in isObjCProtocolDecl()
951 if (!ThisDeclInfo->IsFilled) in isObjCProtocolDecl()
953 return ThisDeclInfo->CurrentDecl && in isObjCProtocolDecl()
954 isa<ObjCProtocolDecl>(ThisDeclInfo->CurrentDecl); in isObjCProtocolDecl()
958 if (!ThisDeclInfo->IsFilled) in getParamVars()
960 return ThisDeclInfo->ParamVars; in getParamVars()
964 ThisDeclInfo->fill(); in inspectThisDecl()