| /freebsd/contrib/llvm-project/clang/include/clang/AST/ |
| H A D | ASTContext.h | 401 QualType ObjCIdRedefinitionType; 402 QualType ObjCClassRedefinitionType; 403 QualType ObjCSelRedefinitionType; 417 QualType ObjCConstantStringType; 421 mutable QualType ObjCSuperType; 423 QualType ObjCNSStringType; 637 bool containsAddressDiscriminatedPointerAuth(QualType T) { in containsAddressDiscriminatedPointerAuth() 648 bool containsNonRelocatablePointerAuth(QualType T) { in containsNonRelocatablePointerAuth() 669 PointerAuthContent findPointerAuthContent(QualType T); 854 const QualType GetHigherPrecisionFPType(QualType ElementType) const { in GetHigherPrecisionFPType() [all …]
|
| H A D | NonTrivialTypeVisitor.h | 22 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 D | Type.h | 66 class QualType; variable 936 class QualType { 959 QualType() = default; 960 QualType(const Type *Ptr, unsigned Quals) : Value(Ptr, Quals) {} 961 QualType(const ExtQuals *Ptr, unsigned Quals) : Value(Ptr, Quals) {} 985 static QualType getFromOpaquePtr(const void *Ptr) { 986 QualType T; 1097 return QualType::isConstant(*this, Ctx); 1158 QualType withConst() const { 1166 QualType withVolatile() const { [all …]
|
| H A D | TypeOrdering.h | 29 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 D | Type.cpp | 109 const IdentifierInfo *QualType::getBaseTypeIdentifier() const { in getBaseTypeIdentifier() 130 bool QualType::mayBeDynamicClass() const { in mayBeDynamicClass() 135 bool QualType::mayBeNotDynamicClass() const { in mayBeNotDynamicClass() 140 bool QualType::isConstant(QualType T, const ASTContext &Ctx) { in isConstant() 150 std::optional<QualType::NonConstantStorageReason> 151 QualType::isNonConstantStorage(const ASTContext &Ctx, bool ExcludeCtor, in isNonConstantStorage() 174 ArrayType::ArrayType(TypeClass tc, QualType et, QualType can, in ArrayType() 198 ConstantArrayType::Create(const ASTContext &Ctx, QualType ET, QualType Can, in Create() 215 QualType ElementType, in getNumAddressingBits() 267 const ASTContext &Context, QualType ET, in Profile() [all …]
|
| H A D | ASTContext.cpp | 654 QualType QT = TD->getUnderlyingType(); in getCommentForDecl() 679 QualType Ty = I.getType(); in getCommentForDecl() 694 QualType Ty = I.getType(); in getCommentForDecl() 750 QualType T = NTTP->getExpansionType(I); in Profile() 793 QualType T = getUnconstrainedType(getCanonicalType(NTTP->getType())); in getCanonicalTemplateTemplateParmDecl() 797 SmallVector<QualType, 2> ExpandedTypes; in getCanonicalTemplateTemplateParmDecl() 876 const QualType &Ty) const { in isTypeIgnoredBySanitizer() 1246 TypedefDecl *ASTContext::buildImplicitTypedef(QualType T, in buildImplicitTypedef() 1270 R = CanQualType::CreateUnsafe(QualType(Ty, 0)); in InitBuiltinType() 1489 ObjCConstantStringType = QualType(); in InitBuiltinTypes() [all …]
|
| H A D | InheritViz.cpp | 36 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() 95 QualType CanonBaseType = Context.getCanonicalType(Base.getType()); in WriteNode() 123 InheritanceHierarchyWriter::WriteNodeReference(QualType Type, in WriteNodeReference() 125 QualType CanonType = Context.getCanonicalType(Type); in WriteNodeReference() [all …]
|
| /freebsd/contrib/llvm-project/clang/include/clang/Sema/ |
| H A D | Initialization.h | 144 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 D | SemaHLSL.h | 59 Sema &S, QualType Wrapped, ArrayRef<const Attr *> AttrList, 60 QualType &ResType, HLSLAttributedResourceLocInfo *LocInfo = nullptr); 138 QualType handleVectorBinOpConversion(ExprResult &LHS, ExprResult &RHS, 139 QualType LHSType, QualType RHSType, 172 bool handleResourceTypeAttr(QualType T, const ParsedAttr &AL); 177 QualType ProcessResourceTypeAttributes(QualType Wrapped); 182 bool IsScalarizedLayoutCompatible(QualType T1, QualType T2) const; 183 bool IsTypedResourceElementCompatible(QualType T1); 188 bool diagnoseInputIDType(QualType T, const ParsedAttr &AL); 189 bool diagnosePositionType(QualType T, const ParsedAttr &AL); [all …]
|
| H A D | Sema.h | 296 void enterDesignatedInitializer(SourceLocation Tok, QualType BaseType, 308 llvm::function_ref<QualType()> ComputeType); 317 void enterTypeCast(SourceLocation Tok, QualType CastType); 325 QualType get(SourceLocation Tok) const { in get() 327 return QualType(); in get() 332 return QualType(); in get() 341 QualType Type; 344 llvm::function_ref<QualType()> ComputeType; 962 void addImplicitTypedef(StringRef Name, QualType T); 1057 QualType BlockType = QualType()); [all …]
|
| H A D | Overload.h | 388 void setFromType(QualType T) { FromTypePtr = T.getAsOpaquePtr(); } in setFromType() 390 void setToType(unsigned Idx, QualType T) { in setToType() 395 void setAllToTypes(QualType T) { in setAllToTypes() 401 QualType getFromType() const { in getFromType() 402 return QualType::getFromOpaquePtr(FromTypePtr); in getFromType() 405 QualType getToType(unsigned Idx) const { in getToType() 407 return QualType::getFromOpaquePtr(ToTypePtrs[Idx]); in getToType() 432 auto Decay = [&](QualType T) { in isPerfect() 461 APValue &ConstantValue, QualType &ConstantType, 523 QualType getFromType() const { in getFromType() [all …]
|
| H A D | SemaObjC.h | 98 QualType BuildObjCTypeParamType(const ObjCTypeParamDecl *Decl, 106 QualType BuildObjCObjectType( 107 QualType BaseType, SourceLocation Loc, SourceLocation TypeArgsLAngleLoc, 146 bool isObjCWritebackConversion(QualType FromType, QualType ToType, 147 QualType &ConvertedType); 170 bool isSignedCharBool(QualType Ty); 177 void checkDictionaryLiteral(QualType TargetType, 182 void checkArrayLiteral(QualType TargetType, ObjCArrayLiteral *ArrayLiteral); 373 bool checkInitMethod(ObjCMethodDecl *method, QualType receiverTypeIfCall); 477 SelectorsForTypoCorrection(Selector Sel, QualType ObjectType = QualType()); [all …]
|
| /freebsd/contrib/llvm-project/clang/include/clang/StaticAnalyzer/Core/PathSensitive/ |
| H A D | SValBuilder.h | 74 const QualType ArrayIndexTy; 85 SVal evalCast(SVal V, QualType CastTy, QualType OriginalTy); 88 SVal evalIntegralCast(ProgramStateRef state, SVal val, QualType castTy, 89 QualType originalType); 97 NonLoc lhs, NonLoc rhs, QualType resultTy) = 0; 102 Loc lhs, Loc rhs, QualType resultTy) = 0; 108 Loc lhs, NonLoc rhs, QualType resultTy) = 0; 133 NonLoc lhs, NonLoc rhs, QualType resultTy); 136 SVal operand, QualType type); 139 SVal lhs, SVal rhs, QualType type); [all …]
|
| /freebsd/contrib/llvm-project/clang/lib/CodeGen/ |
| H A D | ABIInfoImpl.h | 27 ABIArgInfo classifyReturnType(QualType RetTy) const; 28 ABIArgInfo classifyArgumentType(QualType RetTy) const; 32 RValue EmitVAArg(CodeGenFunction &CGF, Address VAListAddr, QualType Ty, 40 bool isAggregateTypeForABI(QualType T); 46 CGCXXABI::RecordArgABI getRecordArgABI(QualType T, CGCXXABI &CXXABI); 53 QualType useFirstFieldIfTransparentUnion(QualType Ty); 99 QualType ValueTy, bool IsIndirect, 120 bool isEmptyRecord(ASTContext &Context, QualType T, bool AllowArrays, 131 bool isEmptyRecordForLayout(const ASTContext &Context, QualType T); 141 const Type *isSingleElementStruct(QualType T, ASTContext &Context); [all …]
|
| H A D | ConstantEmitter.h | 77 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 D | CodeGenTypes.h | 37 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, 236 arrangeSYCLKernelCallerDeclaration(QualType resultType, [all …]
|
| H A D | CGNonTrivialStruct.cpp | 26 static uint64_t getFieldSize(const FieldDecl *FD, QualType FT, in getFieldSize() 41 void visitStructFields(QualType QT, CharUnits CurStructOffset, Ts... Args) { in visitStructFields() 46 QualType FT = FD->getType(); in visitStructFields() 87 void preVisit(QualType::PrimitiveCopyKind PCK, QualType FT, in preVisit() 94 void visitWithKind(QualType::PrimitiveCopyKind PCK, QualType FT, in visitWithKind() 108 void visitTrivial(QualType FT, const FieldDecl *FD, CharUnits CurStructOffset, in visitTrivial() 160 void visitARCStrong(QualType FT, const FieldDecl *FD, in visitARCStrong() 169 void visitARCWeak(QualType FT, const FieldDecl *FD, in visitARCWeak() 176 void visitStruct(QualType QT, const FieldDecl *FD, in visitStruct() 189 return asDerived().visitTrivial(QualType(AT, 0), FD, CurStructOffset); in visitArray() [all …]
|
| /freebsd/contrib/llvm-project/clang/lib/Sema/ |
| H A D | HeuristicResolver.cpp | 47 QualType resolveNestedNameSpecifierToType(const NestedNameSpecifier *NNS); 48 QualType getPointeeType(QualType T); 52 TagDecl *resolveTypeToTagDecl(QualType T); 53 QualType simplifyType(QualType Type, const Expr *E, bool UnwrapPointer); 72 resolveDependentMember(QualType T, DeclarationName Name, 77 QualType resolveExprToType(const Expr *E); 100 QualType resolveDeclsToType(const std::vector<const NamedDecl *> &Decls, in resolveDeclsToType() 103 return QualType(); in resolveDeclsToType() 110 return QualType(); in resolveDeclsToType() 126 TagDecl *HeuristicResolverImpl::resolveTypeToTagDecl(QualType QT) { in resolveTypeToTagDecl() [all …]
|
| H A D | TypeLocBuilder.h | 37 QualType LastTy; 72 void pushTrivial(ASTContext &Context, QualType T, SourceLocation Loc); 76 TypeSpecTypeLoc pushTypeSpec(QualType T) { in pushTypeSpec() 85 LastTy = QualType(); in clear() 94 void TypeWasModifiedSafely(QualType T) { in TypeWasModifiedSafely() 102 template <class TyLocType> TyLocType push(QualType T) { in push() 110 TypeSourceInfo *getTypeSourceInfo(ASTContext& Context, QualType T) { in getTypeSourceInfo() 123 TypeLoc getTypeLocInContext(ASTContext &Context, QualType T) { in getTypeLocInContext() 136 TypeLoc pushImpl(QualType T, size_t LocalSize, unsigned LocalAlignment); 147 TypeLoc getTemporaryTypeLoc(QualType T) { in getTemporaryTypeLoc()
|
| /freebsd/contrib/llvm-project/lldb/source/Plugins/LanguageRuntime/ObjC/AppleObjCRuntime/ |
| H A D | AppleObjCTypeEncodingParser.cpp | 71 : type(clang::QualType()) {} in StructElement() 90 clang::QualType AppleObjCTypeEncodingParser::BuildStruct( in BuildStruct() 96 clang::QualType AppleObjCTypeEncodingParser::BuildUnion( in BuildUnion() 102 clang::QualType AppleObjCTypeEncodingParser::BuildAggregate( in BuildAggregate() 106 return clang::QualType(); in BuildAggregate() 116 return clang::QualType(); in BuildAggregate() 132 return clang::QualType(); in BuildAggregate() 135 return clang::QualType(); // This is where we bail out. Sorry! in BuildAggregate() 160 clang::QualType AppleObjCTypeEncodingParser::BuildArray( in BuildArray() 163 return clang::QualType(); in BuildArray() [all …]
|
| /freebsd/contrib/llvm-project/clang/include/clang/Analysis/FlowSensitive/ |
| H A D | DataflowAnalysisContext.h | 97 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/clang/lib/CIR/CodeGen/ |
| H A D | CIRGenExprConstant.cpp | 50 : public StmtVisitor<ConstExprEmitter, mlir::Attribute, QualType> { 62 mlir::Attribute VisitStmt(Stmt *S, QualType T) { return {}; } in VisitStmt() 64 mlir::Attribute VisitConstantExpr(ConstantExpr *ce, QualType t) { in VisitConstantExpr() 70 mlir::Attribute VisitParenExpr(ParenExpr *pe, QualType t) { in VisitParenExpr() 76 QualType t) { in VisitSubstNonTypeTemplateParmExpr() 81 QualType t) { in VisitGenericSelectionExpr() 85 mlir::Attribute VisitChooseExpr(ChooseExpr *ce, QualType t) { in VisitChooseExpr() 89 mlir::Attribute VisitCompoundLiteralExpr(CompoundLiteralExpr *e, QualType t) { in VisitCompoundLiteralExpr() 93 mlir::Attribute VisitCastExpr(CastExpr *e, QualType destType) { in VisitCastExpr() 191 mlir::Attribute VisitCXXDefaultInitExpr(CXXDefaultInitExpr *die, QualType t) { in VisitCXXDefaultInitExpr() [all …]
|
| /freebsd/contrib/llvm-project/clang/lib/StaticAnalyzer/Checkers/WebKit/ |
| H A D | PtrTypesSemantics.h | 24 class QualType; variable 67 std::optional<bool> isUncounted(const clang::QualType T); 71 std::optional<bool> isUnchecked(const clang::QualType T); 84 bool isUnretained(const QualType, bool ignoreARC = false); 91 std::optional<bool> isUnretained(const clang::QualType T, bool IsARCEnabled); 103 std::optional<bool> isUncountedPtr(const clang::QualType T); 107 std::optional<bool> isUncheckedPtr(const clang::QualType T); 111 std::optional<bool> isUnsafePtr(const QualType T, bool IsArcEnabled); 115 bool isRefOrCheckedPtrType(const clang::QualType T); 118 bool isRetainPtrType(const clang::QualType T); [all …]
|
| /freebsd/contrib/llvm-project/lldb/source/Plugins/SymbolFile/NativePDB/ |
| H A D | PdbAstBuilder.h | 26 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/StaticAnalyzer/Checkers/ |
| H A D | DynamicTypeChecker.cpp | 52 void reportTypeError(QualType DynamicType, QualType StaticType, 61 void DynamicTypeChecker::reportTypeError(QualType DynamicType, in reportTypeError() 62 QualType StaticType, in reportTypeError() 69 QualType::print(DynamicType.getTypePtr(), Qualifiers(), OS, C.getLangOpts(), in reportTypeError() 72 QualType::print(StaticType.getTypePtr(), Qualifiers(), OS, C.getLangOpts(), in reportTypeError() 107 QualType::print(TrackedType.getType().getTypePtr(), Qualifiers(), OS, in VisitNode() 113 QualType::print(ExplicitCast->getSubExpr()->getType().getTypePtr(), in VisitNode() 116 QualType::print(ExplicitCast->getType().getTypePtr(), Qualifiers(), OS, in VisitNode() 121 QualType::print(ImplicitCast->getSubExpr()->getType().getTypePtr(), in VisitNode() 124 QualType::print(ImplicitCast->getType().getTypePtr(), Qualifiers(), OS, in VisitNode() [all …]
|