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()
314 ThisDeclInfo->TemplateParameters; in actOnTParamCommandParamNameArg()
520 FullComment *FC = new (Allocator) FullComment(Blocks, ThisDeclInfo); in actOnFullComment()
559 assert(ThisDeclInfo && "should not call this check on a bare comment"); in checkReturnsCommand()
566 assert(!ThisDeclInfo->ReturnType.isNull() && in checkReturnsCommand()
568 if (ThisDeclInfo->ReturnType->isVoidType()) { in checkReturnsCommand()
570 switch (ThisDeclInfo->CommentDecl->getKind()) { in checkReturnsCommand()
572 if (ThisDeclInfo->IsObjCMethod) in checkReturnsCommand()
643 assert(ThisDeclInfo && "should not call this check on a bare comment"); in checkDeprecatedCommand()
645 const Decl *D = ThisDeclInfo->CommentDecl; in checkDeprecatedCommand()
794 if (!ThisDeclInfo) in involvesFunctionType()
796 if (!ThisDeclInfo->IsFilled) in involvesFunctionType()
798 return ThisDeclInfo->involvesFunctionType(); in involvesFunctionType()
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 (!ThisDeclInfo) in isFunctionOrMethodVariadic()
817 if (!ThisDeclInfo->IsFilled) in isFunctionOrMethodVariadic()
819 return ThisDeclInfo->IsVariadic; in isFunctionOrMethodVariadic()
823 return isFunctionDecl() && ThisDeclInfo->CurrentDecl && in isObjCMethodDecl()
824 isa<ObjCMethodDecl>(ThisDeclInfo->CurrentDecl); in isObjCMethodDecl()
828 if (!ThisDeclInfo) in isFunctionPointerVarDecl()
830 if (!ThisDeclInfo->IsFilled) in isFunctionPointerVarDecl()
832 if (ThisDeclInfo->getKind() == DeclInfo::VariableKind) { in isFunctionPointerVarDecl()
833 if (const VarDecl *VD = dyn_cast_or_null<VarDecl>(ThisDeclInfo->CurrentDecl)) { in isFunctionPointerVarDecl()
842 if (!ThisDeclInfo) in isObjCPropertyDecl()
844 if (!ThisDeclInfo->IsFilled) in isObjCPropertyDecl()
846 return ThisDeclInfo->CurrentDecl->getKind() == Decl::ObjCProperty; in isObjCPropertyDecl()
850 if (!ThisDeclInfo) in isTemplateOrSpecialization()
852 if (!ThisDeclInfo->IsFilled) in isTemplateOrSpecialization()
854 return ThisDeclInfo->getTemplateKind() != DeclInfo::NotTemplate; in isTemplateOrSpecialization()
858 if (!ThisDeclInfo) in isRecordLikeDecl()
860 if (!ThisDeclInfo->IsFilled) in isRecordLikeDecl()
867 if (!ThisDeclInfo) in isUnionDecl()
869 if (!ThisDeclInfo->IsFilled) in isUnionDecl()
872 dyn_cast_or_null<RecordDecl>(ThisDeclInfo->CurrentDecl)) in isUnionDecl()
884 if (!ThisDeclInfo) in isClassOrStructDecl()
886 if (!ThisDeclInfo->IsFilled) in isClassOrStructDecl()
889 if (!ThisDeclInfo->CurrentDecl) in isClassOrStructDecl()
892 return isClassOrStructDeclImpl(ThisDeclInfo->CurrentDecl); in isClassOrStructDecl()
896 if (!ThisDeclInfo) in isClassOrStructOrTagTypedefDecl()
898 if (!ThisDeclInfo->IsFilled) in isClassOrStructOrTagTypedefDecl()
901 if (!ThisDeclInfo->CurrentDecl) in isClassOrStructOrTagTypedefDecl()
904 if (isClassOrStructDeclImpl(ThisDeclInfo->CurrentDecl)) in isClassOrStructOrTagTypedefDecl()
907 if (auto *ThisTypedefDecl = dyn_cast<TypedefDecl>(ThisDeclInfo->CurrentDecl)) { in isClassOrStructOrTagTypedefDecl()
923 if (!ThisDeclInfo) in isClassTemplateDecl()
925 if (!ThisDeclInfo->IsFilled) in isClassTemplateDecl()
927 return ThisDeclInfo->CurrentDecl && in isClassTemplateDecl()
928 (isa<ClassTemplateDecl>(ThisDeclInfo->CurrentDecl)); in isClassTemplateDecl()
932 if (!ThisDeclInfo) in isFunctionTemplateDecl()
934 if (!ThisDeclInfo->IsFilled) in isFunctionTemplateDecl()
936 return ThisDeclInfo->CurrentDecl && in isFunctionTemplateDecl()
937 (isa<FunctionTemplateDecl>(ThisDeclInfo->CurrentDecl)); in isFunctionTemplateDecl()
941 if (!ThisDeclInfo) in isObjCInterfaceDecl()
943 if (!ThisDeclInfo->IsFilled) in isObjCInterfaceDecl()
945 return ThisDeclInfo->CurrentDecl && in isObjCInterfaceDecl()
946 isa<ObjCInterfaceDecl>(ThisDeclInfo->CurrentDecl); in isObjCInterfaceDecl()
950 if (!ThisDeclInfo) in isObjCProtocolDecl()
952 if (!ThisDeclInfo->IsFilled) in isObjCProtocolDecl()
954 return ThisDeclInfo->CurrentDecl && in isObjCProtocolDecl()
955 isa<ObjCProtocolDecl>(ThisDeclInfo->CurrentDecl); in isObjCProtocolDecl()
959 if (!ThisDeclInfo->IsFilled) in getParamVars()
961 return ThisDeclInfo->ParamVars; in getParamVars()
965 ThisDeclInfo->fill(); in inspectThisDecl()