Home
last modified time | relevance | path

Searched refs:CharTy (Results 1 – 25 of 32) 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.cpp288 assert(ER->getValueType() == C.getASTContext().CharTy && in CheckLocation()
362 QualType PtrTy = Ctx.getPointerType(Ctx.CharTy); in CheckBufferAccess()
500 QualType CharPtrTy = Ctx.getPointerType(Ctx.CharTy); in CheckOverlap()
840 QualType PtrTy = Ctx.getPointerType(Ctx.CharTy); in IsFirstBufInBound()
872 assert(ER->getValueType() == C.getASTContext().CharTy && in IsFirstBufInBound()
1055 QualType CharPtrTy = Ctx.getPointerType(Ctx.CharTy); in evalCopyCommon()
DBasicObjCFoundationChecks.cpp386 case kCFNumberCharType: T = Ctx.CharTy; break; in GetCFNumberSize()
DMallocChecker.cpp731 SVal ZeroVal = C.getSValBuilder().makeZeroVal(Ctx.CharTy); in performKernelMalloc()
2003 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.h881 CanQualType CharTy; variable
1793 return getTypeSize(CharTy); in getCharWidth()
/external/clang/lib/Analysis/
DFormatString.cpp423 Res = C.CharTy; in getRepresentativeType()
429 Res = C.getPointerType(C.CharTy); in getRepresentativeType()
/external/llvm/lib/Transforms/Scalar/
DStraightLineStrengthReduce.cpp657 Type *CharTy = Type::getInt8PtrTy(Basis.Ins->getContext(), AS); in rewriteCandidateWithBasis() local
658 Reduced = Builder.CreateBitCast(Basis.Ins, CharTy); in rewriteCandidateWithBasis()
/external/clang/lib/CodeGen/
DCGCUDANV.cpp89 CharPtrTy = llvm::PointerType::getUnqual(Types.ConvertType(Ctx.CharTy)); in CGNVCUDARuntime()
DCodeGenModule.cpp2924 CharUnits Align = getContext().getTypeAlignInChars(getContext().CharTy); in GetAddrOfConstantCFString()
3004 FieldTypes[1] = Context.getPointerType(Context.CharTy.withConst()); in GetAddrOfConstantString()
3045 CharUnits Align = getContext().getTypeAlignInChars(getContext().CharTy); in GetAddrOfConstantString()
3234 getContext().getAlignOfGlobalVarInChars(getContext().CharTy); in GetAddrOfConstantCString()
DCGExpr.cpp3154 tbaa = CGM.getTBAAInfo(getContext().CharTy); in EmitLValueForField()
3193 LV.setTBAABaseType(mayAlias ? getContext().CharTy : base.getTBAABaseType()); in EmitLValueForField()
3207 LV.setTBAAInfo(CGM.getTBAAInfo(getContext().CharTy)); in EmitLValueForField()
DCGAtomic.cpp106 AtomicTy = C.getConstantArrayType(C.CharTy, Size, ArrayType::Normal, in AtomicInfo()
/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/Sema/
DSemaExpr.cpp1553 QualType CharTy = Context.CharTy; in ActOnStringLiteral() local
1556 CharTy = Context.getWideCharType(); in ActOnStringLiteral()
1561 CharTy = Context.Char16Ty; in ActOnStringLiteral()
1564 CharTy = Context.Char32Ty; in ActOnStringLiteral()
1567 CharTy = Context.UnsignedCharTy; in ActOnStringLiteral()
1570 QualType CharTyConst = CharTy; in ActOnStringLiteral()
1635 unsigned CharBits = Context.getIntWidth(CharTy); in ActOnStringLiteral()
1636 bool CharIsUnsigned = CharTy->isUnsignedIntegerType(); in ActOnStringLiteral()
1639 TemplateArgument TypeArg(CharTy); in ActOnStringLiteral()
1640 TemplateArgumentLocInfo TypeArgInfo(Context.getTrivialTypeSourceInfo(CharTy)); in ActOnStringLiteral()
[all …]
DSemaExprObjC.cpp325 NumberType = Context.CharTy; in BuildObjCNumericLiteral()
519 if (Context.hasSameUnqualifiedType(PointeeType, Context.CharTy)) { in BuildObjCBoxedExpr()
548 QualType ConstCharType = Context.CharTy.withConst(); in BuildObjCBoxedExpr()
583 ValueType = Context.CharTy; in BuildObjCBoxedExpr()
672 QualType ConstCharType = Context.CharTy.withConst(); in BuildObjCBoxedExpr()
1074 StrTy = Context.CharTy; in BuildObjCEncodeExpression()
DSemaInit.cpp2396 QualType CharTy = AT->getElementType(); in CheckDesignatedInitializer() local
2399 QualType PromotedCharTy = CharTy; in CheckDesignatedInitializer()
2400 if (CharTy->isPromotableIntegerType()) in CheckDesignatedInitializer()
2401 PromotedCharTy = Context.getPromotedIntegerType(CharTy); in CheckDesignatedInitializer()
2417 if (CharTy != PromotedCharTy) in CheckDesignatedInitializer()
2418 Init = ImplicitCastExpr::Create(Context, CharTy, CK_IntegralCast, in CheckDesignatedInitializer()
2439 if (CharTy != PromotedCharTy) in CheckDesignatedInitializer()
2440 Init = ImplicitCastExpr::Create(Context, CharTy, CK_IntegralCast, in CheckDesignatedInitializer()
DSemaDeclCXX.cpp11771 Context.hasSameType(PmDecl->getType(), Context.CharTy)) in CheckLiteralOperatorDeclaration()
11806 Context.hasSameType(T, Context.CharTy) || in CheckLiteralOperatorDeclaration()
11829 if (Context.hasSameType(T, Context.CharTy)) in CheckLiteralOperatorDeclaration()
11836 if (!(Context.hasSameType(T, Context.CharTy) || in CheckLiteralOperatorDeclaration()
DSemaDecl.cpp8673 Context.getPointerType(Context.getPointerType(Context.CharTy)); in CheckMain()
8694 Context.CharTy)) { in CheckMain()
13389 Context.CharTy, in ActOnLastBitfield()
13390 Context.getTrivialTypeSourceInfo(Context.CharTy, in ActOnLastBitfield()
/external/clang/lib/Frontend/Rewrite/
DRewriteModernObjC.cpp605 Context->CharTy, llvm::APInt(32, Str.size() + 1), ArrayType::Normal, in getStringLiteral()
2339 ArgTys.push_back(Context->getPointerType(Context->CharTy.withConst())); in SynthSelGetUidFunctionDecl()
2539 ArgTys.push_back(Context->getPointerType(Context->CharTy.withConst())); in SynthGetClassFunctionDecl()
2569 ArgTys.push_back(Context->getPointerType(Context->CharTy.withConst())); in SynthGetMetaClassFunctionDecl()
3048 FieldTypes[2] = Context->getPointerType(Context->CharTy); in getConstantStringStructType()
7613 Context->getPointerType(Context->CharTy), in RewriteObjCIvarRefExpr()
7625 Context->getPointerType(Context->CharTy), in RewriteObjCIvarRefExpr()
DRewriteObjC.cpp499 Context->CharTy, llvm::APInt(32, Str.size() + 1), ArrayType::Normal, in getStringLiteral()
2227 ArgTys.push_back(Context->getPointerType(Context->CharTy.withConst())); in SynthSelGetUidFunctionDecl()
2441 ArgTys.push_back(Context->getPointerType(Context->CharTy.withConst())); in SynthGetClassFunctionDecl()
2471 ArgTys.push_back(Context->getPointerType(Context->CharTy.withConst())); in SynthGetMetaClassFunctionDecl()
2568 FieldTypes[2] = Context->getPointerType(Context->CharTy); in getConstantStringStructType()
/external/clang/lib/Edit/
DRewriteObjCFoundationAPI.cpp1131 if (Ctx.hasSameUnqualifiedType(PointeeType, Ctx.CharTy)) { in doRewriteToUTF8StringBoxedExpressionHelper()
/external/clang/lib/AST/
DASTContext.cpp1005 InitBuiltinType(CharTy, BuiltinType::Char_S); in InitBuiltinTypes()
1007 InitBuiltinType(CharTy, BuiltinType::Char_U); in InitBuiltinTypes()
4643 return 2 + (getIntWidth(CharTy) << 3); in getIntegerRank()
4843 FieldTypes[2] = getPointerType(CharTy.withConst()); in getCFConstantStringType()
6073 QualType T = Context->getPointerType(Context->CharTy); in CreateCharPtrNamedVaListDecl()
8048 Type = Context.CharTy; in DecodeTypeFromStr()
DExprConstant.cpp6766 QualType CharTy = E->getArg(0)->getType()->getPointeeType(); in VisitCallExpr() local
6769 if (!handleLValueToRValueConversion(Info, E, CharTy, String, Char) || in VisitCallExpr()
6774 if (!HandleLValueArrayAdjustment(Info, E, String, CharTy, 1)) in VisitCallExpr()

12