Home
last modified time | relevance | path

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

12345678910>>...18

/openbsd-src/gnu/llvm/clang/include/clang/AST/
H A DASTContext.h365 QualType ObjCIdRedefinitionType;
366 QualType ObjCClassRedefinitionType;
367 QualType ObjCSelRedefinitionType;
384 QualType ObjCConstantStringType;
388 mutable QualType ObjCSuperType;
390 QualType ObjCNSStringType;
750 QualType getIntTypeForBitwidth(unsigned DestWidth,
756 QualType getRealTypeForBitwidth(unsigned DestWidth,
1131 mutable QualType AutoDeductTy; // Deduction against 'auto'.
1132 mutable QualType AutoRRefDeductTy; // Deduction against 'auto &&'.
[all …]
H A DType.h61 class QualType; variable
736 class QualType {
759 QualType() = default;
760 QualType(const Type *Ptr, unsigned Quals) : Value(Ptr, Quals) {}
761 QualType(const ExtQuals *Ptr, unsigned Quals) : Value(Ptr, Quals) {}
785 static QualType getFromOpaquePtr(const void *Ptr) {
786 QualType T;
877 return QualType::isConstant(*this, Ctx);
915 QualType withConst() const {
923 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) {
H A DTypeProperties.td13 def : Property<"elementType", QualType> {
21 def : Property<"pointeeType", QualType> {
29 def : Property<"originalType", QualType> {
32 def : Property<"adjustedType", QualType> {
50 def : Property<"pointeeType", QualType> {
58 def : Property<"pointeeTypeAsWritten", QualType> {
81 def : Property<"pointeeType", QualType> {
84 def : Property<"baseType", QualType> {
85 let Read = [{ QualType(node->getClass(), 0) }];
94 def : Property<"elementType", QualType> {
[all …]
/openbsd-src/gnu/llvm/clang/lib/AST/
H A DType.cpp73 const IdentifierInfo* QualType::getBaseTypeIdentifier() const { in getBaseTypeIdentifier()
93 bool QualType::mayBeDynamicClass() const { in mayBeDynamicClass()
98 bool QualType::mayBeNotDynamicClass() const { in mayBeNotDynamicClass()
103 bool QualType::isConstant(QualType T, const ASTContext &Ctx) { in isConstant()
118 ArrayType::ArrayType(TypeClass tc, QualType et, QualType can, in ArrayType()
142 QualType ElementType, in getNumAddressingBits()
189 const ASTContext &Context, QualType ET, in Profile()
203 QualType et, QualType can, in DependentSizedArrayType()
212 QualType ET, in Profile()
223 QualType ElementType, in DependentVectorType()
[all …]
H A DASTContext.cpp600 QualType QT = TD->getUnderlyingType(); in getCommentForDecl()
625 QualType Ty = I.getType(); in getCommentForDecl()
640 QualType Ty = I.getType(); in getCommentForDecl()
707 QualType T = NTTP->getExpansionType(I); in Profile()
727 QualType ConstrainedType) { in canonicalizeImmediatelyDeclaredConstraint()
808 QualType ParamAsArgument(NewTTP->getTypeForDecl(), 0); in getCanonicalTemplateTemplateParmDecl()
822 QualType T = getCanonicalType(NTTP->getType()); in getCanonicalTemplateTemplateParmDecl()
826 SmallVector<QualType, 2> ExpandedTypes; in getCanonicalTemplateTemplateParmDecl()
1225 TypedefDecl *ASTContext::buildImplicitTypedef(QualType T, in buildImplicitTypedef()
1249 R = CanQualType::CreateUnsafe(QualType(Ty, 0)); in InitBuiltinType()
[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.cpp29 QualType clang::desugarForDiagnostic(ASTContext &Context, QualType QT, in desugarForDiagnostic()
84 QualType SugarRT = FT->getReturnType(); in desugarForDiagnostic()
85 QualType RT = desugarForDiagnostic(Context, SugarRT, DesugarReturn); in desugarForDiagnostic()
92 SmallVector<QualType, 4> Args; in desugarForDiagnostic()
95 for (QualType SugarPT : FPT->param_types()) { in desugarForDiagnostic()
96 QualType PT = desugarForDiagnostic(Context, SugarPT, DesugarArgument); in desugarForDiagnostic()
139 QualType ElementTy = in desugarForDiagnostic()
162 if (QualType(Ty,0) == Context.getObjCIdType() || in desugarForDiagnostic()
163 QualType(Ty,0) == Context.getObjCClassType() || in desugarForDiagnostic()
164 QualType(Ty,0) == Context.getObjCSelType() || in desugarForDiagnostic()
[all …]
/openbsd-src/gnu/llvm/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 DOverload.h332 void setFromType(QualType T) { FromTypePtr = T.getAsOpaquePtr(); } in setFromType()
334 void setToType(unsigned Idx, QualType T) { in setToType()
339 void setAllToTypes(QualType T) { in setAllToTypes()
345 QualType getFromType() const { in getFromType()
346 return QualType::getFromOpaquePtr(FromTypePtr); in getFromType()
349 QualType getToType(unsigned Idx) const { in getToType()
351 return QualType::getFromOpaquePtr(ToTypePtrs[Idx]); in getToType()
363 APValue &ConstantValue, QualType &ConstantType,
425 QualType getFromType() const { in getFromType()
426 return QualType::getFromOpaquePtr(FromTypePtr); in getFromType()
[all …]
H A DSema.h182 class QualType; variable
305 void enterDesignatedInitializer(SourceLocation Tok, QualType BaseType,
317 llvm::function_ref<QualType()> ComputeType);
326 void enterTypeCast(SourceLocation Tok, QualType CastType);
334 QualType get(SourceLocation Tok) const { in get()
336 return QualType(); in get()
341 return QualType(); in get()
349 QualType Type;
352 llvm::function_ref<QualType()> ComputeType;
384 QualType ResultTy,
[all …]
/openbsd-src/gnu/llvm/clang/tools/libclang/
H A DCXType.cpp86 static CXTypeKind GetTypeKind(QualType T) { in GetTypeKind()
129 CXType cxtype::MakeCXType(QualType T, CXTranslationUnit TU) { in MakeCXType()
152 QualType UnqualT = T.getUnqualifiedType(); in MakeCXType()
176 static inline QualType GetQualType(CXType CT) { in GetQualType()
177 return QualType::getFromOpaquePtr(CT.data[0]); in GetQualType()
185 GetTemplateArguments(QualType Type) { in GetTemplateArguments()
200 static std::optional<QualType>
207 static std::optional<QualType>
229 return MakeCXType(QualType(), TU); in clang_getCursorType()
233 QualType T = cxcursor::getCursorExpr(C)->getType(); in clang_getCursorType()
[all …]
/openbsd-src/gnu/llvm/lldb/source/Plugins/LanguageRuntime/ObjC/AppleObjCRuntime/
H A DAppleObjCTypeEncodingParser.cpp64 : type(clang::QualType()) {} in StructElement()
81 clang::QualType AppleObjCTypeEncodingParser::BuildStruct( in BuildStruct()
87 clang::QualType AppleObjCTypeEncodingParser::BuildUnion( in BuildUnion()
93 clang::QualType AppleObjCTypeEncodingParser::BuildAggregate( in BuildAggregate()
97 return clang::QualType(); in BuildAggregate()
107 return clang::QualType(); in BuildAggregate()
123 return clang::QualType(); in BuildAggregate()
126 return clang::QualType(); // This is where we bail out. Sorry! in BuildAggregate()
151 clang::QualType AppleObjCTypeEncodingParser::BuildArray( in BuildArray()
154 return clang::QualType(); in BuildArray()
[all …]
/openbsd-src/gnu/llvm/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;
120 NonLoc lhs, NonLoc rhs, QualType resultTy);
123 SVal operand, QualType type);
126 SVal lhs, SVal rhs, QualType type);
[all …]
H A DSymbolManager.h68 QualType getType() const override;
80 QualType T;
87 QualType t, unsigned count, const void *symbolTag) in SymbolConjured()
105 QualType getType() const override;
112 QualType T, unsigned Count, const LocationContext *LCtx, in Profile()
151 QualType getType() const override;
190 QualType getType() const override;
218 QualType T;
224 SymbolMetadata(SymbolID sym, const MemRegion* r, const Stmt *s, QualType t, in SymbolMetadata()
249 QualType getType() const override;
[all …]
H A DDynamicCastInfo.h21 DynamicCastInfo(QualType from, QualType to, CastResult resultKind) in DynamicCastInfo()
24 QualType from() const { return From; } in from()
25 QualType to() const { return To; } in to()
27 bool equals(QualType from, QualType to) const { in equals()
48 QualType From, To;
/openbsd-src/gnu/llvm/clang/lib/CodeGen/
H A DConstantEmitter.h77 QualType destType);
79 QualType destType);
105 llvm::Constant *emitAbstract(const Expr *E, QualType T);
107 QualType T);
110 llvm::Constant *tryEmitAbstract(const Expr *E, QualType T);
111 llvm::Constant *tryEmitAbstractForMemory(const Expr *E, QualType T);
113 llvm::Constant *tryEmitAbstract(const APValue &value, QualType T);
114 llvm::Constant *tryEmitAbstractForMemory(const APValue &value, QualType T);
118 llvm::Constant *emitNullForMemory(QualType T) { in emitNullForMemory()
121 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 …]
/openbsd-src/gnu/llvm/clang/lib/Sema/
H A DTypeLocBuilder.h37 QualType LastTy;
69 void pushTrivial(ASTContext &Context, QualType T, SourceLocation Loc);
73 TypeSpecTypeLoc pushTypeSpec(QualType T) { in pushTypeSpec()
82 LastTy = QualType(); in clear()
91 void TypeWasModifiedSafely(QualType T) { in TypeWasModifiedSafely()
99 template <class TyLocType> TyLocType push(QualType T) { in push()
107 TypeSourceInfo *getTypeSourceInfo(ASTContext& Context, QualType T) { in getTypeSourceInfo()
120 TypeLoc getTypeLocInContext(ASTContext &Context, QualType T) { in getTypeLocInContext()
133 TypeLoc pushImpl(QualType T, size_t LocalSize, unsigned LocalAlignment);
144 TypeLoc getTemporaryTypeLoc(QualType T) { in getTemporaryTypeLoc()
H A DSemaType.cpp74 QualType type) { in diagnoseBadTypeAttribute()
250 void diagnoseIgnoredTypeAttrs(QualType type) const { in diagnoseIgnoredTypeAttrs()
257 QualType getAttributedType(Attr *A, QualType ModifiedType, in getAttributedType()
258 QualType EquivType) { in getAttributedType()
259 QualType T = in getAttributedType()
267 QualType getBTFTagAttributedType(const BTFTypeTagAttr *BTFAttr, in getBTFTagAttributedType()
268 QualType WrappedType) { in getBTFTagAttributedType()
275 QualType ReplaceAutoType(QualType TypeWithAuto, QualType Replacement) { in ReplaceAutoType()
276 QualType T = sema.ReplaceAutoType(TypeWithAuto, Replacement); in ReplaceAutoType()
362 static void processTypeAttrs(TypeProcessingState &state, QualType &type,
[all …]
/openbsd-src/gnu/llvm/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 …]
/openbsd-src/gnu/llvm/clang/lib/StaticAnalyzer/Checkers/
H A DDynamicTypeChecker.cpp59 void reportTypeError(QualType DynamicType, QualType StaticType,
68 void DynamicTypeChecker::reportTypeError(QualType DynamicType, in reportTypeError()
69 QualType StaticType, in reportTypeError()
77 QualType::print(DynamicType.getTypePtr(), Qualifiers(), OS, C.getLangOpts(), in reportTypeError()
80 QualType::print(StaticType.getTypePtr(), Qualifiers(), OS, C.getLangOpts(), in reportTypeError()
115 QualType::print(TrackedType.getType().getTypePtr(), Qualifiers(), OS, in VisitNode()
121 QualType::print(ExplicitCast->getSubExpr()->getType().getTypePtr(), in VisitNode()
124 QualType::print(ExplicitCast->getType().getTypePtr(), Qualifiers(), OS, in VisitNode()
129 QualType::print(ImplicitCast->getSubExpr()->getType().getTypePtr(), in VisitNode()
132 QualType::print(ImplicitCast->getType().getTypePtr(), Qualifiers(), OS, in VisitNode()
[all …]
/openbsd-src/gnu/llvm/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()
/openbsd-src/gnu/llvm/clang/lib/StaticAnalyzer/Core/
H A DSVals.cpp132 : public FullSValVisitor<TypeRetrievingVisitor, QualType> {
139 QualType VisitLocMemRegionVal(loc::MemRegionVal MRV) { in VisitLocMemRegionVal()
142 QualType VisitLocGotoLabel(loc::GotoLabel GL) { in VisitLocGotoLabel()
143 return QualType{Context.VoidPtrTy}; in VisitLocGotoLabel()
145 template <class ConcreteInt> QualType VisitConcreteInt(ConcreteInt CI) { in VisitConcreteInt()
151 QualType VisitLocConcreteInt(loc::ConcreteInt CI) { in VisitLocConcreteInt()
154 QualType VisitNonLocConcreteInt(nonloc::ConcreteInt CI) { in VisitNonLocConcreteInt()
157 QualType VisitNonLocLocAsInteger(nonloc::LocAsInteger LI) { in VisitNonLocLocAsInteger()
158 QualType NestedType = Visit(LI.getLoc()); in VisitNonLocLocAsInteger()
165 QualType VisitNonLocCompoundVal(nonloc::CompoundVal CV) { in VisitNonLocCompoundVal()
[all …]

12345678910>>...18