Home
last modified time | relevance | path

Searched refs:QualType (Results 1 – 25 of 311) sorted by relevance

12345678910>>...13

/external/clang/include/clang/AST/
DASTContext.h242 QualType ObjCIdRedefinitionType;
243 QualType ObjCClassRedefinitionType;
244 QualType ObjCSelRedefinitionType;
261 QualType ObjCConstantStringType;
265 mutable QualType ObjCSuperType;
267 QualType ObjCNSStringType;
595 QualType getIntTypeForBitwidth(unsigned DestWidth,
600 QualType getRealTypeForBitwidth(unsigned DestWidth) const;
922 mutable QualType AutoDeductTy; // Deduction against 'auto'.
923 mutable QualType AutoRRefDeductTy; // Deduction against 'auto &&'.
[all …]
DType.h46 class QualType; variable
72 struct isPodLike<clang::QualType> { static const bool value = true; };
598 class QualType {
621 QualType() {}
623 QualType(const Type *Ptr, unsigned Quals)
625 QualType(const ExtQuals *Ptr, unsigned Quals)
647 static QualType getFromOpaquePtr(const void *Ptr) {
648 QualType T;
736 return QualType::isConstant(*this, Ctx);
764 QualType withConst() const {
[all …]
DTypeOrdering.h29 struct QualTypeOrdering : std::binary_function<QualType, QualType, bool> {
30 bool operator()(QualType T1, QualType T2) const { in operator()
40 template<> struct DenseMapInfo<clang::QualType> {
41 static inline clang::QualType getEmptyKey() { return clang::QualType(); }
43 static inline clang::QualType getTombstoneKey() {
44 using clang::QualType;
45 return QualType::getFromOpaquePtr(reinterpret_cast<clang::Type *>(-1));
48 static unsigned getHashValue(clang::QualType Val) {
53 static bool isEqual(clang::QualType LHS, clang::QualType RHS) {
/external/clang/lib/AST/
DType.cpp47 const IdentifierInfo* QualType::getBaseTypeIdentifier() const { in getBaseTypeIdentifier()
67 bool QualType::isConstant(QualType T, const ASTContext &Ctx) { in isConstant()
78 QualType ElementType, in getNumAddressingBits()
125 QualType et, QualType can, in DependentSizedArrayType()
138 QualType ET, in Profile()
150 QualType ElementType, in DependentSizedExtVectorType()
151 QualType can, in DependentSizedExtVectorType()
167 QualType ElementType, Expr *SizeExpr) { in Profile()
172 VectorType::VectorType(QualType vecType, unsigned nElements, QualType canonType, in VectorType()
176 VectorType::VectorType(TypeClass tc, QualType vecType, unsigned nElements, in VectorType()
[all …]
DASTContext.cpp482 QualType QT = TD->getUnderlyingType(); in getCommentForDecl()
507 QualType Ty = I.getType(); in getCommentForDecl()
522 QualType Ty = I.getType(); in getCommentForDecl()
574 QualType T = NTTP->getExpansionType(I); in Profile()
617 QualType T = getCanonicalType(NTTP->getType()); in getCanonicalTemplateTemplateParmDecl()
621 SmallVector<QualType, 2> ExpandedTypes; in getCanonicalTemplateTemplateParmDecl()
954 TypedefDecl *ASTContext::buildImplicitTypedef(QualType T, in buildImplicitTypedef()
978 R = CanQualType::CreateUnsafe(QualType(Ty, 0)); in InitBuiltinType()
1112 ObjCConstantStringType = QualType(); in InitBuiltinTypes()
1114 ObjCSuperType = QualType(); in InitBuiltinTypes()
[all …]
DInheritViz.cpp37 std::map<QualType, int, QualTypeOrdering> DirectBaseCount;
38 std::set<QualType, QualTypeOrdering> KnownVirtualBases;
44 void WriteGraph(QualType Type) { in WriteGraph()
54 void WriteNode(QualType Type, bool FromVirtual);
59 raw_ostream& WriteNodeReference(QualType Type, bool FromVirtual);
63 void InheritanceHierarchyWriter::WriteNode(QualType Type, bool FromVirtual) { in WriteNode()
64 QualType CanonType = Context.getCanonicalType(Type); in WriteNode()
97 QualType CanonBaseType = Context.getCanonicalType(Base.getType()); in WriteNode()
125 InheritanceHierarchyWriter::WriteNodeReference(QualType Type, in WriteNodeReference()
127 QualType CanonType = Context.getCanonicalType(Type); in WriteNodeReference()
[all …]
DASTDiagnostic.cpp30 static QualType Desugar(ASTContext &Context, QualType QT, bool &ShouldAKA) { in Desugar()
74 QualType SugarRT = FT->getReturnType(); in Desugar()
75 QualType RT = Desugar(Context, SugarRT, DesugarReturn); in Desugar()
82 SmallVector<QualType, 4> Args; in Desugar()
85 for (QualType SugarPT : FPT->param_types()) { in Desugar()
86 QualType PT = Desugar(Context, SugarPT, DesugarArgument); in Desugar()
129 if (QualType(Ty,0) == Context.getObjCIdType() || in Desugar()
130 QualType(Ty,0) == Context.getObjCClassType() || in Desugar()
131 QualType(Ty,0) == Context.getObjCSelType() || in Desugar()
132 QualType(Ty,0) == Context.getObjCProtoType()) in Desugar()
[all …]
/external/clang/include/clang/StaticAnalyzer/Core/PathSensitive/
DSValBuilder.h49 const QualType ArrayIndexTy;
54 virtual SVal evalCastFromNonLoc(NonLoc val, QualType castTy) = 0;
55 virtual SVal evalCastFromLoc(Loc val, QualType castTy) = 0;
60 virtual SVal dispatchCast(SVal val, QualType castTy) = 0;
78 bool haveSameType(QualType Ty1, QualType Ty2) { in haveSameType()
86 SVal evalCast(SVal val, QualType castTy, QualType originalType);
89 SVal evalIntegralCast(ProgramStateRef state, SVal val, QualType castTy,
90 QualType originalType);
99 NonLoc lhs, NonLoc rhs, QualType resultTy) = 0;
104 Loc lhs, Loc rhs, QualType resultTy) = 0;
[all …]
DSymbolManager.h63 QualType getType() const override;
75 QualType T;
82 QualType t, unsigned count, const void *symbolTag) in SymbolConjured()
90 QualType getType() const override;
95 QualType T, unsigned Count, const LocationContext *LCtx, in Profile()
128 QualType getType() const override;
162 QualType getType() const override;
188 QualType T;
192 SymbolMetadata(SymbolID sym, const MemRegion* r, const Stmt *s, QualType t, in SymbolMetadata()
201 QualType getType() const override;
[all …]
DBasicValueFactory.h28 QualType T;
32 CompoundValData(QualType t, llvm::ImmutableList<SVal> l) in CompoundValData()
39 static void Profile(llvm::FoldingSetNodeID& ID, QualType T,
92 const llvm::APSInt& getValue(uint64_t X, QualType T);
95 APSIntType getAPSIntType(QualType T) const { in getAPSIntType()
112 const llvm::APSInt &Convert(QualType T, const llvm::APSInt &From) { in Convert()
121 QualType T = isUnsigned ? Ctx.UnsignedIntTy : Ctx.IntTy; in getIntValue()
133 inline const llvm::APSInt& getMaxValue(QualType T) { in getMaxValue()
137 inline const llvm::APSInt& getMinValue(QualType T) { in getMinValue()
161 inline const llvm::APSInt& getTruthValue(bool b, QualType T) { in getTruthValue()
[all …]
/external/clang/tools/libclang/
DCXType.cpp67 static CXTypeKind GetTypeKind(QualType T) { in GetTypeKind()
103 CXType cxtype::MakeCXType(QualType T, CXTranslationUnit TU) { in MakeCXType()
114 QualType UnqualT = T.getUnqualifiedType(); in MakeCXType()
138 static inline QualType GetQualType(CXType CT) { in GetQualType()
139 return QualType::getFromOpaquePtr(CT.data[0]); in GetQualType()
153 return MakeCXType(QualType(), TU); in clang_getCursorType()
157 QualType T = cxcursor::getCursorExpr(C)->getType(); in clang_getCursorType()
164 return MakeCXType(QualType(), TU); in clang_getCursorType()
178 return MakeCXType(QualType(), TU); in clang_getCursorType()
184 QualType T in clang_getCursorType()
[all …]
/external/clang/include/clang/Sema/
DInitialization.h104 QualType Type;
171 InitializedEntity(EntityKind Kind, SourceLocation Loc, QualType Type,
189 InitializedEntity(IdentifierInfo *VarID, QualType FieldType, SourceLocation Loc) in InitializedEntity()
213 QualType Type) { in InitializeParameter()
230 QualType Type, in InitializeParameter()
242 QualType Type, bool NRVO) { in InitializeResult()
247 QualType Type, bool NRVO) { in InitializeBlock()
253 QualType Type, bool NRVO) { in InitializeException()
258 static InitializedEntity InitializeNew(SourceLocation NewLoc, QualType Type) { in InitializeNew()
263 static InitializedEntity InitializeTemporary(QualType Type) { in InitializeTemporary()
[all …]
DOverload.h204 void setFromType(QualType T) { FromTypePtr = T.getAsOpaquePtr(); } in setFromType()
205 void setToType(unsigned Idx, QualType T) { in setToType()
209 void setAllToTypes(QualType T) { in setAllToTypes()
215 QualType getFromType() const { in getFromType()
216 return QualType::getFromOpaquePtr(FromTypePtr); in getFromType()
218 QualType getToType(unsigned Idx) const { in getToType()
220 return QualType::getFromOpaquePtr(ToTypePtrs[Idx]); in getToType()
232 QualType &ConstantType) const;
292 QualType getFromType() const { in getFromType()
293 return QualType::getFromOpaquePtr(FromTypePtr); in getFromType()
[all …]
DSema.h159 class QualType; variable
291 typedef OpaquePtr<QualType> TypeTy;
638 QualType SavedCXXThisTypeOverride;
649 S.CXXThisTypeOverride = QualType(); in S()
741 QualType NSNumberPointer;
744 QualType NSValuePointer;
753 QualType NSStringPointer;
774 QualType QIDNSCopying;
1049 void addImplicitTypedef(StringRef Name, QualType T);
1153 getFixItZeroInitializerForType(QualType T, SourceLocation Loc) const;
[all …]
/external/clang/lib/CodeGen/
DCGCXXABI.h66 llvm::Constant *GetBogusMemberPointer(QualType T);
81 virtual bool requiresArrayCookie(const CXXDeleteExpr *E, QualType eltType);
199 virtual llvm::Constant *EmitMemberPointer(const APValue &MP, QualType MPT);
232 Address Ptr, QualType ElementType,
236 virtual llvm::GlobalVariable *getThrowInfo(QualType T) { return nullptr; } in getThrowInfo()
249 virtual llvm::Constant *getAddrOfRTTIDescriptor(QualType Ty) = 0;
251 getAddrOfCXXCatchHandlerType(QualType Ty, QualType CatchHandlerType) = 0;
255 QualType SrcRecordTy) = 0;
257 virtual llvm::Value *EmitTypeid(CodeGenFunction &CGF, QualType SrcRecordTy,
262 QualType SrcRecordTy) = 0;
[all …]
DCodeGenFunction.h155 QualType FnRetTy;
448 void PushDestructorCleanup(QualType T, Address Addr);
623 QualType VarTy = LocalVD->getType(); in addPrivate()
1103 CGF.FnRetTy = QualType(); in InlinedInheritingConstructorScope()
1132 QualType OldFnRetTy;
1245 typedef void Destroyer(CodeGenFunction &CGF, Address addr, QualType ty);
1249 QualType elementType,
1254 QualType elementType,
1258 void pushDestroy(QualType::DestructionKind dtorKind,
1259 Address addr, QualType type);
[all …]
/external/clang/lib/Sema/
DTreeTransform.h202 bool AlreadyTransformed(QualType T) { in AlreadyTransformed()
292 QualType TransformType(QualType T);
308 QualType TransformType(TypeLocBuilder &TLB, TypeLoc TL);
468 QualType ObjectType = QualType(),
503 QualType ObjectType = QualType(),
569 TypeSourceInfo *InventTypeSourceInfo(QualType T) { in InventTypeSourceInfo()
576 QualType Transform##CLASS##Type(TypeLocBuilder &TLB, CLASS##TypeLoc T);
580 QualType TransformFunctionProtoType(TypeLocBuilder &TLB,
588 SmallVectorImpl<QualType> &Exceptions,
593 QualType
[all …]
DTypeLocBuilder.h38 QualType LastTy;
71 TypeSpecTypeLoc pushTypeSpec(QualType T) { in pushTypeSpec()
80 LastTy = QualType(); in clear()
88 void TypeWasModifiedSafely(QualType T) { in TypeWasModifiedSafely()
96 template <class TyLocType> TyLocType push(QualType T) { in push()
104 TypeSourceInfo *getTypeSourceInfo(ASTContext& Context, QualType T) { in getTypeSourceInfo()
117 TypeLoc getTypeLocInContext(ASTContext &Context, QualType T) { in getTypeLocInContext()
130 TypeLoc pushImpl(QualType T, size_t LocalSize, unsigned LocalAlignment);
141 TypeLoc getTemporaryTypeLoc(QualType T) { in getTemporaryTypeLoc()
DSemaType.cpp66 QualType type) { in diagnoseBadTypeAttribute()
219 void diagnoseIgnoredTypeAttrs(QualType type) const { in diagnoseIgnoredTypeAttrs()
291 QualType &type, TypeAttrLocation TAL,
296 QualType &type);
300 QualType &type);
303 AttributeList &attr, QualType &type);
306 AttributeList &attr, QualType &type);
309 AttributeList &attr, QualType &type) { in handleObjCPointerTypeAttr()
395 QualType type) { in distributeObjCPointerTypeAttr()
453 QualType &declSpecType) { in distributeObjCPointerTypeAttrFromDeclarator()
[all …]
DSemaCast.cpp51 CastOperation(Sema &S, QualType destType, ExprResult src) in CastOperation()
67 QualType DestType;
68 QualType ResultType;
158 QualType DestType, bool CStyle,
163 QualType DestType, bool CStyle,
168 static TryCastResult TryStaticPointerDowncast(Sema &Self, QualType SrcType,
169 QualType DestType, bool CStyle,
177 QualType OrigSrcType,
178 QualType OrigDestType, unsigned &msg,
182 QualType SrcType,
[all …]
DSemaExpr.cpp428 QualType type = cast<ValueDecl>(D)->getType(); in DiagnoseSentinelCalls()
517 QualType Ty = E->getType(); in DefaultFunctionArrayConversion()
587 QualType BaseType = Base->getType(); in DiagnoseDirectIsaAccess()
643 QualType T = E->getType(); in DefaultLvalueConversion()
740 QualType Ty = E->getType(); in CallExprUnaryConversions()
768 QualType Ty = E->getType(); in UsualUnaryConversions()
792 QualType PTy = Context.isPromotableBitField(E); in UsualUnaryConversions()
798 QualType PT = Context.getPromotedIntegerType(Ty); in UsualUnaryConversions()
811 QualType Ty = E->getType(); in DefaultArgumentPromotion()
852 Sema::VarArgKind Sema::isValidVarArgType(const QualType &Ty) { in isValidVarArgType()
[all …]
/external/clang/lib/StaticAnalyzer/Checkers/
DDynamicTypeChecker.cpp62 void reportTypeError(QualType DynamicType, QualType StaticType,
71 void DynamicTypeChecker::reportTypeError(QualType DynamicType, in reportTypeError()
72 QualType StaticType, in reportTypeError()
80 QualType::print(DynamicType.getTypePtr(), Qualifiers(), OS, C.getLangOpts(), in reportTypeError()
83 QualType::print(StaticType.getTypePtr(), Qualifiers(), OS, C.getLangOpts(), in reportTypeError()
124 QualType::print(TrackedType.getType().getTypePtr(), Qualifiers(), OS, in VisitNode()
130 QualType::print(ExplicitCast->getSubExpr()->getType().getTypePtr(), in VisitNode()
133 QualType::print(ExplicitCast->getType().getTypePtr(), Qualifiers(), OS, in VisitNode()
138 QualType::print(ImplicitCast->getSubExpr()->getType().getTypePtr(), in VisitNode()
141 QualType::print(ImplicitCast->getType().getTypePtr(), Qualifiers(), OS, in VisitNode()
[all …]
DDynamicTypePropagation.cpp150 QualType Ty = Ctx.getPointerType(Ctx.getRecordType(MD->getParent())); in recordFixedType()
229 QualType DynResTy = in checkPostCall()
230 C.getASTContext().getObjCObjectPointerType(QualType(ObjTy, 0)); in checkPostCall()
288 State = setDynamicTypeInfo(State, ToR, QualType(NewTy, 0)); in dynamicTypePropagationOnCasts()
356 QualType OldDTy = getDynamicTypeInfo(C.getState(), ToR).getType(); in getBetterObjCType()
401 QualType SuperPtrOfToQual = in getMostInformativeDerivedClassImpl()
402 C.getObjCObjectPointerType(QualType(SuperOfTo, 0)); in getMostInformativeDerivedClassImpl()
527 QualType OriginType = CE->getSubExpr()->getType(); in checkPostStmt()
528 QualType DestType = CE->getType(); in checkPostStmt()
621 static bool isObjCTypeParamDependent(QualType Type) { in isObjCTypeParamDependent()
[all …]
/external/clang/lib/StaticAnalyzer/Core/
DSValBuilder.cpp32 DefinedOrUnknownSVal SValBuilder::makeZeroVal(QualType type) { in makeZeroVal()
45 const llvm::APSInt& rhs, QualType type) { in makeNonLoc()
56 QualType type) { in makeNonLoc()
63 const SymExpr *rhs, QualType type) { in makeNonLoc()
70 QualType fromTy, QualType toTy) { in makeNonLoc()
96 QualType T = region->getValueType(); in getRegionValueSymbolVal()
116 QualType T = Ex->getType(); in conjureSymbolVal()
123 QualType ExType = Ex->getType(); in conjureSymbolVal()
133 QualType type, in conjureSymbolVal()
152 QualType type, in conjureSymbolVal()
[all …]
/external/clang/lib/Analysis/
DBodyFarm.cpp29 static bool isDispatchBlock(QualType Ty) { in isDispatchBlock()
48 BinaryOperator *makeAssignment(const Expr *LHS, const Expr *RHS, QualType Ty);
61 UnaryOperator *makeDereference(const Expr *Arg, QualType Ty);
64 Expr *makeIntegralCast(const Expr *Arg, QualType Ty);
70 ImplicitCastExpr *makeLvalueToRvalue(const Expr *Arg, QualType Ty);
87 QualType Ty) { in makeAssignment()
122 UnaryOperator *ASTMaker::makeDereference(const Expr *Arg, QualType Ty) { in makeDereference()
127 ImplicitCastExpr *ASTMaker::makeLvalueToRvalue(const Expr *Arg, QualType Ty) { in makeLvalueToRvalue()
132 Expr *ASTMaker::makeIntegralCast(const Expr *Arg, QualType Ty) { in makeIntegralCast()
146 QualType Ty = C.getBOOLDecl() ? C.getBOOLType() : C.ObjCBuiltinBoolTy; in makeObjCBool()
[all …]

12345678910>>...13