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()
317 ThisDeclInfo->TemplateParameters; in actOnTParamCommandParamNameArg()
521 FullComment *FC = new (Allocator) FullComment(Blocks, ThisDeclInfo); in actOnFullComment()
560 assert(ThisDeclInfo && "should not call this check on a bare comment"); in checkReturnsCommand()
567 assert(!ThisDeclInfo->ReturnType.isNull() && in checkReturnsCommand()
569 if (ThisDeclInfo->ReturnType->isVoidType()) { in checkReturnsCommand()
571 switch (ThisDeclInfo->CommentDecl->getKind()) { in checkReturnsCommand()
573 if (ThisDeclInfo->IsObjCMethod) in checkReturnsCommand()
644 assert(ThisDeclInfo && "should not call this check on a bare comment"); in checkDeprecatedCommand()
646 const Decl *D = ThisDeclInfo->CommentDecl; in checkDeprecatedCommand()
795 if (!ThisDeclInfo) in involvesFunctionType()
797 if (!ThisDeclInfo->IsFilled) in involvesFunctionType()
799 return ThisDeclInfo->involvesFunctionType(); in involvesFunctionType()
803 if (!ThisDeclInfo) in isFunctionDecl()
805 if (!ThisDeclInfo->IsFilled) in isFunctionDecl()
807 return ThisDeclInfo->getKind() == DeclInfo::FunctionKind; in isFunctionDecl()
811 return isFunctionDecl() && ThisDeclInfo->CurrentDecl && in isAnyFunctionDecl()
812 isa<FunctionDecl>(ThisDeclInfo->CurrentDecl); in isAnyFunctionDecl()
816 if (!ThisDeclInfo) in isFunctionOrMethodVariadic()
818 if (!ThisDeclInfo->IsFilled) in isFunctionOrMethodVariadic()
820 return ThisDeclInfo->IsVariadic; in isFunctionOrMethodVariadic()
824 return isFunctionDecl() && ThisDeclInfo->CurrentDecl && in isObjCMethodDecl()
825 isa<ObjCMethodDecl>(ThisDeclInfo->CurrentDecl); in isObjCMethodDecl()
829 if (!ThisDeclInfo) in isFunctionPointerVarDecl()
831 if (!ThisDeclInfo->IsFilled) in isFunctionPointerVarDecl()
833 if (ThisDeclInfo->getKind() == DeclInfo::VariableKind) { in isFunctionPointerVarDecl()
834 if (const VarDecl *VD = dyn_cast_or_null<VarDecl>(ThisDeclInfo->CurrentDecl)) { in isFunctionPointerVarDecl()
843 if (!ThisDeclInfo) in isObjCPropertyDecl()
845 if (!ThisDeclInfo->IsFilled) in isObjCPropertyDecl()
847 return ThisDeclInfo->CurrentDecl->getKind() == Decl::ObjCProperty; in isObjCPropertyDecl()
851 if (!ThisDeclInfo) in isTemplateOrSpecialization()
853 if (!ThisDeclInfo->IsFilled) in isTemplateOrSpecialization()
855 return ThisDeclInfo->getTemplateKind() != DeclInfo::NotTemplate; in isTemplateOrSpecialization()
859 if (!ThisDeclInfo) in isRecordLikeDecl()
861 if (!ThisDeclInfo->IsFilled) in isRecordLikeDecl()
868 if (!ThisDeclInfo) in isUnionDecl()
870 if (!ThisDeclInfo->IsFilled) in isUnionDecl()
873 dyn_cast_or_null<RecordDecl>(ThisDeclInfo->CurrentDecl)) in isUnionDecl()
885 if (!ThisDeclInfo) in isClassOrStructDecl()
887 if (!ThisDeclInfo->IsFilled) in isClassOrStructDecl()
890 if (!ThisDeclInfo->CurrentDecl) in isClassOrStructDecl()
893 return isClassOrStructDeclImpl(ThisDeclInfo->CurrentDecl); in isClassOrStructDecl()
897 if (!ThisDeclInfo) in isClassOrStructOrTagTypedefDecl()
899 if (!ThisDeclInfo->IsFilled) in isClassOrStructOrTagTypedefDecl()
902 if (!ThisDeclInfo->CurrentDecl) in isClassOrStructOrTagTypedefDecl()
905 if (isClassOrStructDeclImpl(ThisDeclInfo->CurrentDecl)) in isClassOrStructOrTagTypedefDecl()
908 if (auto *ThisTypedefDecl = dyn_cast<TypedefDecl>(ThisDeclInfo->CurrentDecl)) { in isClassOrStructOrTagTypedefDecl()
924 if (!ThisDeclInfo) in isClassTemplateDecl()
926 if (!ThisDeclInfo->IsFilled) in isClassTemplateDecl()
928 return ThisDeclInfo->CurrentDecl && in isClassTemplateDecl()
929 (isa<ClassTemplateDecl>(ThisDeclInfo->CurrentDecl)); in isClassTemplateDecl()
933 if (!ThisDeclInfo) in isFunctionTemplateDecl()
935 if (!ThisDeclInfo->IsFilled) in isFunctionTemplateDecl()
937 return ThisDeclInfo->CurrentDecl && in isFunctionTemplateDecl()
938 (isa<FunctionTemplateDecl>(ThisDeclInfo->CurrentDecl)); in isFunctionTemplateDecl()
942 if (!ThisDeclInfo) in isObjCInterfaceDecl()
944 if (!ThisDeclInfo->IsFilled) in isObjCInterfaceDecl()
946 return ThisDeclInfo->CurrentDecl && in isObjCInterfaceDecl()
947 isa<ObjCInterfaceDecl>(ThisDeclInfo->CurrentDecl); in isObjCInterfaceDecl()
951 if (!ThisDeclInfo) in isObjCProtocolDecl()
953 if (!ThisDeclInfo->IsFilled) in isObjCProtocolDecl()
955 return ThisDeclInfo->CurrentDecl && in isObjCProtocolDecl()
956 isa<ObjCProtocolDecl>(ThisDeclInfo->CurrentDecl); in isObjCProtocolDecl()
960 if (!ThisDeclInfo->IsFilled) in getParamVars()
962 return ThisDeclInfo->ParamVars; in getParamVars()
966 ThisDeclInfo->fill(); in inspectThisDecl()