Home
last modified time | relevance | path

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

12345678910>>...19

/freebsd/contrib/llvm-project/clang/include/clang/AST/
H A DASTContext.h383 QualType ObjCIdRedefinitionType;
384 QualType ObjCClassRedefinitionType;
385 QualType ObjCSelRedefinitionType;
402 QualType ObjCConstantStringType;
406 mutable QualType ObjCSuperType;
408 QualType ObjCNSStringType;
785 QualType getIntTypeForBitwidth(unsigned DestWidth,
791 QualType getRealTypeForBitwidth(unsigned DestWidth,
1178 mutable QualType AutoDeductTy; // Deduction against 'auto'.
1179 mutable QualType AutoRRefDeductTy; // Deduction against 'auto &&'.
[all …]
H A DType.h64 class QualType; variable
941 class QualType {
964 QualType() = default;
965 QualType(const Type *Ptr, unsigned Quals) : Value(Ptr, Quals) {}
966 QualType(const ExtQuals *Ptr, unsigned Quals) : Value(Ptr, Quals) {}
990 static QualType getFromOpaquePtr(const void *Ptr) {
991 QualType T;
1102 return QualType::isConstant(*this, Ctx);
1166 QualType withConst() const {
1174 QualType withVolatile() const {
[all …]
H A DNonTrivialTypeVisitor.h22 template <class... Ts> RetTy visit(QualType FT, Ts &&... Args) { in visit()
28 RetTy visitWithKind(QualType::DestructionKind DK, QualType FT, in visitWithKind()
31 case QualType::DK_objc_strong_lifetime: in visitWithKind()
33 case QualType::DK_nontrivial_c_struct: in visitWithKind()
35 case QualType::DK_none: in visitWithKind()
37 case QualType::DK_cxx_destructor: in visitWithKind()
39 case QualType::DK_objc_weak_lifetime: in visitWithKind()
51 template <class... Ts> RetTy visit(QualType FT, Ts &&... Args) { in visit()
58 RetTy visitWithKind(QualType::PrimitiveDefaultInitializeKind PDIK, in visitWithKind()
59 QualType FT, Ts &&... Args) { in visitWithKind()
[all …]
H A DTypeOrdering.h29 bool operator()(QualType T1, QualType T2) const { in operator()
38 template<> struct DenseMapInfo<clang::QualType> {
39 static inline clang::QualType getEmptyKey() { return clang::QualType(); }
41 static inline clang::QualType getTombstoneKey() {
42 using clang::QualType;
43 return QualType::getFromOpaquePtr(reinterpret_cast<clang::Type *>(-1));
46 static unsigned getHashValue(clang::QualType Val) {
51 static bool isEqual(clang::QualType LHS, clang::QualType RHS) {
/freebsd/contrib/llvm-project/clang/lib/AST/
H A DType.cpp75 const IdentifierInfo* QualType::getBaseTypeIdentifier() const { in getBaseTypeIdentifier()
95 bool QualType::mayBeDynamicClass() const { in mayBeDynamicClass()
100 bool QualType::mayBeNotDynamicClass() const { in mayBeNotDynamicClass()
105 bool QualType::isConstant(QualType T, const ASTContext &Ctx) { in isConstant()
115 std::optional<QualType::NonConstantStorageReason>
116 QualType::isNonConstantStorage(const ASTContext &Ctx, bool ExcludeCtor, in isNonConstantStorage()
139 ArrayType::ArrayType(TypeClass tc, QualType et, QualType can, in ArrayType()
163 ConstantArrayType::Create(const ASTContext &Ctx, QualType ET, QualType Can, in Create()
179 QualType ElementType, in getNumAddressingBits()
231 const ASTContext &Context, QualType ET, in Profile()
[all …]
H A DASTContext.cpp621 QualType QT = TD->getUnderlyingType(); in getCommentForDecl()
646 QualType Ty = I.getType(); in getCommentForDecl()
661 QualType Ty = I.getType(); in getCommentForDecl()
720 QualType T = NTTP->getExpansionType(I); in Profile()
765 QualType T = getUnconstrainedType(getCanonicalType(NTTP->getType())); in getCanonicalTemplateTemplateParmDecl()
769 SmallVector<QualType, 2> ExpandedTypes; in getCanonicalTemplateTemplateParmDecl()
1189 TypedefDecl *ASTContext::buildImplicitTypedef(QualType T, in buildImplicitTypedef()
1213 R = CanQualType::CreateUnsafe(QualType(Ty, 0)); in InitBuiltinType()
1426 ObjCConstantStringType = QualType(); in InitBuiltinTypes()
1428 ObjCSuperType = QualType(); in InitBuiltinTypes()
[all …]
H A DInheritViz.cpp36 std::map<QualType, int, QualTypeOrdering> DirectBaseCount;
37 std::set<QualType, QualTypeOrdering> KnownVirtualBases;
43 void WriteGraph(QualType Type) { in WriteGraph()
53 void WriteNode(QualType Type, bool FromVirtual);
58 raw_ostream& WriteNodeReference(QualType Type, bool FromVirtual);
62 void InheritanceHierarchyWriter::WriteNode(QualType Type, bool FromVirtual) { in WriteNode()
63 QualType CanonType = Context.getCanonicalType(Type); in WriteNode()
96 QualType CanonBaseType = Context.getCanonicalType(Base.getType()); in WriteNode()
124 InheritanceHierarchyWriter::WriteNodeReference(QualType Type, in WriteNodeReference()
126 QualType CanonType = Context.getCanonicalType(Type); in WriteNodeReference()
[all …]
H A DASTDiagnostic.cpp30 QualType clang::desugarForDiagnostic(ASTContext &Context, QualType QT, in desugarForDiagnostic()
85 QualType SugarRT = FT->getReturnType(); in desugarForDiagnostic()
86 QualType RT = desugarForDiagnostic(Context, SugarRT, DesugarReturn); in desugarForDiagnostic()
93 SmallVector<QualType, 4> Args; in desugarForDiagnostic()
96 for (QualType SugarPT : FPT->param_types()) { in desugarForDiagnostic()
97 QualType PT = desugarForDiagnostic(Context, SugarPT, DesugarArgument); in desugarForDiagnostic()
140 QualType ElementTy = in desugarForDiagnostic()
163 if (QualType(Ty,0) == Context.getObjCIdType() || in desugarForDiagnostic()
164 QualType(Ty,0) == Context.getObjCClassType() || in desugarForDiagnostic()
165 QualType(Ty,0) == Context.getObjCSelType() || in desugarForDiagnostic()
[all …]
/freebsd/contrib/llvm-project/clang/include/clang/Sema/
H A DInitialization.h144 QualType Type;
224 InitializedEntity(EntityKind Kind, SourceLocation Loc, QualType Type,
245 InitializedEntity(IdentifierInfo *VarID, QualType FieldType, SourceLocation Loc) in InitializedEntity()
267 InitializeParameter(ASTContext &Context, ParmVarDecl *Parm, QualType Type) { in InitializeParameter()
283 QualType Type, in InitializeParameter()
295 InitializeTemplateParameter(QualType T, NonTypeTemplateParmDecl *Param) { in InitializeTemplateParameter()
306 QualType Type) { in InitializeResult()
311 QualType Type) { in InitializeStmtExprResult()
316 QualType Type) { in InitializeBlock()
321 QualType Type) { in InitializeLambdaToBlock()
[all …]
H A DSema.h172 class QualType; variable
320 void enterDesignatedInitializer(SourceLocation Tok, QualType BaseType,
332 llvm::function_ref<QualType()> ComputeType);
341 void enterTypeCast(SourceLocation Tok, QualType CastType);
349 QualType get(SourceLocation Tok) const { in get()
351 return QualType(); in get()
356 return QualType(); in get()
364 QualType Type;
367 llvm::function_ref<QualType()> ComputeType;
508 bool shouldDiagnoseConversion(QualType SrcType,
[all …]
H A DOverload.h381 void setFromType(QualType T) { FromTypePtr = T.getAsOpaquePtr(); } in setFromType()
383 void setToType(unsigned Idx, QualType T) { in setToType()
388 void setAllToTypes(QualType T) { in setAllToTypes()
394 QualType getFromType() const { in getFromType()
395 return QualType::getFromOpaquePtr(FromTypePtr); in getFromType()
398 QualType getToType(unsigned Idx) const { in getToType()
400 return QualType::getFromOpaquePtr(ToTypePtrs[Idx]); in getToType()
413 APValue &ConstantValue, QualType &ConstantType,
475 QualType getFromType() const { in getFromType()
476 return QualType::getFromOpaquePtr(FromTypePtr); in getFromType()
[all …]
H A DSemaObjC.h96 QualType BuildObjCTypeParamType(const ObjCTypeParamDecl *Decl,
104 QualType BuildObjCObjectType(
105 QualType BaseType, SourceLocation Loc, SourceLocation TypeArgsLAngleLoc,
144 bool isObjCWritebackConversion(QualType FromType, QualType ToType,
145 QualType &ConvertedType);
168 bool isSignedCharBool(QualType Ty);
175 void checkDictionaryLiteral(QualType TargetType,
180 void checkArrayLiteral(QualType TargetType, ObjCArrayLiteral *ArrayLiteral);
381 bool checkInitMethod(ObjCMethodDecl *method, QualType receiverTypeIfCall);
485 SelectorsForTypoCorrection(Selector Sel, QualType ObjectType = QualType());
[all …]
/freebsd/contrib/llvm-project/clang/lib/CodeGen/
H A DABIInfoImpl.h27 ABIArgInfo classifyReturnType(QualType RetTy) const;
28 ABIArgInfo classifyArgumentType(QualType RetTy) const;
32 RValue EmitVAArg(CodeGenFunction &CGF, Address VAListAddr, QualType Ty,
50 ABIArgInfo coerceToIntArray(QualType Ty, ASTContext &Context,
57 bool isAggregateTypeForABI(QualType T);
63 CGCXXABI::RecordArgABI getRecordArgABI(QualType T, CGCXXABI &CXXABI);
70 QualType useFirstFieldIfTransparentUnion(QualType Ty);
116 QualType ValueTy, bool IsIndirect,
137 bool isEmptyRecord(ASTContext &Context, QualType T, bool AllowArrays,
148 bool isEmptyRecordForLayout(const ASTContext &Context, QualType T);
[all …]
H A DConstantEmitter.h77 QualType destType);
79 QualType destType);
105 llvm::Constant *emitAbstract(const Expr *E, QualType T);
107 emitAbstract(SourceLocation loc, const APValue &value, QualType T,
111 llvm::Constant *tryEmitAbstract(const Expr *E, QualType T);
112 llvm::Constant *tryEmitAbstractForMemory(const Expr *E, QualType T);
114 llvm::Constant *tryEmitAbstract(const APValue &value, QualType T);
115 llvm::Constant *tryEmitAbstractForMemory(const APValue &value, QualType T);
122 llvm::Constant *emitNullForMemory(QualType T) { in emitNullForMemory()
125 llvm::Constant *emitForMemory(llvm::Constant *C, QualType T) { in emitForMemory()
[all …]
H A DCGNonTrivialStruct.cpp25 static uint64_t getFieldSize(const FieldDecl *FD, QualType FT, in getFieldSize()
40 void visitStructFields(QualType QT, CharUnits CurStructOffset, Ts... Args) { in visitStructFields()
45 QualType FT = FD->getType(); in visitStructFields()
86 void preVisit(QualType::PrimitiveCopyKind PCK, QualType FT, in preVisit()
93 void visitWithKind(QualType::PrimitiveCopyKind PCK, QualType FT, in visitWithKind()
107 void visitTrivial(QualType FT, const FieldDecl *FD, CharUnits CurStructOffset, in visitTrivial()
159 void visitARCStrong(QualType FT, const FieldDecl *FD, in visitARCStrong()
168 void visitARCWeak(QualType FT, const FieldDecl *FD, in visitARCWeak()
175 void visitStruct(QualType QT, const FieldDecl *FD, in visitStruct()
188 return asDerived().visitTrivial(QualType(AT, 0), FD, CurStructOffset); in visitArray()
[all …]
H A DCodeGenTypes.h37 class QualType; variable
93 llvm::Type *ConvertFunctionTypeInternal(QualType FT);
117 llvm::Type *ConvertType(QualType T);
123 llvm::Type *ConvertTypeForMem(QualType T);
131 bool typeRequiresSplitIntoByteArray(QualType ASTTy,
146 llvm::Type *convertTypeForLoadStore(QualType T, llvm::Type *LLVMTy = nullptr);
157 bool isFuncParamTypeConvertible(QualType Ty);
224 arrangeBuiltinFunctionDeclaration(QualType resultType,
229 const CGFunctionInfo &arrangeBuiltinFunctionCall(QualType resultType,
235 QualType receiverType);
[all …]
H A DCGCXXABI.h67 llvm::Constant *GetBogusMemberPointer(QualType T);
95 virtual bool requiresArrayCookie(const CXXDeleteExpr *E, QualType eltType);
228 virtual llvm::Constant *EmitMemberPointer(const APValue &MP, QualType MPT);
255 Address Ptr, QualType ElementType,
259 virtual llvm::GlobalVariable *getThrowInfo(QualType T) { return nullptr; } in getThrowInfo()
272 virtual llvm::Constant *getAddrOfRTTIDescriptor(QualType Ty) = 0;
274 getAddrOfCXXCatchHandlerType(QualType Ty, QualType CatchHandlerType) = 0;
277 virtual bool shouldTypeidBeNullChecked(QualType SrcRecordTy) = 0;
279 virtual llvm::Value *EmitTypeid(CodeGenFunction &CGF, QualType SrcRecordTy,
284 QualType SrcRecordTy) = 0;
[all …]
/freebsd/contrib/llvm-project/clang/include/clang/StaticAnalyzer/Core/PathSensitive/
H A DSValBuilder.h73 const QualType ArrayIndexTy;
84 SVal evalCast(SVal V, QualType CastTy, QualType OriginalTy);
87 SVal evalIntegralCast(ProgramStateRef state, SVal val, QualType castTy,
88 QualType originalType);
96 NonLoc lhs, NonLoc rhs, QualType resultTy) = 0;
101 Loc lhs, Loc rhs, QualType resultTy) = 0;
107 Loc lhs, NonLoc rhs, QualType resultTy) = 0;
132 NonLoc lhs, NonLoc rhs, QualType resultTy);
135 SVal operand, QualType type);
138 SVal lhs, SVal rhs, QualType type);
[all …]
H A DSymbolManager.h69 QualType getType() const override;
81 QualType T;
88 QualType t, unsigned count, const void *symbolTag) in SymbolConjured()
106 QualType getType() const override;
113 QualType T, unsigned Count, const LocationContext *LCtx, in Profile()
152 QualType getType() const override;
191 QualType getType() const override;
219 QualType T;
225 SymbolMetadata(SymbolID sym, const MemRegion* r, const Stmt *s, QualType t, in SymbolMetadata()
250 QualType getType() const override;
[all …]
/freebsd/contrib/llvm-project/lldb/source/Plugins/LanguageRuntime/ObjC/AppleObjCRuntime/
H A DAppleObjCTypeEncodingParser.cpp66 : type(clang::QualType()) {} in StructElement()
83 clang::QualType AppleObjCTypeEncodingParser::BuildStruct( in BuildStruct()
89 clang::QualType AppleObjCTypeEncodingParser::BuildUnion( in BuildUnion()
95 clang::QualType AppleObjCTypeEncodingParser::BuildAggregate( in BuildAggregate()
99 return clang::QualType(); in BuildAggregate()
109 return clang::QualType(); in BuildAggregate()
125 return clang::QualType(); in BuildAggregate()
128 return clang::QualType(); // This is where we bail out. Sorry! in BuildAggregate()
153 clang::QualType AppleObjCTypeEncodingParser::BuildArray( in BuildArray()
156 return clang::QualType(); in BuildArray()
[all …]
/freebsd/contrib/llvm-project/clang/include/clang/Analysis/FlowSensitive/
H A DDataflowAnalysisContext.h97 std::function<llvm::StringMap<QualType>(QualType)> CB) { in setSyntheticFieldCallback()
105 StorageLocation &createStorageLocation(QualType Type);
117 QualType Type, RecordStorageLocation::FieldToLoc FieldLocs,
129 PointerValue &getOrCreateNullPointerValue(QualType PointeeType);
190 FieldSet getModeledFields(QualType Type);
194 llvm::StringMap<QualType> getSyntheticFields(QualType Type) { in getSyntheticFields()
197 llvm::StringMap<QualType> Result = SyntheticFieldCallback(Type); in getSyntheticFields()
213 struct NullableQualTypeDenseMapInfo : private llvm::DenseMapInfo<QualType> {
214 static QualType getEmptyKey() { in getEmptyKey()
216 return QualType::getFromOpaquePtr(reinterpret_cast<Type *>(1)); in getEmptyKey()
[all …]
/freebsd/contrib/llvm-project/lldb/source/Plugins/SymbolFile/NativePDB/
H A DPdbAstBuilder.h26 class QualType; variable
75 clang::QualType GetBasicType(lldb::BasicType type);
76 clang::QualType GetOrCreateType(PdbTypeSymId type);
79 bool CompleteType(clang::QualType qt);
82 CompilerType ToCompilerType(clang::QualType qt);
97 clang::QualType
99 clang::QualType
101 clang::QualType CreateArrayType(const llvm::codeview::ArrayRecord &array);
102 clang::QualType CreateRecordType(PdbTypeSymId id,
104 clang::QualType CreateEnumType(PdbTypeSymId id,
[all …]
/freebsd/contrib/llvm-project/clang/lib/Sema/
H A DSemaType.cpp82 QualType type) { in diagnoseBadTypeAttribute()
273 void diagnoseIgnoredTypeAttrs(QualType type) const { in diagnoseIgnoredTypeAttrs()
280 QualType getAttributedType(Attr *A, QualType ModifiedType, in getAttributedType()
281 QualType EquivType) { in getAttributedType()
282 QualType T = in getAttributedType()
290 QualType getBTFTagAttributedType(const BTFTypeTagAttr *BTFAttr, in getBTFTagAttributedType()
291 QualType WrappedType) { in getBTFTagAttributedType()
298 QualType ReplaceAutoType(QualType TypeWithAuto, QualType Replacement) { in ReplaceAutoType()
299 QualType T = sema.ReplaceAutoType(TypeWithAuto, Replacement); in ReplaceAutoType()
386 processTypeAttrs(TypeProcessingState &state, QualType &type,
[all …]
H A DSemaPPC.cpp42 QualType ArgType = Arg->getType(); in checkAIXMemberAlignment()
211 QualType ArgType = TheCall->getArg(0)->getType(); in CheckPPCBuiltinFunctionCall()
212 if (ArgType != QualType(Context.FloatTy) && in CheckPPCBuiltinFunctionCall()
213 ArgType != QualType(Context.DoubleTy) && in CheckPPCBuiltinFunctionCall()
214 ArgType != QualType(Context.Float128Ty)) in CheckPPCBuiltinFunctionCall()
229 << "builtin" << true << 128 << QualType(Context.LongDoubleTy) in CheckPPCBuiltinFunctionCall()
232 QualType ArgType = QualType(Context.LongDoubleTy); in CheckPPCBuiltinFunctionCall()
235 ArgType = QualType(Context.DoubleTy); in CheckPPCBuiltinFunctionCall()
238 ArgType = QualType(Context.FloatTy); in CheckPPCBuiltinFunctionCall()
256 bool SemaPPC::CheckPPCMMAType(QualType Type, SourceLocation TypeLoc) { in CheckPPCMMAType()
[all …]
/freebsd/contrib/llvm-project/lldb/source/Plugins/ExpressionParser/Clang/
H A DClangUtil.cpp36 QualType ClangUtil::GetQualType(const CompilerType &ct) { in GetQualType()
39 return QualType(); in GetQualType()
41 return QualType::getFromOpaquePtr(ct.GetOpaqueQualType()); in GetQualType()
44 QualType ClangUtil::GetCanonicalQualType(const CompilerType &ct) { in GetCanonicalQualType()
46 return QualType(); in GetCanonicalQualType()
55 QualType qual_type(GetQualType(ct)); in RemoveFastQualifiers()
61 clang::QualType qual_type = ClangUtil::GetCanonicalQualType(type); in GetAsTagDecl()
82 return clang::QualType(t, 0).getAsString(); in ToString()

12345678910>>...19