Home
last modified time | relevance | path

Searched refs:getCanonicalType (Results 1 – 25 of 153) sorted by relevance

1234567

/llvm-project-15.0.7/clang-tools-extra/clang-tidy/bugprone/
H A DVirtualNearMissCheck.cpp45 .getCanonicalType(); in checkOverridingFunctionReturnType()
49 .getCanonicalType(); in checkOverridingFunctionReturnType()
68 QualType DTy = DerivedReturnTy->getPointeeType().getCanonicalType(); in checkOverridingFunctionReturnType()
69 QualType BTy = BaseReturnTy->getPointeeType().getCanonicalType(); in checkOverridingFunctionReturnType()
92 if (Paths.isAmbiguous(Context->getCanonicalType(BTy).getUnqualifiedType())) in checkOverridingFunctionReturnType()
139 if (getDecayedType(BaseMD->getParamDecl(I)->getType().getCanonicalType()) != in checkParamTypes()
141 DerivedMD->getParamDecl(I)->getType().getCanonicalType())) in checkParamTypes()
H A DStringIntegerAssignmentCheck.cpp121 return E->getType().getCanonicalType().getTypePtr() == in isCharTyped()
133 Result.Nodes.getNodeAs<QualType>("type")->getCanonicalType(); in check()
/llvm-project-15.0.7/clang-tools-extra/clang-tidy/modernize/
H A DReturnBracedInitListCheck.cpp49 MatchedFunctionDecl->getReturnType().getCanonicalType(); in check()
51 MatchedConstructExpr->getType().getCanonicalType(); in check()
70 if (MatchedConstructExpr->getArg(I)->getType().getCanonicalType() != in check()
71 VD->getType().getCanonicalType()) in check()
H A DPassByValueCheck.cpp133 if (!Param->getType().getCanonicalType()->isLValueReferenceType()) { in hasRValueOverload()
148 C->parameters()[I]->getType().getCanonicalType(); in hasRValueOverload()
150 Ctor->parameters()[I]->getType().getCanonicalType(); in hasRValueOverload()
/llvm-project-15.0.7/clang/lib/StaticAnalyzer/Checkers/
H A DStringChecker.cpp52 const QualType Arg1Ty = Call.getArgExpr(0)->getType().getCanonicalType(); in isCharToStringCtor()
53 const QualType Arg2Ty = Call.getArgExpr(1)->getType().getCanonicalType(); in isCharToStringCtor()
60 if (Arg2Ty.getCanonicalType() == ACtx.getSizeType()) in isCharToStringCtor()
H A DCastToStructChecker.cpp42 QualType OrigTy = Ctx.getCanonicalType(E->getType()); in VisitCastExpr()
43 QualType ToTy = Ctx.getCanonicalType(CE->getType()); in VisitCastExpr()
H A DVLASizeChecker.cpp263 TypeToCheck = VD->getType().getCanonicalType(); in checkPreStmt()
265 TypeToCheck = TND->getUnderlyingType().getCanonicalType(); in checkPreStmt()
309 UETTE->getTypeOfArgument().getCanonicalType()); in checkPreStmt()
H A DMallocSizeofChecker.cpp147 A = A.getCanonicalType(); in typesCompatible()
148 B = B.getCanonicalType(); in typesCompatible()
H A DObjCPropertyChecker.cpp50 const std::string &PropTypeName(T->getPointeeType().getCanonicalType() in checkCopyMutable()
H A DErrnoModeling.cpp84 VD->getType().getCanonicalType() == ACtx.IntTy; in REGISTER_TRAIT_WITH_PROGRAMSTATE()
107 FD->getReturnType().getCanonicalType() == in getErrnoFunc()
/llvm-project-15.0.7/clang/lib/Analysis/
H A DConstructionContext.cpp54 if (!BTE && !(MTE->getType().getCanonicalType()->getAsCXXRecordDecl() in createMaterializedTemporaryFromLayers()
111 assert(!cast<VarDecl>(DS->getSingleDecl())->getType().getCanonicalType() in createBoundTemporaryFromLayers()
121 assert(!RS->getRetValue()->getType().getCanonicalType() in createBoundTemporaryFromLayers()
154 assert(!I->getAnyMember()->getType().getCanonicalType() in createBoundTemporaryFromLayers()
199 assert(BTE->getType().getCanonicalType()->getAsCXXRecordDecl() in createFromLayers()
/llvm-project-15.0.7/clang/lib/Sema/
H A DSemaFixItUtils.cpp35 From = S.Context.getCanonicalType( in compareTypesSimple()
37 To = S.Context.getCanonicalType( in compareTypesSimple()
57 const CanQualType FromQTy = S.Context.getCanonicalType(FromTy); in tryToFixConversion()
58 const CanQualType ToQTy = S.Context.getCanonicalType(ToTy); in tryToFixConversion()
97 S.Context.getCanonicalType(FromPtrTy->getPointeeType()), ToQTy, in tryToFixConversion()
H A DSemaCast.cpp657 QualType UnwrappedSrcType = Self.Context.getCanonicalType(SrcType), in CastsAwayConstness()
658 UnwrappedDestType = Self.Context.getCanonicalType(DestType); in CastsAwayConstness()
767 QualType DestType = Self.Context.getCanonicalType(this->DestType); in CheckDynamicCast()
807 QualType SrcType = Self.Context.getCanonicalType(OrigSrcType); in CheckDynamicCast()
1322 QualType SrcType = Self.Context.getCanonicalType(SrcExpr.get()->getType()); in TryStaticCast()
1760 if (Paths.isAmbiguous(Self.Context.getCanonicalType(DestClass))) { in TryStaticMemberPointerUpcast()
1887 DestType = Self.Context.getCanonicalType(DestType); in TryConstCast()
2205 DestType = Self.Context.getCanonicalType(DestType); in TryReinterpretCast()
2269 SrcType = Self.Context.getCanonicalType(SrcType); in TryReinterpretCast()
2602 DestPtr = Self.getASTContext().getCanonicalType(DestType.getTypePtr()), in checkAddressSpaceCast()
[all …]
/llvm-project-15.0.7/clang/lib/AST/
H A DInheritViz.cpp63 QualType CanonType = Context.getCanonicalType(Type); in WriteNode()
96 QualType CanonBaseType = Context.getCanonicalType(Base.getType()); in WriteNode()
126 QualType CanonType = Context.getCanonicalType(Type); in WriteNodeReference()
H A DASTContext.cpp10198 if (getCanonicalType(paramType) != getCanonicalType(lParamType)) in mergeFunctionTypes()
10200 if (getCanonicalType(paramType) != getCanonicalType(rParamType)) in mergeFunctionTypes()
10434 if (getCanonicalType(LHSPointee) == getCanonicalType(ResultType)) in mergeTypes()
10436 if (getCanonicalType(RHSPointee) == getCanonicalType(ResultType)) in mergeTypes()
10467 if (getCanonicalType(LHSPointee) == getCanonicalType(ResultType)) in mergeTypes()
10469 if (getCanonicalType(RHSPointee) == getCanonicalType(ResultType)) in mergeTypes()
10486 if (getCanonicalType(LHSValue) == getCanonicalType(ResultType)) in mergeTypes()
10488 if (getCanonicalType(RHSValue) == getCanonicalType(ResultType)) in mergeTypes()
10539 if (LCAT && getCanonicalType(LHSElem) == getCanonicalType(ResultType)) in mergeTypes()
10541 if (RCAT && getCanonicalType(RHSElem) == getCanonicalType(ResultType)) in mergeTypes()
[all …]
H A DFormatString.cpp382 argTy = C.getCanonicalType(argTy).getUnqualifiedType(); in matchesType()
444 C.getCanonicalType(PT->getPointeeType()).getUnqualifiedType(); in matchesType()
449 QualType WInt = C.getCanonicalType(C.getWIntType()).getUnqualifiedType(); in matchesType()
451 if (C.getCanonicalType(argTy).getUnqualifiedType() == WInt) in matchesType()
457 PromoArg = C.getCanonicalType(PromoArg).getUnqualifiedType(); in matchesType()
/llvm-project-15.0.7/clang-tools-extra/clang-tidy/performance/
H A DInefficientAlgorithmCheck.cpp79 IneffCont->getTemplateArgs()[0].getAsType().getCanonicalType(); in check()
86 Arg->getType().getUnqualifiedType().getCanonicalType(); in check()
92 .getCanonicalType(); in check()
H A DUnnecessaryValueParamCheck.cpp96 Param->getType().getCanonicalType().isConstQualified(); in check()
107 auto CanonicalType = Param->getType().getCanonicalType(); in check()
153 if (!CurrentParam.getType().getCanonicalType().isConstQualified()) { in check()
H A DUnnecessaryCopyInitialization.cpp142 QualType T = InitializingVar.getType().getCanonicalType(); in isInitializingVariableImmutable()
196 .getCanonicalType() != in differentReplacedTemplateParams()
199 .getCanonicalType(); in differentReplacedTemplateParams()
/llvm-project-15.0.7/clang/lib/Analysis/FlowSensitive/
H A DDataflowEnvironment.cpp462 if (Visited.insert(PointeeType.getCanonicalType()).second) { in createValueUnlessSelfReferential()
465 Visited.erase(PointeeType.getCanonicalType()); in createValueUnlessSelfReferential()
479 if (Visited.insert(PointeeType.getCanonicalType()).second) { in createValueUnlessSelfReferential()
482 Visited.erase(PointeeType.getCanonicalType()); in createValueUnlessSelfReferential()
500 if (Visited.contains(FieldType.getCanonicalType())) in createValueUnlessSelfReferential()
503 Visited.insert(FieldType.getCanonicalType()); in createValueUnlessSelfReferential()
507 Visited.erase(FieldType.getCanonicalType()); in createValueUnlessSelfReferential()
/llvm-project-15.0.7/clang-tools-extra/clang-tidy/utils/
H A DTypeTraits.cpp122 QualType CanonicalType = Type.getCanonicalType(); in isTriviallyDefaultConstructible()
146 if (Type.getCanonicalType()->isDependentType()) in isTriviallyDestructible()
/llvm-project-15.0.7/clang-tools-extra/clang-tidy/google/
H A DAvoidCStyleCastsCheck.cpp107 T = T.getCanonicalType().getNonReferenceType(); in check()
116 const QualType SourceType = SourceTypeAsWritten.getCanonicalType(); in check()
117 const QualType DestType = DestTypeAsWritten.getCanonicalType(); in check()
/llvm-project-15.0.7/clang/lib/StaticAnalyzer/Core/
H A DStore.cpp98 QualType CanonPointeeTy = Ctx.getCanonicalType(PointeeTy); in castRegion()
107 QualType ObjTy = Ctx.getCanonicalType(TR->getValueType()); in castRegion()
453 PointeeTy.getCanonicalType() == elementType.getCanonicalType()) in getLValueElement()
H A DSValBuilder.cpp641 CastTy = Context.getCanonicalType(CastTy); in Visit()
645 OriginalTy = Context.getCanonicalType(OriginalTy); in Visit()
744 : dyn_cast<ArrayType>(OriginalTy.getCanonicalType()); in VisitLocMemRegionVal()
782 return ty1->getPointeeType().getCanonicalType().getTypePtr() == in VisitLocMemRegionVal()
783 ty2->getPointeeType().getCanonicalType().getTypePtr(); in VisitLocMemRegionVal()
962 QualType T = Context.getCanonicalType(SE->getType()); in VisitNonLocSymbolVal()
1039 QualType T = Context.getCanonicalType(SE->getType()); in simplifySymbolCast()
1048 QualType RT = RootSym->getType().getCanonicalType(); in simplifySymbolCast()
/llvm-project-15.0.7/clang-tools-extra/clangd/refactor/tweaks/
H A DMemberwiseConstructor.cpp157 return Visit(T->getModifiedType().getCanonicalType().getTypePtr()); in considerField()
176 .Visit(Field->getType().getCanonicalType().getTypePtr()); in considerField()

1234567