Home
last modified time | relevance | path

Searched refs:QT (Results 1 – 25 of 101) sorted by relevance

12345

/llvm-project-15.0.7/clang/lib/AST/
H A DQualTypeNames.cpp388 QT = Ctx.getPointerType(QT); in getFullyQualifiedType()
390 QT = Ctx.getQualifiedType(QT, Quals); in getFullyQualifiedType()
403 QT = Ctx.getQualifiedType(QT, Quals); in getFullyQualifiedType()
417 QT = Ctx.getLValueReferenceType(QT); in getFullyQualifiedType()
419 QT = Ctx.getRValueReferenceType(QT); in getFullyQualifiedType()
421 QT = Ctx.getQualifiedType(QT, Quals); in getFullyQualifiedType()
443 QT = Ctx.getQualifiedType(QT, Quals); in getFullyQualifiedType()
451 QT = QualType(QT.getTypePtr(), 0); in getFullyQualifiedType()
476 QT = Ctx.getElaboratedType(Keyword, Prefix, QT); in getFullyQualifiedType()
478 QT = Ctx.getQualifiedType(QT, PrefixQualifiers); in getFullyQualifiedType()
[all …]
H A DPrintfFormatString.cpp691 if (QT->isObjCRetainableType()) { in fixType()
710 if (QT->isPointerType() && (QT->getPointeeType()->isAnyCharacterType())) { in fixType()
728 QT = ETy->getDecl()->getIntegerType(); in fixType()
734 QT = VT->getElementType(); in fixType()
735 BT = QT->getAs<BuiltinType>(); in fixType()
848 namedTypeToLengthModifier(QT, LM); in fixType()
856 if (QT->isSignedIntegerType()) in fixType()
877 if (!isa<TypedefType>(QT) && QT->isCharType()) { in fixType()
886 else if (QT->isRealFloatingType()) { in fixType()
889 else if (QT->isSignedIntegerType()) { in fixType()
[all …]
H A DASTDiagnostic.cpp34 const Type *Ty = QC.strip(QT); in desugarForDiagnostic()
38 QT = ET->desugar(); in desugarForDiagnostic()
43 QT = UT->desugar(); in desugarForDiagnostic()
48 QT = PT->desugar(); in desugarForDiagnostic()
53 QT = MDT->desugar(); in desugarForDiagnostic()
59 QT = ST->desugar(); in desugarForDiagnostic()
64 QT = AT->desugar(); in desugarForDiagnostic()
69 QT = AT->desugar(); in desugarForDiagnostic()
76 QT = AT->desugar(); in desugarForDiagnostic()
208 QT = Underlying; in desugarForDiagnostic()
[all …]
/llvm-project-15.0.7/clang/lib/CodeGen/
H A DCGNonTrivialStruct.cpp208 QT = IsVolatile ? QT.withVolatile() : QT; in getName()
689 Addrs[SrcIdx], QT.isVolatileQualified(), QT, SourceLocation()); in visitARCStrong()
751 Addrs[SrcIdx], QT.isVolatileQualified(), QT, SourceLocation()); in visitARCStrong()
823 QualType QT = Dst.getType(); in defaultInitNonTrivialCStructVar() local
824 QT = Dst.isVolatile() ? QT.withVolatile() : QT; in defaultInitNonTrivialCStructVar()
835 QT = IsVolatile ? QT.withVolatile() : QT; in callSpecialFunction()
843 QT = IsVolatile ? QT.withVolatile() : QT; in getSpecialFunction()
854 QualType QT = Dst.getType(); in callCStructDefaultConstructor() local
878 QualType QT = Dst.getType(); in callCStructDestructor() local
889 QualType QT = Dst.getType(); in callCStructCopyConstructor() local
[all …]
H A DCGObjCRuntime.cpp443 QualType QT = param->getType(); in destroyCalleeDestroyedArguments() local
444 auto *RT = QT->getAs<RecordType>(); in destroyCalleeDestroyedArguments()
447 QualType::DestructionKind DtorKind = QT.isDestructedType(); in destroyCalleeDestroyedArguments()
450 CGF.destroyCXXObject(CGF, RV.getAggregateAddress(), QT); in destroyCalleeDestroyedArguments()
453 CGF.destroyNonTrivialCStruct(CGF, RV.getAggregateAddress(), QT); in destroyCalleeDestroyedArguments()
/llvm-project-15.0.7/clang/lib/Sema/
H A DSemaRISCVVectorLookup.cpp73 QualType QT; in RVVType2Qual() local
76 QT = Context.VoidTy; in RVVType2Qual()
88 QT = Context.LongTy; in RVVType2Qual()
91 QT = Context.BoolTy; in RVVType2Qual()
102 QT = Context.DoubleTy; in RVVType2Qual()
105 QT = Context.FloatTy; in RVVType2Qual()
108 QT = Context.Float16Ty; in RVVType2Qual()
118 QT = Context.getScalableVectorType(QT, Type->getScale().getValue()); in RVVType2Qual()
121 QT = Context.getConstType(QT); in RVVType2Qual()
125 QT = Context.getPointerType(QT); in RVVType2Qual()
[all …]
/llvm-project-15.0.7/clang-tools-extra/clang-tidy/misc/
H A DMisplacedConstCheck.cpp34 static QualType guessAlternateQualification(ASTContext &Context, QualType QT) { in guessAlternateQualification() argument
38 if (!QT->isPointerType()) in guessAlternateQualification()
39 return QT; in guessAlternateQualification()
41 Qualifiers Quals = QT.getLocalQualifiers(); in guessAlternateQualification()
45 QualType(QT->getPointeeType().getTypePtr(), Qualifiers::Const)); in guessAlternateQualification()
/llvm-project-15.0.7/clang/include/clang/CodeGen/
H A DCodeGenABITypes.h133 QualType QT);
143 QualType QT);
153 QualType QT);
161 bool IsVolatile, QualType QT);
169 bool IsVolatile, QualType QT);
177 bool IsVolatile, QualType QT);
/llvm-project-15.0.7/libcxx/test/std/input.output/iostream.format/quoted.manip/
H A Dquoted_traits.compile.pass.cpp91 using QT = decltype(std::quoted(st)); in test_std_string() typedef
93 static_assert(!HasLeftShift<std::ostream&, QT>::value, ""); in test_std_string()
94 static_assert(!HasRightShift<std::istream&, QT>::value, ""); in test_std_string()
97 static_assert( HasLeftShift<std::basic_ostream<char, FakeCharTraits<char>>&, QT>::value, ""); in test_std_string()
98 static_assert( HasRightShift<std::basic_istream<char, FakeCharTraits<char>>&, QT>::value, ""); in test_std_string()
138 using QT = decltype(std::quoted(st)); in test_std_string_view() typedef
140 static_assert(!HasLeftShift<std::ostream&, QT>::value, ""); in test_std_string_view()
141 static_assert(!HasRightShift<std::istream&, QT>::value, ""); in test_std_string_view()
144 static_assert( HasLeftShift<std::basic_ostream<char, FakeCharTraits<char>>&, QT>::value, ""); in test_std_string_view()
145 static_assert(!HasRightShift<std::basic_istream<char, FakeCharTraits<char>>&, QT>::value, ""); in test_std_string_view()
/llvm-project-15.0.7/clang-tools-extra/clang-tidy/performance/
H A DMoveConstructorInitCheck.cpp45 QualType QT = Initializer->getInit()->getType(); in check() local
46 if (QT.isTriviallyCopyableType(*Result.Context)) in check()
49 if (QT.isConstQualified()) in check()
52 const auto *RD = QT->getAsCXXRecordDecl(); in check()
/llvm-project-15.0.7/clang/lib/Analysis/
H A DRetainSummaryManager.cpp86 !cocoa::isCocoaObjectRef(QT)) in hasAnyEnabledAttrOf()
171 static bool isOSObjectPtr(QualType QT) { in isOSObjectPtr() argument
229 QT = QT.getCanonicalType(); in isKnownSmartPointer()
230 const auto *RD = QT->getAsCXXRecordDecl(); in isKnownSmartPointer()
640 QualType QT = (*pi)->getType(); in updateSummaryForArgumentTypes() local
648 if (isISLObjectRef(QT)) { in updateSummaryForArgumentTypes()
650 } else if (isOSObjectPtr(QT)) { in updateSummaryForArgumentTypes()
893 static bool hasTypedefNamed(QualType QT, in hasTypedefNamed() argument
917 QualType QT = pd->getType(); in applyParamAnnotationEffect() local
943 bool ShouldSplit = !QT.isNull() && !QT->isVoidType(); in applyParamAnnotationEffect()
[all …]
H A DConsumed.cpp143 static bool isConsumableType(const QualType &QT) { in isConsumableType() argument
144 if (QT->isPointerType() || QT->isReferenceType()) in isConsumableType()
147 if (const CXXRecordDecl *RD = QT->getAsCXXRecordDecl()) in isConsumableType()
153 static bool isAutoCastType(const QualType &QT) { in isAutoCastType() argument
154 if (QT->isPointerType() || QT->isReferenceType()) in isAutoCastType()
157 if (const CXXRecordDecl *RD = QT->getAsCXXRecordDecl()) in isAutoCastType()
163 static bool isSetOnReadPtrType(const QualType &QT) { in isSetOnReadPtrType() argument
164 if (const CXXRecordDecl *RD = QT->getPointeeCXXRecordDecl()) in isSetOnReadPtrType()
193 static ConsumedState mapConsumableAttrState(const QualType QT) { in mapConsumableAttrState() argument
194 assert(isConsumableType(QT)); in mapConsumableAttrState()
[all …]
/llvm-project-15.0.7/clang-tools-extra/clang-tidy/objc/
H A DNSInvocationArgumentLifetimeCheck.cpp48 QualType QT = Node.getType(); in AST_POLYMORPHIC_MATCHER() local
49 return QT->isScalarType() && in AST_POLYMORPHIC_MATCHER()
50 (QT->getScalarTypeKind() == Type::STK_ObjCObjectPointer || in AST_POLYMORPHIC_MATCHER()
51 QT->getScalarTypeKind() == Type::STK_BlockPointer) && in AST_POLYMORPHIC_MATCHER()
52 QT.getQualifiers().getObjCLifetime() > Qualifiers::OCL_ExplicitNone; in AST_POLYMORPHIC_MATCHER()
/llvm-project-15.0.7/clang/tools/libclang/
H A DCXType.cpp905 return QT->isIncompleteArrayType() || !QT->isIncompleteType(); in isIncompleteTypeWithAlignment()
916 if (QT->isReferenceType()) in clang_Type_getAlignOf()
917 QT = QT.getNonReferenceType(); in clang_Type_getAlignOf()
920 if (QT->isDependentType()) in clang_Type_getAlignOf()
948 if (QT->isReferenceType()) in clang_Type_getSizeOf()
949 QT = QT.getNonReferenceType(); in clang_Type_getSizeOf()
956 if (QT->isIncompleteType()) in clang_Type_getSizeOf()
958 if (QT->isDependentType()) in clang_Type_getSizeOf()
968 if (QT->isVoidType() || QT->isFunctionType()) in clang_Type_getSizeOf()
974 return QT->isIncompleteType() && !QT->isIncompleteArrayType(); in isTypeIncompleteForLayout()
[all …]
/llvm-project-15.0.7/clang-tools-extra/clang-tidy/readability/
H A DMakeMemberFunctionConstCheck.cpp106 QualType QT = Cast->getType(); in visitUser() local
107 if (QT->isPointerType()) in visitUser()
108 QT = QT->getPointeeType(); in visitUser()
110 if (!QT.isConstQualified()) in visitUser()
/llvm-project-15.0.7/clang-tools-extra/clang-tidy/utils/
H A DFixItHintUtils.cpp34 static bool isValueType(QualType QT) { return isValueType(QT.getTypePtr()); } in isValueType() argument
35 static bool isMemberOrFunctionPointer(QualType QT) { in isMemberOrFunctionPointer() argument
36 return (QT->isPointerType() && QT->isFunctionPointerType()) || in isMemberOrFunctionPointer()
37 isa<MemberPointerType>(QT.getTypePtr()); in isMemberOrFunctionPointer()
/llvm-project-15.0.7/clang-tools-extra/clangd/
H A DHover.cpp156 while (!QT.isNull() && QT->isDecltypeType()) in printType()
157 QT = QT->castAs<DecltypeType>()->getUnderlyingType(); in printType()
164 if (!QT.isNull() && !QT.hasQualifiers() && PP.SuppressTagKeyword) { in printType()
168 QT.print(OS, PP); in printType()
172 if (!QT.isNull() && Cfg.Hover.ShowAKA) { in printType()
272 auto QT = VD->getType(); in getUnderlyingFunction() local
273 if (!QT.isNull()) { in getUnderlyingFunction()
274 while (!QT->getPointeeType().isNull()) in getUnderlyingFunction()
275 QT = QT->getPointeeType(); in getUnderlyingFunction()
384 QualType QT = FD->getType(); in fillFunctionTypeAndParams() local
[all …]
/llvm-project-15.0.7/clang/include/clang/AST/
H A DQualTypeNames.h75 std::string getFullyQualifiedName(QualType QT, const ASTContext &Ctx,
88 QualType getFullyQualifiedType(QualType QT, const ASTContext &Ctx,
H A DDataCollection.h48 template <class T> void addDataToConsumer(T &DataConsumer, const QualType &QT) { in addDataToConsumer() argument
49 addDataToConsumer(DataConsumer, QT.getAsString()); in addDataToConsumer()
H A DTemplateBase.h108 void *QT;
162 TemplateArgument(ValueDecl *D, QualType QT) {
165 DeclArg.QT = QT.getAsOpaquePtr();
282 return QualType::getFromOpaquePtr(DeclArg.QT);
/llvm-project-15.0.7/clang-tools-extra/clang-tidy/modernize/
H A DRedundantVoidArgCheck.cpp22 bool protoTypeHasNoParms(QualType QT) { in protoTypeHasNoParms() argument
23 if (const auto *PT = QT->getAs<PointerType>()) in protoTypeHasNoParms()
24 QT = PT->getPointeeType(); in protoTypeHasNoParms()
25 if (auto *MPT = QT->getAs<MemberPointerType>()) in protoTypeHasNoParms()
26 QT = MPT->getPointeeType(); in protoTypeHasNoParms()
27 if (const auto *FP = QT->getAs<FunctionProtoType>()) in protoTypeHasNoParms()
H A DUseAutoCheck.cpp100 QualType QT = Node; in AST_MATCHER_P() local
102 if (SugarMatcher.matches(QT, Finder, Builder)) in AST_MATCHER_P()
105 QualType NewQT = QT.getSingleStepDesugaredType(Finder->getASTContext()); in AST_MATCHER_P()
106 if (NewQT == QT) in AST_MATCHER_P()
108 QT = NewQT; in AST_MATCHER_P()
H A DAvoidBindCheck.cpp498 QualType QT = CallableExpr->getType(); in getCallableType() local
499 if (QT->isMemberFunctionPointerType()) in getCallableType()
502 if (QT->isFunctionPointerType() || QT->isFunctionReferenceType() || in getCallableType()
503 QT->isFunctionType()) in getCallableType()
506 if (QT->isRecordType()) { in getCallableType()
507 const CXXRecordDecl *Decl = QT->getAsCXXRecordDecl(); in getCallableType()
/llvm-project-15.0.7/clang/lib/StaticAnalyzer/Checkers/
H A DFuchsiaHandleChecker.cpp274 getFuchsiaHandleSymbols(QualType QT, SVal Arg, ProgramStateRef State) { in getFuchsiaHandleSymbols() argument
276 while (QT->isAnyPointerType() || QT->isReferenceType()) { in getFuchsiaHandleSymbols()
278 QT = QT->getPointeeType(); in getFuchsiaHandleSymbols()
280 if (QT->isStructureType()) { in getFuchsiaHandleSymbols()
287 if (const auto *HandleType = QT->getAs<TypedefType>()) { in getFuchsiaHandleSymbols()
/llvm-project-15.0.7/clang/lib/StaticAnalyzer/Checkers/WebKit/
H A DUncountedLocalVarsChecker.cpp58 QualType QT = V->getType(); in isRefcountedStringsHack() local
59 auto *T = QT.getTypePtr(); in isRefcountedStringsHack()

12345