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

Declarations

tools/clang/include/clang/AST/CanonicalType.h
  212 using CanQualType = CanQual<Type>;
tools/clang/include/clang/AST/Type.h
  125 using CanQualType = CanQual<Type>;
tools/clang/lib/CodeGen/CodeGenTypes.h
   47 typedef CanQual<Type> CanQualType;

References

tools/clang/include/clang/AST/ASTContext.h
 1015   CanQualType VoidTy;
 1016   CanQualType BoolTy;
 1017   CanQualType CharTy;
 1018   CanQualType WCharTy;  // [C++ 3.9.1p5].
 1019   CanQualType WideCharTy; // Same as WCharTy in C++, integer type in C99.
 1020   CanQualType WIntTy;   // [C99 7.24.1], integer type unchanged by default promotions.
 1021   CanQualType Char8Ty;  // [C++20 proposal]
 1022   CanQualType Char16Ty; // [C++0x 3.9.1p5], integer type in C99.
 1023   CanQualType Char32Ty; // [C++0x 3.9.1p5], integer type in C99.
 1024   CanQualType SignedCharTy, ShortTy, IntTy, LongTy, LongLongTy, Int128Ty;
 1025   CanQualType UnsignedCharTy, UnsignedShortTy, UnsignedIntTy, UnsignedLongTy;
 1026   CanQualType UnsignedLongLongTy, UnsignedInt128Ty;
 1027   CanQualType FloatTy, DoubleTy, LongDoubleTy, Float128Ty;
 1028   CanQualType ShortAccumTy, AccumTy,
 1030   CanQualType UnsignedShortAccumTy, UnsignedAccumTy, UnsignedLongAccumTy;
 1031   CanQualType ShortFractTy, FractTy, LongFractTy;
 1032   CanQualType UnsignedShortFractTy, UnsignedFractTy, UnsignedLongFractTy;
 1033   CanQualType SatShortAccumTy, SatAccumTy, SatLongAccumTy;
 1034   CanQualType SatUnsignedShortAccumTy, SatUnsignedAccumTy,
 1036   CanQualType SatShortFractTy, SatFractTy, SatLongFractTy;
 1037   CanQualType SatUnsignedShortFractTy, SatUnsignedFractTy,
 1039   CanQualType HalfTy; // [OpenCL 6.1.1.1], ARM NEON
 1040   CanQualType Float16Ty; // C11 extension ISO/IEC TS 18661-3
 1041   CanQualType FloatComplexTy, DoubleComplexTy, LongDoubleComplexTy;
 1042   CanQualType Float128ComplexTy;
 1043   CanQualType VoidPtrTy, NullPtrTy;
 1044   CanQualType DependentTy, OverloadTy, BoundMemberTy, UnknownAnyTy;
 1045   CanQualType BuiltinFnTy;
 1046   CanQualType PseudoObjectTy, ARCUnbridgedCastTy;
 1047   CanQualType ObjCBuiltinIdTy, ObjCBuiltinClassTy, ObjCBuiltinSelTy;
 1048   CanQualType ObjCBuiltinBoolTy;
 1052   CanQualType OCLSamplerTy, OCLEventTy, OCLClkEventTy;
 1053   CanQualType OCLQueueTy, OCLReserveIDTy;
 1054   CanQualType OMPArraySectionTy;
 1197   CanQualType getCanonicalFunctionResultType(QualType ResultType) const;
 1222   CanQualType getComplexType(CanQualType T) const {
 1222   CanQualType getComplexType(CanQualType T) const {
 1223     return CanQualType::CreateUnsafe(getComplexType((QualType) T));
 1229   CanQualType getPointerType(CanQualType T) const {
 1229   CanQualType getPointerType(CanQualType T) const {
 1230     return CanQualType::CreateUnsafe(getPointerType((QualType) T));
 1236   CanQualType getAdjustedType(CanQualType Orig, CanQualType New) const {
 1236   CanQualType getAdjustedType(CanQualType Orig, CanQualType New) const {
 1236   CanQualType getAdjustedType(CanQualType Orig, CanQualType New) const {
 1237     return CanQualType::CreateUnsafe(
 1245   CanQualType getDecayedType(CanQualType T) const {
 1245   CanQualType getDecayedType(CanQualType T) const {
 1246     return CanQualType::CreateUnsafe(getDecayedType((QualType) T));
 1553   CanQualType getSizeType() const;
 1557   CanQualType getSignedSizeType() const;
 1561   CanQualType getIntMaxType() const;
 1565   CanQualType getUIntMaxType() const;
 1700   CanQualType getNSUIntegerType() const {
 1709   CanQualType getNSIntegerType() const {
 2042   CanQualType getFromTargetType(unsigned Type) const;
 2289   CanQualType getCanonicalType(QualType T) const {
 2290     return CanQualType::CreateUnsafe(T.getCanonicalType());
 2302   CanQualType getCanonicalParamType(QualType T) const;
 2897   void InitBuiltinType(CanQualType &R, BuiltinType::Kind K);
tools/clang/include/clang/AST/CXXInheritance.h
  206   bool isAmbiguous(CanQualType BaseType);
tools/clang/include/clang/AST/CanonicalType.h
  214 inline CanQualType Type::getCanonicalTypeUnqualified() const {
  215   return CanQualType::CreateUnsafe(getCanonicalTypeInternal());
  219                                            CanQualType T) {
  405           CanQualType,
  407           CanProxy<Type>, CanQualType> {
  412   CanQualType operator*() const { return CanQualType::CreateUnsafe(*this->I); }
  412   CanQualType operator*() const { return CanQualType::CreateUnsafe(*this->I); }
  507   CanQualType getParamType(unsigned i) const {
  508     return CanQualType::CreateUnsafe(this->getTypePtr()->getParamType(i));
tools/clang/include/clang/AST/DeclarationName.h
  618   DeclarationName getCXXConstructorName(CanQualType Ty);
  621   DeclarationName getCXXDestructorName(CanQualType Ty);
  627   DeclarationName getCXXConversionFunctionName(CanQualType Ty);
  636                                     CanQualType Ty);
tools/clang/include/clang/AST/FormatString.h
  284   ArgType(CanQualType T) : K(SpecificTy), T(T) {}
tools/clang/include/clang/AST/Type.h
 2404   CanQualType getCanonicalTypeUnqualified() const; // in CanonicalType.h
tools/clang/include/clang/AST/TypeOrdering.h
   58     static inline clang::CanQualType getEmptyKey() {
   62     static inline clang::CanQualType getTombstoneKey() {
   64       return CanQualType::getFromOpaquePtr(reinterpret_cast<clang::Type *>(-1));
   67     static unsigned getHashValue(clang::CanQualType Val) {
   72     static bool isEqual(clang::CanQualType LHS, clang::CanQualType RHS) {
   72     static bool isEqual(clang::CanQualType LHS, clang::CanQualType RHS) {
tools/clang/include/clang/CodeGen/CGFunctionInfo.h
  471   CanQualType type;
  549                                 CanQualType resultType,
  550                                 ArrayRef<CanQualType> argTypes,
  632   CanQualType getReturnType() const { return getArgsBuffer()[0].type; }
  686                       CanQualType resultType,
  687                       ArrayRef<CanQualType> argTypes) {
  704     for (ArrayRef<CanQualType>::iterator
tools/clang/include/clang/CodeGen/CodeGenABITypes.h
   69                                               CanQualType returnType,
   70                                               ArrayRef<CanQualType> argTypes,
tools/clang/include/clang/CodeGen/SwiftCallingConv.h
  168 ABIArgInfo classifyReturnType(CodeGenModule &CGM, CanQualType type);
  171 ABIArgInfo classifyArgumentType(CodeGenModule &CGM, CanQualType type);
tools/clang/include/clang/Sema/CodeCompleteConsumer.h
  162 SimplifiedTypeClass getSimplifiedTypeClass(CanQualType T);
tools/clang/include/clang/Sema/Sema.h
 2924   bool isSameOrCompatibleFunctionType(CanQualType Param, CanQualType Arg);
 2924   bool isSameOrCompatibleFunctionType(CanQualType Param, CanQualType Arg);
 5170     llvm::SmallPtrSet<CanQualType, 4> ExceptionsSeen;
tools/clang/include/clang/Sema/SemaFixItUtils.h
   34   static bool compareTypesSimple(CanQualType From,
   35                                  CanQualType To,
   51   typedef bool (*TypeComparisonFuncTy) (const CanQualType FromTy,
   52                                         const CanQualType ToTy,
tools/clang/include/clang/StaticAnalyzer/Core/PathSensitive/MemRegion.h
  633   CanQualType locTy;
  635   BlockCodeRegion(const BlockDecl *bd, CanQualType lTy,
  644                             CanQualType, const AnalysisDeclContext*,
 1392                                             CanQualType locTy,
tools/clang/include/clang/StaticAnalyzer/Core/PathSensitive/SValBuilder.h
  240   DefinedSVal getBlockPointer(const BlockDecl *block, CanQualType locTy,
tools/clang/lib/AST/ASTContext.cpp
 1189 void ASTContext::InitBuiltinType(CanQualType &R, BuiltinType::Kind K) {
 1191   R = CanQualType::CreateUnsafe(QualType(Ty, 0));
 3708 CanQualType
 3710   CanQualType CanResultType = getCanonicalType(ResultType);
 3716     return CanQualType::CreateUnsafe(
 3865     CanQualType CanResultTy = getCanonicalFunctionResultType(ResultTy);
 5086 CanQualType ASTContext::getSizeType() const {
 5092 CanQualType ASTContext::getSignedSizeType() const {
 5097 CanQualType ASTContext::getIntMaxType() const {
 5102 CanQualType ASTContext::getUIntMaxType() const {
 5151 CanQualType ASTContext::getCanonicalParamType(QualType T) const {
 5166   return CanQualType::CreateUnsafe(Result);
 6804   CanQualType CT = getCanonicalType(T);
 7877 CanQualType ASTContext::getFromTargetType(unsigned Type) const {
 8674   CanQualType LRetType = getCanonicalType(lbase->getReturnType());
 8675   CanQualType RRetType = getCanonicalType(rbase->getReturnType());
10213   CanQualType QualTy = getFromTargetType(Ty);
tools/clang/lib/AST/CXXInheritance.cpp
   63 bool CXXBasePaths::isAmbiguous(CanQualType BaseType) {
tools/clang/lib/AST/DeclCXX.cpp
  206   llvm::SmallPtrSet<CanQualType, 8> SeenVBaseTypes;
 1495 static CanQualType GetConversionType(ASTContext &Context, NamedDecl *Conv) {
 1518                   const llvm::SmallPtrSet<CanQualType, 8> &ParentHiddenTypes,
 1525   const llvm::SmallPtrSet<CanQualType, 8> *HiddenTypes = &ParentHiddenTypes;
 1526   llvm::SmallPtrSet<CanQualType, 8> HiddenTypesBuffer;
 1537       CanQualType ConvType(GetConversionType(Context, I.getDecl()));
 1592   llvm::SmallPtrSet<CanQualType, 8> HiddenTypes;
 2545   CanQualType PointeeType
 2547   CanQualType ClassTy
 2586   CanQualType ParamType = Context.getCanonicalType(Param->getType());
 2589   CanQualType ClassTy
tools/clang/lib/AST/DeclarationName.cpp
  297 DeclarationName DeclarationNameTable::getCXXConstructorName(CanQualType Ty) {
  313 DeclarationName DeclarationNameTable::getCXXDestructorName(CanQualType Ty) {
  330 DeclarationNameTable::getCXXConversionFunctionName(CanQualType Ty) {
  347                                         CanQualType Ty) {
tools/clang/lib/AST/ExprClassification.cpp
  635   CanQualType CT = Ctx.getCanonicalType(E->getType());
tools/clang/lib/AST/ExprConstant.cpp
 5214   CanQualType CQT = Info.Ctx.getCanonicalType(Info.Ctx.getRecordType(C));
tools/clang/lib/AST/VTableBuilder.cpp
  277   CanQualType CanDerivedReturnType =
  279   CanQualType CanBaseReturnType =
tools/clang/lib/CodeGen/CGBuiltin.cpp
 1113 static CanQualType getOSLogArgType(ASTContext &C, int Size) {
 1270     CanQualType ArgTy = getOSLogArgType(Ctx, Size);
tools/clang/lib/CodeGen/CGCXXABI.h
  309                          SmallVectorImpl<CanQualType> &ArgTys) = 0;
tools/clang/lib/CodeGen/CGCall.cpp
   73 CanQualType CodeGenTypes::DeriveThisType(const CXXRecordDecl *RD,
   83   return Context.getPointerType(CanQualType::CreateUnsafe(RecTy));
   96 static CanQualType GetReturnType(QualType RetTy) {
  143                                  SmallVectorImpl<CanQualType> &prefix,
  176                         SmallVectorImpl<CanQualType> &prefix,
  182   CanQualType resultType = FTP->getReturnType().getUnqualifiedType();
  194   SmallVector<CanQualType, 16> argTypes;
  253   SmallVector<CanQualType, 16> argTypes;
  264 static void setCUDAKernelCallingConvention(CanQualType &FTy, CodeGenModule &CGM,
  282   CanQualType FT = GetFormalType(MD).getAs<Type>();
  308   SmallVector<CanQualType, 16> argTypes;
  344   CanQualType resultType = TheCXXABI.HasThisReturn(GD)
  354 static SmallVector<CanQualType, 16>
  356   SmallVector<CanQualType, 16> argTypes;
  362 static SmallVector<CanQualType, 16>
  364   SmallVector<CanQualType, 16> argTypes;
  396   SmallVector<CanQualType, 16> ArgTypes;
  410   CanQualType ResultType = TheCXXABI.HasThisReturn(GD)
  438   CanQualType FTy = FD->getType()->getCanonicalTypeUnqualified();
  472   SmallVector<CanQualType, 16> argTys;
  532   CanQualType ArgTys[] = {DeriveThisType(MD->getParent(), MD)};
  544   SmallVector<CanQualType, 2> ArgTys;
  596   SmallVector<CanQualType, 16> argTypes;
  642   SmallVector<CanQualType, 16> argTypes;
  662 CodeGenTypes::arrangeBuiltinFunctionDeclaration(CanQualType resultType,
  663                                               ArrayRef<CanQualType> argTypes) {
  736 CodeGenTypes::arrangeLLVMFunctionInfo(CanQualType resultType,
  739                                       ArrayRef<CanQualType> argTypes,
  800                                        CanQualType resultType,
  801                                        ArrayRef<CanQualType> argTypes,
tools/clang/lib/CodeGen/CGObjCGNU.cpp
  145   CanQualType ASTIdTy;
tools/clang/lib/CodeGen/CGObjCMac.cpp
  236     CanQualType IdType = Ctx.getCanonicalParamType(Ctx.getObjCIdType());
  237     CanQualType SelType = Ctx.getCanonicalParamType(Ctx.getObjCSelType());
  238     CanQualType Params[] = {
  251     CanQualType IdType = Ctx.getCanonicalParamType(Ctx.getObjCIdType());
  252     CanQualType SelType = Ctx.getCanonicalParamType(Ctx.getObjCSelType());
  253     CanQualType Params[] = {
  278     SmallVector<CanQualType,4> Params;
  279     CanQualType IdType = Ctx.getCanonicalParamType(Ctx.getObjCIdType());
  280     CanQualType SelType = Ctx.getCanonicalParamType(Ctx.getObjCSelType());
  305     SmallVector<CanQualType,5> Params;
  325     SmallVector<CanQualType,3> Params;
  339     SmallVector<CanQualType,1> Params;
  351     SmallVector<CanQualType,1> Params;
tools/clang/lib/CodeGen/CGVTables.cpp
   59 static bool similar(const ABIArgInfo &infoL, CanQualType typeL,
   60                     const ABIArgInfo &infoR, CanQualType typeR) {
tools/clang/lib/CodeGen/CodeGenABITypes.cpp
   57                                  CanQualType returnType,
   58                                  ArrayRef<CanQualType> argTypes,
tools/clang/lib/CodeGen/CodeGenTypes.h
  128   CanQualType DeriveThisType(const CXXRecordDecl *RD, const CXXMethodDecl *MD);
  218   arrangeBuiltinFunctionDeclaration(CanQualType resultType,
  219                                     ArrayRef<CanQualType> argTypes);
  266   const CGFunctionInfo &arrangeLLVMFunctionInfo(CanQualType returnType,
  269                                                 ArrayRef<CanQualType> argTypes,
tools/clang/lib/CodeGen/ItaniumCXXABI.cpp
  207                          SmallVectorImpl<CanQualType> &ArgTys) override;
 1519                                       SmallVectorImpl<CanQualType> &ArgTys) {
 4095   CanQualType CatchType =
tools/clang/lib/CodeGen/MicrosoftCXXABI.cpp
  209                          SmallVectorImpl<CanQualType> &ArgTys) override;
 1261                                         SmallVectorImpl<CanQualType> &ArgTys) {
tools/clang/lib/CodeGen/SwiftCallingConv.cpp
  797 static ABIArgInfo classifyType(CodeGenModule &CGM, CanQualType type,
  842 ABIArgInfo swiftcall::classifyReturnType(CodeGenModule &CGM, CanQualType type) {
  847                                            CanQualType type) {
tools/clang/lib/CodeGen/TargetInfo.cpp
 1915     CanQualType PtrTy = getContext().getPointerType(FI.getReturnType());
tools/clang/lib/CrossTU/CrossTranslationUnit.cpp
  170   CanQualType CT = ACtx.getCanonicalType(VD->getType());
tools/clang/lib/Frontend/ASTUnit.cpp
  382   llvm::DenseMap<CanQualType, unsigned> CompletionTypes;
  406         CanQualType CanUsageType
 2091         CanQualType Expected
tools/clang/lib/Sema/SemaAccess.cpp
  349 static bool MightInstantiateTo(Sema &S, CanQualType Context, CanQualType Friend) {
  349 static bool MightInstantiateTo(Sema &S, CanQualType Context, CanQualType Friend) {
  424                                   CanQualType Friend) {
tools/clang/lib/Sema/SemaCast.cpp
  195 static TryCastResult TryStaticDowncast(Sema &Self, CanQualType SrcType,
  196                                        CanQualType DestType, bool CStyle,
 1418 TryStaticDowncast(Sema &Self, CanQualType SrcType, CanQualType DestType,
 1418 TryStaticDowncast(Sema &Self, CanQualType SrcType, CanQualType DestType,
tools/clang/lib/Sema/SemaCodeComplete.cpp
  160   CanQualType PreferredType;
  811 SimplifiedTypeClass clang::getSimplifiedTypeClass(CanQualType T) {
  998       CanQualType TC = SemaRef.Context.getCanonicalType(T);
 5577   llvm::SmallPtrSet<CanQualType, 4> InitializedBases;
tools/clang/lib/Sema/SemaDecl.cpp
 7814       CanQualType CT = S->Context.getCanonicalType(T);
tools/clang/lib/Sema/SemaDeclCXX.cpp
 2696     CanQualType CanonicalBase = Context.getCanonicalType(BaseType)
 5590   CanQualType AbstractType;
 5680     CanQualType CT = T->getCanonicalTypeUnqualified().getUnqualifiedType();
10292   CanQualType CanonicalDesiredBase = DesiredBase->getCanonicalTypeUnqualified()
10295     CanQualType BaseType = Base.getType()->getCanonicalTypeUnqualified();
11450   CanQualType ClassType
11727   CanQualType ClassType
13705                             CanQualType ExpectedResultType,
13706                             CanQualType ExpectedFirstParamType,
13774   CanQualType SizeTy =
13811   CanQualType ExpectedFirstParamType =
tools/clang/lib/Sema/SemaExceptionSpec.cpp
  577     llvm::SmallPtrSet<CanQualType, 8> OldTypes, NewTypes;
  582       CanQualType TypePtr = S.Context.getCanonicalType(I).getUnqualifiedType();
tools/clang/lib/Sema/SemaExprCXX.cpp
 6741     llvm::SmallPtrSet<CanQualType,8> CTypes;
 6787       CanQualType CBaseType = Context.getCanonicalType(BaseType);
tools/clang/lib/Sema/SemaFixItUtils.cpp
   22 bool ConversionFixItGenerator::compareTypesSimple(CanQualType From,
   23                                                   CanQualType To,
   41   const CanQualType FromUnq = From.getUnqualifiedType();
   42   const CanQualType ToUnq = To.getUnqualifiedType();
   57   const CanQualType FromQTy = S.Context.getCanonicalType(FromTy);
   58   const CanQualType ToQTy = S.Context.getCanonicalType(ToTy);
tools/clang/lib/Sema/SemaLookup.cpp
 3114   CanQualType CanTy = Context.getCanonicalType(Context.getTagDeclType(RD));
 3321   CanQualType T = Context.getCanonicalType(Context.getTypeDeclType(Class));
tools/clang/lib/Sema/SemaOverload.cpp
 1489   CanQualType CanTo = Context.getCanonicalType(ToType);
 1490   CanQualType CanFrom = Context.getCanonicalType(FromType);
 5150 static bool TryCopyInitialization(const CanQualType FromQTy,
 5151                                   const CanQualType ToQTy,
 7920   SmallVector<CanQualType, ArithmeticTypesCap> ArithmeticTypes;
 8223         CanQualType NullPtrTy = S.Context.getCanonicalType(S.Context.NullPtrTy);
 8257     llvm::DenseSet<std::pair<CanQualType, CanQualType> >
 8257     llvm::DenseSet<std::pair<CanQualType, CanQualType> >
 8315         CanQualType CanonType = S.Context.getCanonicalType(*Enum);
 9959   CanQualType CFromTy = S.Context.getCanonicalType(FromTy);
 9960   CanQualType CToTy = S.Context.getCanonicalType(ToTy);
tools/clang/lib/Sema/SemaStmt.cpp
 3528     CanQualType OldDeducedType = Context.getCanonicalFunctionResultType(
 3530     CanQualType NewDeducedType = Context.getCanonicalFunctionResultType(
 4026   CanQualType FoundHandlerType;
 4036   CanQualType getFoundHandlerType() const { return FoundHandlerType; }
tools/clang/lib/Sema/SemaTemplateDeduction.cpp
 1146 bool Sema::isSameOrCompatibleFunctionType(CanQualType Param,
 1147                                           CanQualType Arg) {
 1437   CanQualType CanParam = S.Context.getCanonicalType(Param);
 1438   CanQualType CanArg = S.Context.getCanonicalType(Arg);
 1474     CanQualType ParamUnqualType = CanParam.getUnqualifiedType(),
tools/clang/lib/Sema/TreeTransform.h
 3812     CanQualType NewCanTy;
tools/clang/lib/StaticAnalyzer/Checkers/CallAndMessageChecker.cpp
  553   CanQualType CanRetTy = Ctx.getCanonicalType(RetTy);
tools/clang/lib/StaticAnalyzer/Checkers/GTestChecker.cpp
  222   CanQualType BoolTy = C.getASTContext().BoolTy;
tools/clang/lib/StaticAnalyzer/Core/ExprEngineC.cpp
  199   CanQualType T = getContext().getCanonicalType(BE->getType());
tools/clang/lib/StaticAnalyzer/Core/MemRegion.cpp
  359                                     const BlockDecl *BD, CanQualType,
 1017 MemRegionManager::getBlockCodeRegion(const BlockDecl *BD, CanQualType locTy,
tools/clang/lib/StaticAnalyzer/Core/SValBuilder.cpp
  260                                          CanQualType locTy,