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()
546 FullComment *FC = new (Allocator) FullComment(Blocks, ThisDeclInfo); in actOnFullComment()
585 assert(ThisDeclInfo && "should not call this check on a bare comment"); in checkReturnsCommand()
588 if (ThisDeclInfo->ReturnType->isVoidType()) { in checkReturnsCommand()
590 switch (ThisDeclInfo->CommentDecl->getKind()) { in checkReturnsCommand()
592 if (ThisDeclInfo->IsObjCMethod) in checkReturnsCommand()
665 assert(ThisDeclInfo && "should not call this check on a bare comment"); in checkDeprecatedCommand()
667 const Decl *D = ThisDeclInfo->CommentDecl; in checkDeprecatedCommand()
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()
817 dyn_cast<FunctionDecl>(ThisDeclInfo->CurrentDecl)) in isFunctionOrMethodVariadic()
820 dyn_cast<FunctionTemplateDecl>(ThisDeclInfo->CurrentDecl)) in isFunctionOrMethodVariadic()
823 dyn_cast<ObjCMethodDecl>(ThisDeclInfo->CurrentDecl)) in isFunctionOrMethodVariadic()
829 return isFunctionDecl() && ThisDeclInfo->CurrentDecl && in isObjCMethodDecl()
830 isa<ObjCMethodDecl>(ThisDeclInfo->CurrentDecl); in isObjCMethodDecl()
834 if (!ThisDeclInfo) in isFunctionPointerVarDecl()
836 if (!ThisDeclInfo->IsFilled) in isFunctionPointerVarDecl()
838 if (ThisDeclInfo->getKind() == DeclInfo::VariableKind) { in isFunctionPointerVarDecl()
839 if (const VarDecl *VD = dyn_cast_or_null<VarDecl>(ThisDeclInfo->CurrentDecl)) { in isFunctionPointerVarDecl()
848 if (!ThisDeclInfo) in isObjCPropertyDecl()
850 if (!ThisDeclInfo->IsFilled) in isObjCPropertyDecl()
852 return ThisDeclInfo->CurrentDecl->getKind() == Decl::ObjCProperty; in isObjCPropertyDecl()
856 if (!ThisDeclInfo) in isTemplateOrSpecialization()
858 if (!ThisDeclInfo->IsFilled) in isTemplateOrSpecialization()
860 return ThisDeclInfo->getTemplateKind() != DeclInfo::NotTemplate; in isTemplateOrSpecialization()
864 if (!ThisDeclInfo) in isRecordLikeDecl()
866 if (!ThisDeclInfo->IsFilled) in isRecordLikeDecl()
873 if (!ThisDeclInfo) in isUnionDecl()
875 if (!ThisDeclInfo->IsFilled) in isUnionDecl()
878 dyn_cast_or_null<RecordDecl>(ThisDeclInfo->CurrentDecl)) in isUnionDecl()
884 if (!ThisDeclInfo) in isClassOrStructDecl()
886 if (!ThisDeclInfo->IsFilled) in isClassOrStructDecl()
888 return ThisDeclInfo->CurrentDecl && in isClassOrStructDecl()
889 isa<RecordDecl>(ThisDeclInfo->CurrentDecl) && in isClassOrStructDecl()
894 if (!ThisDeclInfo) in isClassTemplateDecl()
896 if (!ThisDeclInfo->IsFilled) in isClassTemplateDecl()
898 return ThisDeclInfo->CurrentDecl && in isClassTemplateDecl()
899 (isa<ClassTemplateDecl>(ThisDeclInfo->CurrentDecl)); in isClassTemplateDecl()
903 if (!ThisDeclInfo) in isFunctionTemplateDecl()
905 if (!ThisDeclInfo->IsFilled) in isFunctionTemplateDecl()
907 return ThisDeclInfo->CurrentDecl && in isFunctionTemplateDecl()
908 (isa<FunctionTemplateDecl>(ThisDeclInfo->CurrentDecl)); in isFunctionTemplateDecl()
912 if (!ThisDeclInfo) in isObjCInterfaceDecl()
914 if (!ThisDeclInfo->IsFilled) in isObjCInterfaceDecl()
916 return ThisDeclInfo->CurrentDecl && in isObjCInterfaceDecl()
917 isa<ObjCInterfaceDecl>(ThisDeclInfo->CurrentDecl); in isObjCInterfaceDecl()
921 if (!ThisDeclInfo) in isObjCProtocolDecl()
923 if (!ThisDeclInfo->IsFilled) in isObjCProtocolDecl()
925 return ThisDeclInfo->CurrentDecl && in isObjCProtocolDecl()
926 isa<ObjCProtocolDecl>(ThisDeclInfo->CurrentDecl); in isObjCProtocolDecl()
930 if (!ThisDeclInfo->IsFilled) in getParamVars()
932 return ThisDeclInfo->ParamVars; in getParamVars()
936 ThisDeclInfo->fill(); in inspectThisDecl()