Lines Matching defs:Canonical
447 const Decl *Canonical = D->getCanonicalDecl();
449 ParsedComments.find(Canonical);
452 if (Canonical != D) {
543 ParsedComments[Canonical] = FC;
590 // Check if we already have a canonical template template parameter.
594 CanonicalTemplateTemplateParm *Canonical
596 if (Canonical)
597 return Canonical->getParam();
599 // Build a canonical template parameter list.
668 Canonical = CanonTemplateTemplateParms.FindNodeOrInsertPos(ID, InsertPos);
669 assert(!Canonical && "Shouldn't be in the map!");
670 (void)Canonical;
672 // Create the canonical template template parameter entry.
673 Canonical = new (*this) CanonicalTemplateTemplateParm(CanonTTP);
674 CanonTemplateTemplateParms.InsertNode(Canonical, InsertPos);
2152 // If the base type is not canonical, make the appropriate canonical type.
2318 // If the pointee type isn't canonical, this won't be a canonical type either,
2319 // so fill in the canonical type field.
2320 QualType Canonical;
2322 Canonical = getComplexType(getCanonicalType(T));
2328 ComplexType *New = new (*this, TypeAlignment) ComplexType(T, Canonical);
2346 // If the pointee type isn't canonical, this won't be a canonical type either,
2347 // so fill in the canonical type field.
2348 QualType Canonical;
2350 Canonical = getPointerType(getCanonicalType(T));
2356 PointerType *New = new (*this, TypeAlignment) PointerType(T, Canonical);
2370 QualType Canonical = getCanonicalType(New);
2377 AdjustedType(Type::Adjusted, Orig, New, Canonical);
2410 QualType Canonical = getCanonicalType(Decayed);
2416 AT = new (*this, TypeAlignment) DecayedType(T, Decayed, Canonical);
2436 // If the block pointee type isn't canonical, this won't be a canonical
2437 // type either so fill in the canonical type field.
2438 QualType Canonical;
2440 Canonical = getBlockPointerType(getCanonicalType(T));
2448 = new (*this, TypeAlignment) BlockPointerType(T, Canonical);
2473 // If the referencee type isn't canonical, this won't be a canonical type
2474 // either, so fill in the canonical type field.
2475 QualType Canonical;
2478 Canonical = getLValueReferenceType(getCanonicalType(PointeeType));
2487 = new (*this, TypeAlignment) LValueReferenceType(T, Canonical,
2510 // If the referencee type isn't canonical, this won't be a canonical type
2511 // either, so fill in the canonical type field.
2512 QualType Canonical;
2515 Canonical = getRValueReferenceType(getCanonicalType(PointeeType));
2524 = new (*this, TypeAlignment) RValueReferenceType(T, Canonical);
2543 // If the pointee or class type isn't canonical, this won't be a canonical
2544 // type either, so fill in the canonical type field.
2545 QualType Canonical;
2547 Canonical = getMemberPointerType(getCanonicalType(T),getCanonicalType(Cls));
2555 = new (*this, TypeAlignment) MemberPointerType(T, Cls, Canonical);
2571 // Convert the array size into a canonical width matching the pointer size for
2585 // If the element type isn't canonical or has qualifiers, this won't
2586 // be a canonical type either, so fill in the canonical type field.
2623 llvm_unreachable("didn't desugar past all non-canonical types?");
2793 // also build a canonical type.
2848 // If the element type isn't canonical, this won't be a canonical type
2849 // either, so fill in the canonical type field. We also have to pull
2887 // If the element type isn't canonical, this won't be a canonical type either,
2888 // so fill in the canonical type field.
2889 QualType Canonical;
2891 Canonical = getVectorType(getCanonicalType(vecType), NumElts, VecKind);
2898 VectorType(vecType, NumElts, Canonical, VecKind);
2918 // If the element type isn't canonical, this won't be a canonical type either,
2919 // so fill in the canonical type field.
2920 QualType Canonical;
2922 Canonical = getExtVectorType(getCanonicalType(vecType), NumElts);
2929 ExtVectorType(vecType, NumElts, Canonical);
2948 // We already have a canonical version of this array type; use it as
2949 // the canonical type for a newly-built type.
2962 assert(!CanonCheck && "Dependent-sized ext_vector canonical type broken");
2994 QualType Canonical;
2996 Canonical = getFunctionNoProtoType(getCanonicalType(ResultTy), Info);
3006 FunctionNoProtoType(ResultTy, Canonical, newInfo);
3012 /// \brief Determine whether \p T is canonical as the result type of a function.
3023 // Canonical result types do not have ARC lifetime qualifiers.
3050 // Determine whether the type being created is already canonical or not.
3058 // If this type isn't canonical, get the canonical version of it.
3059 // The exception spec is not part of the canonical type.
3060 QualType Canonical;
3071 // Adjust the canonical function result type.
3073 Canonical = getFunctionType(CanResultTy, CanonicalArgs, CanonicalEPI);
3105 new (FTP) FunctionProtoType(ResultTy, ArgArray, Canonical, newEPI);
3178 QualType Canonical) const {
3181 if (Canonical.isNull())
3182 Canonical = getCanonicalType(Decl->getUnderlyingType());
3184 TypedefType(Type::Typedef, Decl, Canonical);
3241 && "replacement types must always be canonical");
3266 assert(P.getAsType().isCanonical() && "Pack contains non-canonical type");
3314 assert(!TypeCheck && "Template type parameter canonical type broken");
3403 // Allocate the (non-canonical) template specialization type, but don't
3429 // Build the canonical template specialization type.
3436 // Determine whether this canonical template specialization type already
3447 // Allocate a new canonical template specialization type.
3459 "Non-dependent template-id type must have a canonical type");
3479 assert(!CheckT && "Elaborated canonical type broken");
3503 assert(!CheckT && "Paren canonical type broken");
3626 // The canonical type might not contain an unexpanded parameter pack, if it
3715 // Build the canonical type, which has the canonical base type and a
3718 QualType canonical;
3727 // Determine the canonical type arguments.
3749 canonical = getObjCObjectType(getCanonicalType(baseType), canonTypeArgs,
3761 new (mem) ObjCObjectTypeImpl(canonical, baseType, typeArgs, protocols,
3846 // Find the canonical object type.
3847 QualType Canonical;
3849 Canonical = getObjCObjectPointerType(getCanonicalType(ObjectT));
3858 new (Mem) ObjCObjectPointerType(Canonical, ObjectT);
3893 /// on canonical type's (which are always unique).
3904 // We already have a "canonical" version of an identical, dependent
3905 // typeof(expr) type. Use that as our canonical type.
3909 // Build a new, canonical typeof(expr) type.
3916 QualType Canonical = getCanonicalType(tofExpr->getType());
3917 toe = new (*this, TypeAlignment) TypeOfExprType(tofExpr, Canonical);
3927 /// on canonical types (which are always unique).
3929 QualType Canonical = getCanonicalType(tofType);
3930 TypeOfType *tot = new (*this, TypeAlignment) TypeOfType(tofType, Canonical);
3954 // Build a new, canonical typeof(expr) type.
3984 /// deduced to the given type, or to the canonical undeduced 'auto' type, or the
3985 /// canonical deduced-but-dependent 'auto' type.
4019 // If the atomic value type isn't canonical, this won't be a canonical type
4020 // either, so fill in the canonical type field.
4021 QualType Canonical;
4023 Canonical = getAtomicType(getCanonicalType(T));
4029 AtomicType *New = new (*this, TypeAlignment) AtomicType(T, Canonical);
4292 // The canonical template name is the canonical template declaration.
4396 // A namespace is canonical; build a nested-name-specifier with
4402 // A namespace is canonical; build a nested-name-specifier with
4414 // as the canonical nested-name-specifier. This is required to canonicalize
4432 // The global specifier and __super specifer are canonical and unique.
4524 /// handling typedefs etc. The canonical type of "T" must be an array type,
7600 // If the canonical type classes don't match.
7621 // The canonical type classes match.
7629 llvm_unreachable("Non-canonical and dependent types shouldn't get here");