Home | History | Annotate | Download | only in AST

Lines Matching refs:Canonical

407   const Decl *Canonical = D->getCanonicalDecl();
409 ParsedComments.find(Canonical);
412 if (Canonical != D) {
458 ParsedComments[Canonical] = FC;
505 // Check if we already have a canonical template template parameter.
509 CanonicalTemplateTemplateParm *Canonical
511 if (Canonical)
512 return Canonical->getParam();
514 // Build a canonical template parameter list.
583 Canonical = CanonTemplateTemplateParms.FindNodeOrInsertPos(ID, InsertPos);
584 assert(Canonical == 0 && "Shouldn't be in the map!");
585 (void)Canonical;
587 // Create the canonical template template parameter entry.
588 Canonical = new (*this) CanonicalTemplateTemplateParm(CanonTTP);
589 CanonTemplateTemplateParms.InsertNode(Canonical, InsertPos);
1901 // If the base type is not canonical, make the appropriate canonical type.
1998 // If the pointee type isn't canonical, this won't be a canonical type either,
1999 // so fill in the canonical type field.
2000 QualType Canonical;
2002 Canonical = getComplexType(getCanonicalType(T));
2008 ComplexType *New = new (*this, TypeAlignment) ComplexType(T, Canonical);
2026 // If the pointee type isn't canonical, this won't be a canonical type either,
2027 // so fill in the canonical type field.
2028 QualType Canonical;
2030 Canonical = getPointerType(getCanonicalType(T));
2036 PointerType *New = new (*this, TypeAlignment) PointerType(T, Canonical);
2056 // If the block pointee type isn't canonical, this won't be a canonical
2057 // type either so fill in the canonical type field.
2058 QualType Canonical;
2060 Canonical = getBlockPointerType(getCanonicalType(T));
2068 = new (*this, TypeAlignment) BlockPointerType(T, Canonical);
2093 // If the referencee type isn't canonical, this won't be a canonical type
2094 // either, so fill in the canonical type field.
2095 QualType Canonical;
2098 Canonical = getLValueReferenceType(getCanonicalType(PointeeType));
2107 = new (*this, TypeAlignment) LValueReferenceType(T, Canonical,
2130 // If the referencee type isn't canonical, this won't be a canonical type
2131 // either, so fill in the canonical type field.
2132 QualType Canonical;
2135 Canonical = getRValueReferenceType(getCanonicalType(PointeeType));
2144 = new (*this, TypeAlignment) RValueReferenceType(T, Canonical);
2163 // If the pointee or class type isn't canonical, this won't be a canonical
2164 // type either, so fill in the canonical type field.
2165 QualType Canonical;
2167 Canonical = getMemberPointerType(getCanonicalType(T),getCanonicalType(Cls));
2175 = new (*this, TypeAlignment) MemberPointerType(T, Cls, Canonical);
2191 // Convert the array size into a canonical width matching the pointer size for
2205 // If the element type isn't canonical or has qualifiers, this won't
2206 // be a canonical type either, so fill in the canonical type field.
2243 llvm_unreachable("didn't desugar past all non-canonical types?");
2413 // also build a canonical type.
2467 // If the element type isn't canonical, this won't be a canonical type
2468 // either, so fill in the canonical type field. We also have to pull
2506 // If the element type isn't canonical, this won't be a canonical type either,
2507 // so fill in the canonical type field.
2508 QualType Canonical;
2510 Canonical = getVectorType(getCanonicalType(vecType), NumElts, VecKind);
2517 VectorType(vecType, NumElts, Canonical, VecKind);
2537 // If the element type isn't canonical, this won't be a canonical type either,
2538 // so fill in the canonical type field.
2539 QualType Canonical;
2541 Canonical = getExtVectorType(getCanonicalType(vecType), NumElts);
2548 ExtVectorType(vecType, NumElts, Canonical);
2567 // We already have a canonical version of this array type; use it as
2568 // the canonical type for a newly-built type.
2581 assert(!CanonCheck && "Dependent-sized ext_vector canonical type broken");
2614 QualType Canonical;
2617 Canonical =
2629 FunctionNoProtoType(ResultTy, Canonical, newInfo);
2635 /// \brief Determine whether \p T is canonical as the result type of a function.
2660 // Determine whether the type being created is already canonical or not.
2672 // If this type isn't canonical, get the canonical version of it.
2673 // The exception spec is not part of the canonical type.
2674 QualType Canonical;
2696 Canonical = getFunctionType(CanResultTy, CanonicalArgs, CanonicalEPI);
2729 new (FTP) FunctionProtoType(ResultTy, ArgArray, Canonical, newEPI);
2804 QualType Canonical) const {
2807 if (Canonical.isNull())
2808 Canonical = getCanonicalType(Decl->getUnderlyingType());
2810 TypedefType(Type::Typedef, Decl, Canonical);
2868 && "replacement types must always be canonical");
2895 assert(P->getAsType().isCanonical() && "Pack contains non-canonical type");
2943 assert(!TypeCheck && "Template type parameter canonical type broken");
3032 // Allocate the (non-canonical) template specialization type, but don't
3058 // Build the canonical template specialization type.
3065 // Determine whether this canonical template specialization type already
3076 // Allocate a new canonical template specialization type.
3088 "Non-dependent template-id type must have a canonical type");
3108 assert(!CheckT && "Elaborated canonical type broken");
3132 assert(!CheckT && "Paren canonical type broken");
3257 // The canonical type might not contain an unexpanded parameter pack, if it
3327 // Build the canonical type, which has the canonical base type and
3329 QualType Canonical;
3338 Canonical = getObjCObjectType(getCanonicalType(BaseType),
3341 Canonical = getObjCObjectType(getCanonicalType(BaseType),
3353 new (Mem) ObjCObjectTypeImpl(Canonical, BaseType, Protocols, NumProtocols);
3371 // Find the canonical object type.
3372 QualType Canonical;
3374 Canonical = getObjCObjectPointerType(getCanonicalType(ObjectT));
3383 new (Mem) ObjCObjectPointerType(Canonical, ObjectT);
3418 /// on canonical type's (which are always unique).
3429 // We already have a "canonical" version of an identical, dependent
3430 // typeof(expr) type. Use that as our canonical type.
3434 // Build a new, canonical typeof(expr) type.
3441 QualType Canonical = getCanonicalType(tofExpr->getType());
3442 toe = new (*this, TypeAlignment) TypeOfExprType(tofExpr, Canonical);
3452 /// on canonical type's (which are always unique).
3454 QualType Canonical = getCanonicalType(tofType);
3455 TypeOfType *tot = new (*this, TypeAlignment) TypeOfType(tofType, Canonical);
3465 /// on canonical types (which are always unique).
3481 // We already have a "canonical" version of an equivalent, dependent
3482 // decltype type. Use that as our canonical type.
3486 // Build a new, canonical typeof(expr) type.
3544 // If the atomic value type isn't canonical, this won't be a canonical type
3545 // either, so fill in the canonical type field.
3546 QualType Canonical;
3548 Canonical = getAtomicType(getCanonicalType(T));
3554 AtomicType *New = new (*this, TypeAlignment) AtomicType(T, Canonical);
3815 // The canonical template name is the canonical template declaration.
3919 // A namespace is canonical; build a nested-name-specifier with
3925 // A namespace is canonical; build a nested-name-specifier with
3937 // as the canonical nested-name-specifier. This is required to canonicalize
3954 // The global specifier is canonical and unique.
4047 /// handling typedefs etc. The canonical type of "T" must be an array type,
6926 // If the canonical type classes don't match.
6953 // The canonical type classes match.
6961 llvm_unreachable("Non-canonical and dependent types shouldn't get here");