Searched refs:BuiltinType (Results 1 - 25 of 56) sorted by relevance

123

/external/clang/lib/Serialization/
H A DASTCommon.cpp25 serialization::TypeIdxFromBuiltin(const BuiltinType *BT) {
28 case BuiltinType::Void: ID = PREDEF_TYPE_VOID_ID; break;
29 case BuiltinType::Bool: ID = PREDEF_TYPE_BOOL_ID; break;
30 case BuiltinType::Char_U: ID = PREDEF_TYPE_CHAR_U_ID; break;
31 case BuiltinType::UChar: ID = PREDEF_TYPE_UCHAR_ID; break;
32 case BuiltinType::UShort: ID = PREDEF_TYPE_USHORT_ID; break;
33 case BuiltinType::UInt: ID = PREDEF_TYPE_UINT_ID; break;
34 case BuiltinType::ULong: ID = PREDEF_TYPE_ULONG_ID; break;
35 case BuiltinType::ULongLong: ID = PREDEF_TYPE_ULONGLONG_ID; break;
36 case BuiltinType
[all...]
H A DASTCommon.h31 TypeIdx TypeIdxFromBuiltin(const BuiltinType *BT);
46 if (const BuiltinType *BT = dyn_cast<BuiltinType>(T.getTypePtr()))
/external/clang/lib/AST/
H A DTypeLoc.cpp201 case BuiltinType::Void:
203 case BuiltinType::Bool:
205 case BuiltinType::Char_U:
206 case BuiltinType::Char_S:
208 case BuiltinType::Char16:
210 case BuiltinType::Char32:
212 case BuiltinType::WChar_S:
213 case BuiltinType::WChar_U:
215 case BuiltinType::UChar:
216 case BuiltinType
[all...]
H A DNSAPI.cpp283 const BuiltinType *BT = T->getAs<BuiltinType>();
299 case BuiltinType::Char_S:
300 case BuiltinType::SChar:
302 case BuiltinType::Char_U:
303 case BuiltinType::UChar:
305 case BuiltinType::Short:
307 case BuiltinType::UShort:
309 case BuiltinType::Int:
311 case BuiltinType
[all...]
H A DType.cpp607 if (const BuiltinType *BT = dyn_cast<BuiltinType>(CanonicalType))
608 return BT->getKind() >= BuiltinType::Bool &&
609 BT->getKind() <= BuiltinType::Int128;
620 if (const BuiltinType *BT = dyn_cast<BuiltinType>(CanonicalType))
621 return BT->getKind() >= BuiltinType::Bool &&
622 BT->getKind() <= BuiltinType::Int128;
637 if (const BuiltinType *BT = dyn_cast<BuiltinType>(CanonicalTyp
[all...]
H A DMicrosoftMangle.cpp991 void MicrosoftCXXNameMangler::mangleType(const BuiltinType *T,
1018 case BuiltinType::Void: Out << 'X'; break;
1019 case BuiltinType::SChar: Out << 'C'; break;
1020 case BuiltinType::Char_U: case BuiltinType::Char_S: Out << 'D'; break;
1021 case BuiltinType::UChar: Out << 'E'; break;
1022 case BuiltinType::Short: Out << 'F'; break;
1023 case BuiltinType::UShort: Out << 'G'; break;
1024 case BuiltinType::Int: Out << 'H'; break;
1025 case BuiltinType
[all...]
H A DASTContext.cpp716 void ASTContext::InitBuiltinType(CanQualType &R, BuiltinType::Kind K) {
717 BuiltinType *Ty = new (*this, TypeAlignment) BuiltinType(K);
733 InitBuiltinType(VoidTy, BuiltinType::Void);
736 InitBuiltinType(BoolTy, BuiltinType::Bool);
739 InitBuiltinType(CharTy, BuiltinType::Char_S);
741 InitBuiltinType(CharTy, BuiltinType::Char_U);
743 InitBuiltinType(SignedCharTy, BuiltinType::SChar);
744 InitBuiltinType(ShortTy, BuiltinType::Short);
745 InitBuiltinType(IntTy, BuiltinType
[all...]
H A DItaniumMangle.cpp1780 bool isSubstitutable = quals || !isa<BuiltinType>(T);
1824 void CXXNameMangler::mangleType(const BuiltinType *T) {
1855 case BuiltinType::Void: Out << 'v'; break;
1856 case BuiltinType::Bool: Out << 'b'; break;
1857 case BuiltinType::Char_U: case BuiltinType::Char_S: Out << 'c'; break;
1858 case BuiltinType::UChar: Out << 'h'; break;
1859 case BuiltinType::UShort: Out << 't'; break;
1860 case BuiltinType::UInt: Out << 'j'; break;
1861 case BuiltinType
[all...]
/external/clang/lib/CodeGen/
H A DCodeGenTBAA.cpp94 if (const BuiltinType *BTy = dyn_cast<BuiltinType>(Ty)) {
101 case BuiltinType::Char_U:
102 case BuiltinType::Char_S:
103 case BuiltinType::UChar:
104 case BuiltinType::SChar:
108 case BuiltinType::UShort:
110 case BuiltinType::UInt:
112 case BuiltinType::ULong:
114 case BuiltinType
[all...]
H A DCodeGenTypes.cpp310 switch (cast<BuiltinType>(Ty)->getKind()) {
311 case BuiltinType::Void:
312 case BuiltinType::ObjCId:
313 case BuiltinType::ObjCClass:
314 case BuiltinType::ObjCSel:
320 case BuiltinType::Bool:
325 case BuiltinType::Char_S:
326 case BuiltinType::Char_U:
327 case BuiltinType::SChar:
328 case BuiltinType
[all...]
H A DCGRTTI.cpp158 static bool TypeInfoIsInStandardLibrary(const BuiltinType *Ty) {
169 case BuiltinType::Void:
170 case BuiltinType::NullPtr:
171 case BuiltinType::Bool:
172 case BuiltinType::WChar_S:
173 case BuiltinType::WChar_U:
174 case BuiltinType::Char_U:
175 case BuiltinType::Char_S:
176 case BuiltinType::UChar:
177 case BuiltinType
[all...]
H A DTargetInfo.cpp269 if (!Ty->getAs<BuiltinType>() && !Ty->hasPointerRepresentation() &&
598 if (Ty->getAs<BuiltinType>() || Ty->hasPointerRepresentation() ||
793 if (const BuiltinType *BT = T->getAs<BuiltinType>()) {
794 BuiltinType::Kind K = BT->getKind();
795 if (K == BuiltinType::Float || K == BuiltinType::Double)
1320 if (const BuiltinType *BT = Ty->getAs<BuiltinType>()) {
1321 BuiltinType
[all...]
H A DCGDebugInfo.cpp338 llvm::DIType CGDebugInfo::CreateType(const BuiltinType *BT) {
344 case BuiltinType::Id:
346 case BuiltinType::Dependent:
348 case BuiltinType::NullPtr:
351 case BuiltinType::Void:
353 case BuiltinType::ObjCClass:
360 case BuiltinType::ObjCId: {
396 case BuiltinType::ObjCSel: {
405 case BuiltinType::UChar:
406 case BuiltinType
[all...]
H A DCGExprScalar.cpp2147 BuiltinType::Kind ElemKind) {
2150 case BuiltinType::Char_U:
2151 case BuiltinType::UChar:
2154 case BuiltinType::Char_S:
2155 case BuiltinType::SChar:
2158 case BuiltinType::UShort:
2161 case BuiltinType::Short:
2164 case BuiltinType::UInt:
2165 case BuiltinType::ULong:
2168 case BuiltinType
[all...]
/external/clang/lib/Analysis/
H A DPrintfFormatString.cpp420 const BuiltinType *BT = QT->getAs<BuiltinType>();
426 case BuiltinType::Bool:
427 case BuiltinType::WChar_U:
428 case BuiltinType::WChar_S:
429 case BuiltinType::Char16:
430 case BuiltinType::Char32:
431 case BuiltinType::UInt128:
432 case BuiltinType::Int128:
433 case BuiltinType
[all...]
H A DFormatString.cpp261 if (const BuiltinType *BT = argTy->getAs<BuiltinType>())
265 case BuiltinType::Char_S:
266 case BuiltinType::SChar:
267 case BuiltinType::UChar:
268 case BuiltinType::Char_U:
282 if (const BuiltinType *BT = argTy->getAs<BuiltinType>())
286 case BuiltinType::Char_S:
287 case BuiltinType
[all...]
H A DScanfFormatString.cpp368 const BuiltinType *BT = PT->getAs<BuiltinType>();
385 case BuiltinType::UInt:
386 case BuiltinType::Int:
387 case BuiltinType::Float:
392 case BuiltinType::Char_U:
393 case BuiltinType::UChar:
394 case BuiltinType::Char_S:
395 case BuiltinType::SChar:
400 case BuiltinType
[all...]
/external/clang/tools/libclang/
H A DCIndexUSRs.cpp542 if (const BuiltinType *BT = T->getAs<BuiltinType>()) {
545 case BuiltinType::Void:
547 case BuiltinType::Bool:
549 case BuiltinType::Char_U:
550 case BuiltinType::UChar:
552 case BuiltinType::Char16:
554 case BuiltinType::Char32:
556 case BuiltinType::UShort:
558 case BuiltinType
[all...]
H A DCXType.cpp28 static CXTypeKind GetBuiltinTypeKind(const BuiltinType *BT) {
29 #define BTCASE(K) case BuiltinType::K: return CXType_##K
44 case BuiltinType::WChar_S: return CXType_WChar;
45 case BuiltinType::WChar_U: return CXType_WChar;
74 return GetBuiltinTypeKind(cast<BuiltinType>(TP));
/external/clang/include/clang/AST/
H A DType.h1213 friend class BuiltinType;
1217 /// The kind (BuiltinType::Kind) of builtin type this is.
1447 const BuiltinType *getAsPlaceholderType() const;
1453 /// other than Overload; see BuiltinType::isNonOverloadPlaceholderType.
1765 /// BuiltinType - This class is used for builtin types like 'int'. Builtin
1767 class BuiltinType : public Type { class in namespace:clang
1776 BuiltinType(Kind K) function in class:clang::BuiltinType
1838 static bool classof(const BuiltinType *) { return true; }
4179 /// pointee is an ObjCObjectType with base BuiltinType::ObjCIdType
4183 /// with base BuiltinType
[all...]
H A DTypeLoc.h431 BuiltinType,
453 BuiltinType::Kind bk = getTypePtr()->getKind();
454 return (bk >= BuiltinType::UShort && bk <= BuiltinType::UInt128)
455 || (bk >= BuiltinType::Short && bk <= BuiltinType::LongDouble)
456 || bk == BuiltinType::UChar
457 || bk == BuiltinType::SChar;
/external/clang/utils/ABITest/
H A DABITestGen.py201 if isinstance(t, BuiltinType):
270 if isinstance(t, BuiltinType):
319 if isinstance(t, BuiltinType):
507 btg = FixedTypeGenerator([BuiltinType(n,s) for n,s in builtins])
514 bitfields.append(BuiltinType(name,None,int(width)))
517 charType = BuiltinType('char',1)
518 shortType = BuiltinType('short',2)
519 intType = BuiltinType('int',4)
520 longlongType = BuiltinType('long long',8)
521 floatType = BuiltinType('floa
[all...]
H A DTypeGen.py33 class BuiltinType(Type): class in inherits:Type
441 fbtg = FixedTypeGenerator([BuiltinType('char', 4),
442 BuiltinType('char', 4, 0),
443 BuiltinType('int', 4, 5)])
452 btg = FixedTypeGenerator([BuiltinType('char', 4),
453 BuiltinType('int', 4)])
/external/clang/lib/Sema/
H A DSemaCast.cpp54 if (const BuiltinType *placeholder =
58 PlaceholderKind = (BuiltinType::Kind) 0;
68 BuiltinType::Kind PlaceholderKind;
102 bool claimPlaceholder(BuiltinType::Kind K) {
105 PlaceholderKind = (BuiltinType::Kind) 0;
112 bool isPlaceholder(BuiltinType::Kind K) const {
132 if (!isPlaceholder() || isPlaceholder(BuiltinType::Overload))
138 PlaceholderKind = (BuiltinType::Kind) 0;
687 if (ValueKind == VK_RValue && !isPlaceholder(BuiltinType::Overload))
735 if (claimPlaceholder(BuiltinType
[all...]
H A DSemaChecking.cpp1421 if (CastArg->getType()->isSpecificBuiltinType(BuiltinType::Float)) {
1422 assert(Cast->getType()->isSpecificBuiltinType(BuiltinType::Double) &&
3881 const BuiltinType *BT = cast<BuiltinType>(T);
3902 const BuiltinType *BT = cast<BuiltinType>(T);
4476 if (T->isSpecificBuiltinType(BuiltinType::Bool))
4506 const BuiltinType *FloatCandidateBT =
4507 dyn_cast<BuiltinType>(ToBool ? Source : Target);
4510 return (BoolCandidateType->isSpecificBuiltinType(BuiltinType
[all...]

Completed in 356 milliseconds

123