reference, declarationdefinition
definition → references, declarations, derived classes, virtual overrides
reference to multiple definitions → definitions
unreferenced

Declarations

tools/clang/include/clang/AST/Type.h
  877   QualType getCanonicalType() const;

References

tools/clang/include/clang/AST/ASTContext.h
 2290     return CanQualType::CreateUnsafe(T.getCanonicalType());
tools/clang/include/clang/AST/Type.h
 4790                                     : DeducedAsType.getCanonicalType(),
tools/clang/include/clang/ASTMatchers/ASTMatchers.h
 3410   return InnerMatcher.matches(Node.getCanonicalType(), Finder, Builder);
tools/clang/include/clang/Analysis/CFG.h
  194            E->getType().getCanonicalType()->getAsCXXRecordDecl();
tools/clang/include/clang/StaticAnalyzer/Checkers/SValExplainer.h
  147             .getCanonicalType()->getAs<ObjCObjectPointerType>())
tools/clang/include/clang/StaticAnalyzer/Core/PathSensitive/SMTConv.h
  630     if ((LTy.getCanonicalType() == RTy.getCanonicalType()) ||
  630     if ((LTy.getCanonicalType() == RTy.getCanonicalType()) ||
tools/clang/lib/AST/ASTContext.cpp
  656       ID.AddPointer(NTTP->getType().getCanonicalType().getAsOpaquePtr());
  662           ID.AddPointer(T.getCanonicalType().getAsOpaquePtr());
 5552   if (!isa<ArrayType>(T.getCanonicalType()))
tools/clang/lib/AST/ASTDiagnostic.cpp
  237   QualType CanTy = Ty.getCanonicalType();
  248     QualType CompareCanTy = CompareTy.getCanonicalType();
  291         DesugaredTy = Ty.getCanonicalType();
 1091              Ty.getLocalUnqualifiedType().getCanonicalType());
 1642           FromType.getCanonicalType().getAsString(Policy);
 1643       std::string ToCanTypeStr = ToType.getCanonicalType().getAsString(Policy);
tools/clang/lib/AST/ASTImporter.cpp
 1396         Replaced, (*ToReplacementTypeOrErr).getCanonicalType());
 1483       Canon = (*TyOrErr).getCanonicalType();
 1558           getLeafPointeeType(P->getType().getCanonicalType().getTypePtr());
 5233     CanonInjType = CanonInjType.getCanonicalType();
tools/clang/lib/AST/Decl.cpp
 2933   return (proto->getParamType(1).getCanonicalType() == Context.VoidPtrTy);
tools/clang/lib/AST/Expr.cpp
 2305   return getType().getCanonicalType() ==
 2306          getInit(0)->getType().getCanonicalType();
tools/clang/lib/AST/ExprConstant.cpp
 6453         RepresentationType.getCanonicalType()->castAs<BuiltinType>();
 6480     QualType Can = Ty.getCanonicalType();
 6515   Ty = Ty.getCanonicalType();
 9957   QualType CanTy = T.getCanonicalType();
tools/clang/lib/AST/ItaniumMangle.cpp
 2440     T = T.getCanonicalType();
tools/clang/lib/AST/MicrosoftMangle.cpp
 1761     TypePtr = OriginalType.getCanonicalType().getAsOpaquePtr();
 1770     TypePtr = T.getCanonicalType().getAsOpaquePtr();
tools/clang/lib/AST/Type.cpp
 2300   QualType CanonicalType = getCanonicalType();
 3308       FieldTy = FieldTy.getCanonicalType();
tools/clang/lib/AST/TypePrinter.cpp
  167     QT = QT.getCanonicalType();
tools/clang/lib/AST/VTableBuilder.cpp
  472     cast<FunctionProtoType>(LHS->getType().getCanonicalType());
  474     cast<FunctionProtoType>(RHS->getType().getCanonicalType());
 3070         << TI.Method->getReturnType().getCanonicalType().getAsString()
tools/clang/lib/Analysis/BodyFarm.cpp
  414                 .getCanonicalType() !=
  415             PDecl->getType().getNonReferenceType().getCanonicalType()) {
tools/clang/lib/Analysis/ConstructionContext.cpp
   54   if (!BTE && !(MTE->getType().getCanonicalType()->getAsCXXRecordDecl()
  111     assert(!cast<VarDecl>(DS->getSingleDecl())->getType().getCanonicalType()
  121     assert(!RS->getRetValue()->getType().getCanonicalType()
  154     assert(!I->getAnyMember()->getType().getCanonicalType()
  193     assert(BTE->getType().getCanonicalType()->getAsCXXRecordDecl()
tools/clang/lib/Analysis/RetainSummaryManager.cpp
  220   QT = QT.getCanonicalType();
tools/clang/lib/CodeGen/CGBlocks.cpp
 2408     id.AddPointer(VarType.getCanonicalType().getAsOpaquePtr());
 2438     id.AddPointer(VarType.getCanonicalType().getAsOpaquePtr());
tools/clang/lib/CodeGen/CGBuiltin.cpp
 1449         FD->getType().getUnqualifiedType().getCanonicalType();
tools/clang/lib/CodeGen/CGCUDANV.cpp
  330   QualType CQT = QT.getCanonicalType();
tools/clang/lib/CodeGen/CGExpr.cpp
 1415   type = type.getCanonicalType();
tools/clang/lib/CodeGen/CGExprCXX.cpp
  223     if (DevirtualizedMethod->getReturnType().getCanonicalType() !=
  224         MD->getReturnType().getCanonicalType())
tools/clang/lib/CodeGen/CGExprComplex.cpp
   33   type = type.getCanonicalType();
tools/clang/lib/CodeGen/CGObjC.cpp
   86   const QualType ValueType(SubExpr->getType().getCanonicalType());
tools/clang/lib/CodeGen/CGOpenMPRuntime.cpp
 7171     QualType ExprTy = E->getType().getCanonicalType();
 7175       ExprTy = RefTy->getPointeeType().getCanonicalType();
 7183                             .getCanonicalType();
 7194         ElemSize = CGF.getTypeSize(PTy->getPointeeType().getCanonicalType());
 7198         ElemSize = CGF.getTypeSize(ATy->getElementType().getCanonicalType());
 7297                              .getCanonicalType();
 7597                        .getCanonicalType()
 8169                          .getCanonicalType()
 8176         VDAddr, VD->getType().getCanonicalType().getNonReferenceType());
 8209                 VD->getType().getCanonicalType().getNonReferenceType()),
 8347               VD->getType().getCanonicalType()->getAsCXXRecordDecl())
 8350         const auto *RD = VD->getType().getCanonicalType()->getAsRecordDecl();
10380   QT = QT.getCanonicalType();
10401   QT = QT.getCanonicalType();
10426   if (getAArch64MTV(QT, Kind) && QT.getCanonicalType()->isPointerType()) {
10427     QualType PTy = QT.getCanonicalType()->getPointeeType();
10442   QualType RetType = FD->getReturnType().getCanonicalType();
10455     QualType QT = FD->getParamDecl(I)->getType().getCanonicalType();
tools/clang/lib/CodeGen/CGOpenMPRuntimeNVPTX.cpp
 4857                          .getCanonicalType()
 4864     if (VD->getType().getCanonicalType()->isReferenceType())
 4868           VDAddr, VD->getType().getCanonicalType().getNonReferenceType());
 4888       if (VD->getType().getCanonicalType()->isReferenceType())
 4890                                                VD->getType().getCanonicalType())
tools/clang/lib/CodeGen/CodeGenFunction.cpp
  189   type = type.getCanonicalType();
  616   if (MD->parameters()[0]->getType().getCanonicalType() != Ctx.getSizeType())
 1134   if (const RecordType *RT = T.getCanonicalType()->getAs<RecordType>()) {
tools/clang/lib/CodeGen/CodeGenModule.cpp
 1318             pointeeTy.getUnqualifiedType().getCanonicalType().getAsString(
 1350           typeName = ty.getCanonicalType()
 1364           baseTypeName = ty.getCanonicalType()
 1367                              .getCanonicalType()
 1371               ty.getUnqualifiedType().getCanonicalType().getAsString(Policy);
 2272     Ty = Ty.getCanonicalType().getUnqualifiedType();
 5766   llvm::Metadata *&InternalId = Map[T.getCanonicalType()];
tools/clang/lib/CodeGen/ItaniumCXXABI.cpp
 3330   Ty = Ty.getCanonicalType();
tools/clang/lib/CodeGen/TargetInfo.cpp
 9183   QualType QT = QType.getCanonicalType();
 9227     QualType QT = VD->getType().getCanonicalType();
tools/clang/lib/Index/USRGeneration.cpp
 1120   T = T.getCanonicalType();
tools/clang/lib/Parse/ParseExpr.cpp
 2550           QualType QT = Ty.get().get().getCanonicalType();
tools/clang/lib/Sema/AnalysisBasedWarnings.cpp
  755   QualType VariableTy = VD->getType().getCanonicalType();
tools/clang/lib/Sema/Sema.cpp
 2191   auto CanT = T.getCanonicalType().getTypePtr();
 2280   if (auto TagT = dyn_cast<TagType>(QT.getCanonicalType().getTypePtr()))
 2295   return checkOpenCLDisabledTypeOrDecl(QT.getCanonicalType().getTypePtr(), Loc,
tools/clang/lib/Sema/SemaAttr.cpp
  139   QualType Canonical = TD->getUnderlyingType().getCanonicalType();
tools/clang/lib/Sema/SemaCast.cpp
 2347       Self.Context.removeAddrSpaceQualType(SrcPointeeType.getCanonicalType());
 2349       Self.Context.removeAddrSpaceQualType(DestPointeeType.getCanonicalType());
tools/clang/lib/Sema/SemaChecking.cpp
  485       cast<BlockPointerType>(BlockArg->getType().getCanonicalType());
  584       cast<BlockPointerType>(BlockArg->getType().getCanonicalType());
  678         cast<BlockPointerType>(Arg3->getType().getCanonicalType());
 5692   const Type *Arg1Ty = Arg1->getType().getCanonicalType().getTypePtr();
 5695   const Type *Arg2Ty = Arg2->getType().getCanonicalType().getTypePtr();
14341   T1 = T1.getCanonicalType().getUnqualifiedType();
14342   T2 = T2.getCanonicalType().getUnqualifiedType();
tools/clang/lib/Sema/SemaCodeComplete.cpp
  556   Type = !CastType.isNull() ? CastType.getCanonicalType() : QualType();
 1197     if (Candidate.parameters()[I]->getType().getCanonicalType() !=
 1198         Incumbent.parameters()[I]->getType().getCanonicalType())
tools/clang/lib/Sema/SemaDecl.cpp
 3290         First->getType().getCanonicalType()->castAs<FunctionType>();
tools/clang/lib/Sema/SemaDeclAttr.cpp
 6295     const Type *DeclTy = PDecl->getType().getCanonicalType().getTypePtr();
 6415     if (!IsKernReturnT || T.getCanonicalType() != S.getASTContext().IntTy) {
tools/clang/lib/Sema/SemaDeclCXX.cpp
 3820       UninitializedBaseClasses.insert(I.getType().getCanonicalType());
tools/clang/lib/Sema/SemaExpr.cpp
10797       LHSType->castAs<PointerType>()->getPointeeType().getCanonicalType();
10799       RHSType->castAs<PointerType>()->getPointeeType().getCanonicalType();
11667       FieldTy = FieldTy.getCanonicalType();
11684   const RecordType *RTy = Ty.getCanonicalType()->getAs<RecordType>();
tools/clang/lib/Sema/SemaInit.cpp
 3763   QualType VariableTy = VD->getType().getCanonicalType();
tools/clang/lib/Sema/SemaOpenMP.cpp
 1246   Type = Type.getNonReferenceType().getCanonicalType();
 3602     if (const auto *RD = Type.getCanonicalType()
 4799                              .getCanonicalType();
13776   Type = Type.getUnqualifiedType().getCanonicalType();
13838     Type = Type.getNonReferenceType().getUnqualifiedType().getCanonicalType();
14056     QType = QType.getNonReferenceType().getUnqualifiedType().getCanonicalType();
14794           OMPArraySectionExpr::getBaseOriginalType(E).getCanonicalType();
14960                 OMPArraySectionExpr::getBaseOriginalType(E).getCanonicalType();
15057                                      .getCanonicalType()
15126     Type = Type->getAsArrayTypeUnsafe()->getElementType().getCanonicalType();
15311           VE->getType().getCanonicalType(), UnresolvedMapper);
15349           VE->getType().getCanonicalType(), UnresolvedMapper);
15481         Type.getCanonicalType(), UnresolvedMapper);
15614       PreviousRedeclTypes[PrevDecl->getType().getCanonicalType()] =
15630       PreviousRedeclTypes[PrevDRDInScope->getType().getCanonicalType()] =
15636     const auto I = PreviousRedeclTypes.find(TyData.first.getCanonicalType());
15644     PreviousRedeclTypes[TyData.first.getCanonicalType()] = TyData.second;
15866       PreviousRedeclTypes[PrevDecl->getType().getCanonicalType()] =
15882       PreviousRedeclTypes[PrevDMDInScope->getType().getCanonicalType()] =
15887   const auto I = PreviousRedeclTypes.find(MapperType.getCanonicalType());
tools/clang/lib/Sema/SemaOverload.cpp
10091                ToTy.getNonReferenceType().getCanonicalType() ==
10092                FromTy.getNonReferenceType().getCanonicalType()) {
tools/clang/lib/StaticAnalyzer/Checkers/GenericTaintChecker.cpp
  569   QualType ArgTy = Arg->getType().getCanonicalType();
  689       if (PtrTy && PtrTy->getPointeeType().getCanonicalType() ==
  690                        C.getASTContext().getFILEType().getCanonicalType())
tools/clang/lib/StaticAnalyzer/Checkers/MIGChecker.cpp
  165              .getCanonicalType()->isSignedIntegerType())
tools/clang/lib/StaticAnalyzer/Checkers/MallocSizeofChecker.cpp
  143     A = A.getCanonicalType();
  144     B = B.getCanonicalType();
tools/clang/lib/StaticAnalyzer/Checkers/NumberObjectConversionChecker.cpp
  136     assert(ObjT.getCanonicalType()->isPointerType());
  138         ObjT->getPointeeType().getCanonicalType().getUnqualifiedType());
tools/clang/lib/StaticAnalyzer/Checkers/ObjCPropertyChecker.cpp
   50   const std::string &PropTypeName(T->getPointeeType().getCanonicalType()
tools/clang/lib/StaticAnalyzer/Checkers/StdLibraryFunctionsChecker.cpp
  214     return ArgNo == Ret ? Call.getResultType().getCanonicalType()
  215                         : Call.getArgExpr(ArgNo)->getType().getCanonicalType();
  218     return ArgNo == Ret ? CE->getType().getCanonicalType()
  219                         : CE->getArg(ArgNo)->getType().getCanonicalType();
  390         CE, LC, CE->getType().getCanonicalType(), C.blockCount());
  410   if (!RetType.isNull() && RetType != CE->getType().getCanonicalType())
tools/clang/lib/StaticAnalyzer/Core/BugReporterVisitors.cpp
  483          Ty->getPointeeType().getCanonicalType().isConstQualified();
tools/clang/lib/StaticAnalyzer/Core/CallEvent.cpp
 1220       ReceiverT = dyn_cast<ObjCObjectPointerType>(DynType.getCanonicalType());
tools/clang/lib/StaticAnalyzer/Core/ExprEngineCallAndReturn.cpp
  132   ExpectedTy = ExpectedTy.getCanonicalType();
  133   ActualTy = ActualTy.getCanonicalType();
tools/clang/lib/StaticAnalyzer/Core/SValBuilder.cpp
  585           dyn_cast<ArrayType>(originalTy.getCanonicalType())) {
tools/clang/lib/StaticAnalyzer/Core/Store.cpp
  425       if (SR->getSymbol()->getType().getCanonicalType() !=
  426           castTy.getCanonicalType())
tools/clang/lib/StaticAnalyzer/Core/SymbolManager.cpp
  349   T = T.getCanonicalType();
tools/clang/tools/extra/clang-tidy/bugprone/StringIntegerAssignmentCheck.cpp
  124     return E->getType().getCanonicalType().getTypePtr() ==
  136       Result.Nodes.getNodeAs<QualType>("type")->getCanonicalType();
tools/clang/tools/extra/clang-tidy/bugprone/VirtualNearMissCheck.cpp
   45                               .getCanonicalType();
   49                                  .getCanonicalType();
   68   QualType DTy = DerivedReturnTy->getPointeeType().getCanonicalType();
   69   QualType BTy = BaseReturnTy->getPointeeType().getCanonicalType();
  139     if (getDecayedType(BaseMD->getParamDecl(I)->getType().getCanonicalType()) !=
  141             DerivedMD->getParamDecl(I)->getType().getCanonicalType()))
tools/clang/tools/extra/clang-tidy/cppcoreguidelines/NarrowingConversionsCheck.cpp
   65   return E.getType().getCanonicalType().getTypePtr()->getAs<BuiltinType>();
tools/clang/tools/extra/clang-tidy/cppcoreguidelines/ProTypeMemberInitCheck.cpp
  166   if (const auto *RT = Type.getCanonicalType()->getAs<RecordType>())
  352       dyn_cast<BuiltinType>(QT.getCanonicalType().getTypePtr());
tools/clang/tools/extra/clang-tidy/google/AvoidCStyleCastsCheck.cpp
   71     T = T.getCanonicalType().getNonReferenceType();
   80   const QualType SourceType = SourceTypeAsWritten.getCanonicalType();
   81   const QualType DestType = DestTypeAsWritten.getCanonicalType();
tools/clang/tools/extra/clang-tidy/google/ExplicitConstructorCheck.cpp
   74   Type = Type.getCanonicalType();
tools/clang/tools/extra/clang-tidy/google/NonConstReferences.cpp
   75                      return ReferencedType.getCanonicalType().getAsString(
tools/clang/tools/extra/clang-tidy/misc/MisplacedConstCheck.cpp
   50   QualType CanQT = Var->getType().getCanonicalType();
tools/clang/tools/extra/clang-tidy/misc/ThrowByValueCatchByReferenceCheck.cpp
  142   if (const auto *PT = caughtType.getCanonicalType()->getAs<PointerType>()) {
tools/clang/tools/extra/clang-tidy/modernize/LoopConvertCheck.cpp
  693     QualType Type = U.Expression->getType().getCanonicalType();
  712   QualType CanonicalInitVarType = InitVar->getType().getCanonicalType();
  784     QualType CanonicalInitVarType = InitVarType.getCanonicalType();
  789         BeginCall->getMethodDecl()->getReturnType().getCanonicalType();
tools/clang/tools/extra/clang-tidy/modernize/ReturnBracedInitListCheck.cpp
   58       MatchedFunctionDecl->getReturnType().getCanonicalType();
   60       MatchedConstructExpr->getType().getCanonicalType();
   79       if (MatchedConstructExpr->getArg(I)->getType().getCanonicalType() !=
   80           VD->getType().getCanonicalType())
tools/clang/tools/extra/clang-tidy/modernize/UseAutoCheck.cpp
  394   const QualType FirstDeclType = FirstDecl->getType().getCanonicalType();
  415     if (FirstDeclType != V->getType().getCanonicalType())
tools/clang/tools/extra/clang-tidy/performance/InefficientAlgorithmCheck.cpp
   86       IneffCont->getTemplateArgs()[0].getAsType().getCanonicalType();
   93         Arg->getType().getUnqualifiedType().getCanonicalType();
   99                                       .getCanonicalType();
tools/clang/tools/extra/clang-tidy/performance/UnnecessaryValueParamCheck.cpp
  106       Param->getType().getCanonicalType().isConstQualified();
  117       auto CanonicalType = Param->getType().getCanonicalType();
  165     if (!CurrentParam.getType().getCanonicalType().isConstQualified())
tools/clang/tools/extra/clang-tidy/readability/NamedParameterCheck.cpp
   70     if (Parm->getType().getCanonicalType()->isNullPtrType())
tools/clang/tools/extra/clang-tidy/utils/TypeTraits.cpp
  122   QualType CanonicalType = Type.getCanonicalType();
tools/clang/tools/extra/clangd/ExpectedTypes.cpp
   26   T = T.getCanonicalType().getNonReferenceType();
tools/clang/tools/extra/clangd/unittests/ExpectedTypeTest.cpp
   38     return cast<ValueDecl>(decl(Name))->getType().getCanonicalType();
tools/clang/unittests/AST/ASTImporterTest.cpp
  966       ImportType(FromVar->getType().getCanonicalType(), FromVar, Lang_C);
 4479   QualType Ty = FD->getFriendType()->getType().getCanonicalType();
tools/lldb/include/lldb/Symbol/ClangASTContext.h
  966       return clang::QualType::getFromOpaquePtr(type).getCanonicalType();
tools/lldb/source/Symbol/ClangASTContext.cpp
 2560   clang::QualType qual_type = type.getCanonicalType();
 3752           pointee_qual_type.getCanonicalType()->getTypeClass();
 6411   clang::QualType qual_type(type.getCanonicalType());
tools/lldb/source/Symbol/ClangUtil.cpp
   39   return GetQualType(ct).getCanonicalType();