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()
548 FullComment *FC = new (Allocator) FullComment(Blocks, ThisDeclInfo); in actOnFullComment()
587 assert(ThisDeclInfo && "should not call this check on a bare comment"); in checkReturnsCommand()
590 if (ThisDeclInfo->ReturnType->isVoidType()) { in checkReturnsCommand()
592 switch (ThisDeclInfo->CommentDecl->getKind()) { in checkReturnsCommand()
594 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()
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()
819 dyn_cast<FunctionDecl>(ThisDeclInfo->CurrentDecl)) in isFunctionOrMethodVariadic()
822 dyn_cast<FunctionTemplateDecl>(ThisDeclInfo->CurrentDecl)) in isFunctionOrMethodVariadic()
825 dyn_cast<ObjCMethodDecl>(ThisDeclInfo->CurrentDecl)) in isFunctionOrMethodVariadic()
831 return isFunctionDecl() && ThisDeclInfo->CurrentDecl && in isObjCMethodDecl()
832 isa<ObjCMethodDecl>(ThisDeclInfo->CurrentDecl); in isObjCMethodDecl()
836 if (!ThisDeclInfo) in isFunctionPointerVarDecl()
838 if (!ThisDeclInfo->IsFilled) in isFunctionPointerVarDecl()
840 if (ThisDeclInfo->getKind() == DeclInfo::VariableKind) { in isFunctionPointerVarDecl()
841 if (const VarDecl *VD = dyn_cast_or_null<VarDecl>(ThisDeclInfo->CurrentDecl)) { in isFunctionPointerVarDecl()
850 if (!ThisDeclInfo) in isObjCPropertyDecl()
852 if (!ThisDeclInfo->IsFilled) in isObjCPropertyDecl()
854 return ThisDeclInfo->CurrentDecl->getKind() == Decl::ObjCProperty; in isObjCPropertyDecl()
858 if (!ThisDeclInfo) in isTemplateOrSpecialization()
860 if (!ThisDeclInfo->IsFilled) in isTemplateOrSpecialization()
862 return ThisDeclInfo->getTemplateKind() != DeclInfo::NotTemplate; in isTemplateOrSpecialization()
866 if (!ThisDeclInfo) in isRecordLikeDecl()
868 if (!ThisDeclInfo->IsFilled) in isRecordLikeDecl()
875 if (!ThisDeclInfo) in isUnionDecl()
877 if (!ThisDeclInfo->IsFilled) in isUnionDecl()
880 dyn_cast_or_null<RecordDecl>(ThisDeclInfo->CurrentDecl)) in isUnionDecl()
886 if (!ThisDeclInfo) in isClassOrStructDecl()
888 if (!ThisDeclInfo->IsFilled) in isClassOrStructDecl()
890 return ThisDeclInfo->CurrentDecl && in isClassOrStructDecl()
891 isa<RecordDecl>(ThisDeclInfo->CurrentDecl) && in isClassOrStructDecl()
896 if (!ThisDeclInfo) in isClassTemplateDecl()
898 if (!ThisDeclInfo->IsFilled) in isClassTemplateDecl()
900 return ThisDeclInfo->CurrentDecl && in isClassTemplateDecl()
901 (isa<ClassTemplateDecl>(ThisDeclInfo->CurrentDecl)); in isClassTemplateDecl()
905 if (!ThisDeclInfo) in isFunctionTemplateDecl()
907 if (!ThisDeclInfo->IsFilled) in isFunctionTemplateDecl()
909 return ThisDeclInfo->CurrentDecl && in isFunctionTemplateDecl()
910 (isa<FunctionTemplateDecl>(ThisDeclInfo->CurrentDecl)); in isFunctionTemplateDecl()
914 if (!ThisDeclInfo) in isObjCInterfaceDecl()
916 if (!ThisDeclInfo->IsFilled) in isObjCInterfaceDecl()
918 return ThisDeclInfo->CurrentDecl && in isObjCInterfaceDecl()
919 isa<ObjCInterfaceDecl>(ThisDeclInfo->CurrentDecl); in isObjCInterfaceDecl()
923 if (!ThisDeclInfo) in isObjCProtocolDecl()
925 if (!ThisDeclInfo->IsFilled) in isObjCProtocolDecl()
927 return ThisDeclInfo->CurrentDecl && in isObjCProtocolDecl()
928 isa<ObjCProtocolDecl>(ThisDeclInfo->CurrentDecl); in isObjCProtocolDecl()
932 if (!ThisDeclInfo->IsFilled) in getParamVars()
934 return ThisDeclInfo->ParamVars; in getParamVars()
938 ThisDeclInfo->fill(); in inspectThisDecl()