/external/clang/include/clang/AST/ |
D | ASTContext.h | 242 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 …]
|
D | Type.h | 46 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 …]
|
D | TypeOrdering.h | 29 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/ |
D | Type.cpp | 47 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 …]
|
D | ASTContext.cpp | 482 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 …]
|
D | InheritViz.cpp | 37 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 …]
|
D | ASTDiagnostic.cpp | 30 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/ |
D | SValBuilder.h | 49 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 …]
|
D | SymbolManager.h | 63 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 …]
|
D | BasicValueFactory.h | 28 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/ |
D | CXType.cpp | 67 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/ |
D | Initialization.h | 104 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 …]
|
D | Overload.h | 204 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 …]
|
D | Sema.h | 159 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/ |
D | CGCXXABI.h | 66 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 …]
|
D | CodeGenFunction.h | 155 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/ |
D | TreeTransform.h | 202 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 …]
|
D | TypeLocBuilder.h | 38 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()
|
D | SemaType.cpp | 66 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 …]
|
D | SemaCast.cpp | 51 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 …]
|
D | SemaExpr.cpp | 428 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/ |
D | DynamicTypeChecker.cpp | 62 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 …]
|
D | DynamicTypePropagation.cpp | 150 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/ |
D | SValBuilder.cpp | 32 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/ |
D | BodyFarm.cpp | 29 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 …]
|