Home
last modified time | relevance | path

Searched refs:CharTy (Results 1 – 25 of 35) sorted by relevance

12

/external/clang/test/Sema/
Dwarn-char-subscripts.c45 typedef char CharTy; typedef
48 CharTy subscript = 0; in t8()
/external/clang/lib/StaticAnalyzer/Checkers/
DCheckSecuritySyntaxOnly.cpp323 if (PT->getPointeeType().getUnqualifiedType() != BR.getContext().CharTy) in checkCall_gets()
363 if (PT->getPointeeType().getUnqualifiedType() != BR.getContext().CharTy) in checkCall_getpw()
404 if (PT->getPointeeType().getUnqualifiedType() != BR.getContext().CharTy) in checkCall_mktemp()
576 if (PT->getPointeeType().getUnqualifiedType() != BR.getContext().CharTy) in checkCall_strCommon()
DCStringChecker.cpp292 assert(ER->getValueType() == C.getASTContext().CharTy && in CheckLocation()
366 QualType PtrTy = Ctx.getPointerType(Ctx.CharTy); in CheckBufferAccess()
504 QualType CharPtrTy = Ctx.getPointerType(Ctx.CharTy); in CheckOverlap()
844 QualType PtrTy = Ctx.getPointerType(Ctx.CharTy); in IsFirstBufInBound()
876 assert(ER->getValueType() == C.getASTContext().CharTy && in IsFirstBufInBound()
1059 QualType CharPtrTy = Ctx.getPointerType(Ctx.CharTy); in evalCopyCommon()
DBasicObjCFoundationChecks.cpp385 case kCFNumberCharType: T = Ctx.CharTy; break; in GetCFNumberSize()
DMallocChecker.cpp741 SVal ZeroVal = C.getSValBuilder().makeZeroVal(Ctx.CharTy); in performKernelMalloc()
2011 SVal zeroVal = svalBuilder.makeZeroVal(svalBuilder.getContext().CharTy); in CallocMem()
/external/clang/include/clang/AST/
DBuiltinTypes.def67 SHARED_SINGLETON_TYPE(UNSIGNED_TYPE(Char_U, CharTy))
99 SHARED_SINGLETON_TYPE(SIGNED_TYPE(Char_S, CharTy))
DASTContext.h895 CanQualType CharTy; variable
1818 return getTypeSize(CharTy); in getCharWidth()
/external/llvm/lib/Transforms/Scalar/
DStraightLineStrengthReduce.cpp638 Type *CharTy = Type::getInt8PtrTy(Basis.Ins->getContext(), AS); in rewriteCandidateWithBasis() local
639 Reduced = Builder.CreateBitCast(Basis.Ins, CharTy); in rewriteCandidateWithBasis()
/external/clang/lib/Analysis/
DFormatString.cpp454 Res = C.CharTy; in getRepresentativeType()
460 Res = C.getPointerType(C.CharTy); in getRepresentativeType()
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Transforms/Scalar/
DStraightLineStrengthReduce.cpp672 Type *CharTy = Type::getInt8PtrTy(Basis.Ins->getContext(), AS); in rewriteCandidateWithBasis() local
673 Reduced = Builder.CreateBitCast(Basis.Ins, CharTy); in rewriteCandidateWithBasis()
/external/clang/lib/StaticAnalyzer/Core/
DStore.cpp205 newSuperR = MakeElementRegion(baseR, Ctx.CharTy, off.getQuantity()); in castRegion()
DExprEngineCXX.cpp302 SVal ZeroVal = svalBuilder.makeZeroVal(getContext().CharTy); in VisitCXXConstructExpr()
/external/clang/lib/CodeGen/
DCGCUDANV.cpp94 CharPtrTy = llvm::PointerType::getUnqual(Types.ConvertType(Ctx.CharTy)); in CGNVCUDARuntime()
DCodeGenModule.cpp3182 : getContext().getTypeAlignInChars(getContext().CharTy); in GetAddrOfConstantCFString()
3277 FieldTypes[1] = Context.getPointerType(Context.CharTy.withConst()); in GetAddrOfConstantString()
3318 CharUnits Align = getContext().getTypeAlignInChars(getContext().CharTy); in GetAddrOfConstantString()
3507 getContext().getAlignOfGlobalVarInChars(getContext().CharTy); in GetAddrOfConstantCString()
DCGExpr.cpp3363 tbaa = CGM.getTBAAInfo(getContext().CharTy); in EmitLValueForField()
3402 LV.setTBAABaseType(mayAlias ? getContext().CharTy : base.getTBAABaseType()); in EmitLValueForField()
3416 LV.setTBAAInfo(CGM.getTBAAInfo(getContext().CharTy)); in EmitLValueForField()
DCGAtomic.cpp106 AtomicTy = C.getConstantArrayType(C.CharTy, Size, ArrayType::Normal, in AtomicInfo()
/external/clang/lib/Sema/
DSemaExpr.cpp1615 QualType CharTy = Context.CharTy; in ActOnStringLiteral() local
1618 CharTy = Context.getWideCharType(); in ActOnStringLiteral()
1623 CharTy = Context.Char16Ty; in ActOnStringLiteral()
1626 CharTy = Context.Char32Ty; in ActOnStringLiteral()
1629 CharTy = Context.UnsignedCharTy; in ActOnStringLiteral()
1632 QualType CharTyConst = CharTy; in ActOnStringLiteral()
1697 unsigned CharBits = Context.getIntWidth(CharTy); in ActOnStringLiteral()
1698 bool CharIsUnsigned = CharTy->isUnsignedIntegerType(); in ActOnStringLiteral()
1701 TemplateArgument TypeArg(CharTy); in ActOnStringLiteral()
1702 TemplateArgumentLocInfo TypeArgInfo(Context.getTrivialTypeSourceInfo(CharTy)); in ActOnStringLiteral()
[all …]
DSemaExprObjC.cpp323 NumberType = Context.CharTy; in BuildObjCNumericLiteral()
517 if (Context.hasSameUnqualifiedType(PointeeType, Context.CharTy)) { in BuildObjCBoxedExpr()
546 QualType ConstCharType = Context.CharTy.withConst(); in BuildObjCBoxedExpr()
582 ValueType = Context.CharTy; in BuildObjCBoxedExpr()
671 QualType ConstCharType = Context.CharTy.withConst(); in BuildObjCBoxedExpr()
1071 StrTy = Context.CharTy; in BuildObjCEncodeExpression()
DSemaInit.cpp2482 QualType CharTy = AT->getElementType(); in CheckDesignatedInitializer() local
2485 QualType PromotedCharTy = CharTy; in CheckDesignatedInitializer()
2486 if (CharTy->isPromotableIntegerType()) in CheckDesignatedInitializer()
2487 PromotedCharTy = Context.getPromotedIntegerType(CharTy); in CheckDesignatedInitializer()
2503 if (CharTy != PromotedCharTy) in CheckDesignatedInitializer()
2504 Init = ImplicitCastExpr::Create(Context, CharTy, CK_IntegralCast, in CheckDesignatedInitializer()
2525 if (CharTy != PromotedCharTy) in CheckDesignatedInitializer()
2526 Init = ImplicitCastExpr::Create(Context, CharTy, CK_IntegralCast, in CheckDesignatedInitializer()
DSemaDeclCXX.cpp11925 SemaRef.Context.hasSameType(PmDecl->getType(), SemaRef.Context.CharTy)) in checkLiteralOperatorTemplateParameterList()
12000 Context.hasSameType(ParamType, Context.CharTy) || in CheckLiteralOperatorDeclaration()
12009 Context.CharTy) && in CheckLiteralOperatorDeclaration()
12064 if (!(Context.hasSameType(InnerType, Context.CharTy) || in CheckLiteralOperatorDeclaration()
/external/clang/lib/Frontend/Rewrite/
DRewriteModernObjC.cpp600 Context->CharTy, llvm::APInt(32, Str.size() + 1), ArrayType::Normal, in getStringLiteral()
2312 ArgTys.push_back(Context->getPointerType(Context->CharTy.withConst())); in SynthSelGetUidFunctionDecl()
2512 ArgTys.push_back(Context->getPointerType(Context->CharTy.withConst())); in SynthGetClassFunctionDecl()
2542 ArgTys.push_back(Context->getPointerType(Context->CharTy.withConst())); in SynthGetMetaClassFunctionDecl()
3017 FieldTypes[2] = Context->getPointerType(Context->CharTy); in getConstantStringStructType()
7488 Context->getPointerType(Context->CharTy), in RewriteObjCIvarRefExpr()
7500 Context->getPointerType(Context->CharTy), in RewriteObjCIvarRefExpr()
DRewriteObjC.cpp500 Context->CharTy, llvm::APInt(32, Str.size() + 1), ArrayType::Normal, in getStringLiteral()
2223 ArgTys.push_back(Context->getPointerType(Context->CharTy.withConst())); in SynthSelGetUidFunctionDecl()
2436 ArgTys.push_back(Context->getPointerType(Context->CharTy.withConst())); in SynthGetClassFunctionDecl()
2466 ArgTys.push_back(Context->getPointerType(Context->CharTy.withConst())); in SynthGetMetaClassFunctionDecl()
2563 FieldTypes[2] = Context->getPointerType(Context->CharTy); in getConstantStringStructType()
/external/clang/lib/Edit/
DRewriteObjCFoundationAPI.cpp1134 if (Ctx.hasSameUnqualifiedType(PointeeType, Ctx.CharTy)) { in doRewriteToUTF8StringBoxedExpressionHelper()
/external/clang/lib/AST/
DASTContext.cpp1002 InitBuiltinType(CharTy, BuiltinType::Char_S); in InitBuiltinTypes()
1004 InitBuiltinType(CharTy, BuiltinType::Char_U); in InitBuiltinTypes()
4700 return 2 + (getIntWidth(CharTy) << 3); in getIntegerRank()
4904 FieldTypes[2] = getPointerType(CharTy.withConst()); in getCFConstantStringDecl()
6170 QualType T = Context->getPointerType(Context->CharTy); in CreateCharPtrNamedVaListDecl()
8190 Type = Context.CharTy; in DecodeTypeFromStr()
DExprConstant.cpp7045 QualType CharTy = E->getArg(0)->getType()->getPointeeType(); in VisitCallExpr() local
7048 if (!handleLValueToRValueConversion(Info, E, CharTy, String, Char) || in VisitCallExpr()
7053 if (!HandleLValueArrayAdjustment(Info, E, String, CharTy, 1)) in VisitCallExpr()

12