Home | History | Annotate | Download | only in Sema

Lines Matching refs:Ty

367 static bool checkRecordTypeForCapability(Sema &S, QualType Ty) {
368 const RecordType *RT = getRecordType(Ty);
400 static bool checkTypedefTypeForCapability(QualType Ty) {
401 const auto *TD = Ty->getAs<TypedefType>();
412 static bool typeHasCapability(Sema &S, QualType Ty) {
413 if (checkTypedefTypeForCapability(Ty))
416 if (checkRecordTypeForCapability(S, Ty))
2121 QualType Ty = V->getType();
2122 if (Ty->isBlockPointerType() || Ty->isFunctionPointerType()) {
2123 const FunctionType *FT = Ty->isFunctionPointerType()
2125 : Ty->getAs<BlockPointerType>()->getPointeeType()->getAs<FunctionType>();
2127 int m = Ty->isFunctionPointerType() ? 0 : 1;
2332 QualType Ty = S.Context.getPointerType(VD->getType());
2335 ParamTy, Ty) != Sema::Compatible) {
2337 << NI.getName() << ParamTy << Ty;
2355 QualType Ty = getFunctionOrMethodParamType(D, Idx);
2357 bool not_nsstring_type = !isNSStringType(Ty, S.Context);
2359 !isCFStringType(Ty, S.Context) &&
2360 (!Ty->isPointerType() ||
2361 !Ty->getAs<PointerType>()->getPointeeType()->isCharType())) {
2368 Ty = getFunctionOrMethodResultType(D);
2369 if (!isNSStringType(Ty, S.Context) &&
2370 !isCFStringType(Ty, S.Context) &&
2371 (!Ty->isPointerType() ||
2372 !Ty->getAs<PointerType>()->getPointeeType()->isCharType())) {
2542 QualType Ty = getFunctionOrMethodParamType(D, ArgIdx);
2545 if (!isCFStringType(Ty, S.Context)) {
2553 if (!isNSStringType(Ty, S.Context)) {
2559 } else if (!Ty->isPointerType() ||
2560 !Ty->getAs<PointerType>()->getPointeeType()->isCharType()) {
2818 QualType Ty;
2820 Ty = VD->getType();
2822 Ty = Context.getTagDeclType(cast<TagDecl>(D));
2823 if (Ty->isDependentType() || Ty->isIncompleteType())
2842 CharUnits NaturalAlign = Context.getTypeAlignInChars(Ty);
2845 << Ty << (unsigned)NaturalAlign.getQuantity();