Lines Matching defs:DeclType
842 assert(E && "Didn't get an expression for decltype?");
1165 // decltype-specifier (7.1.6.2) denotes a type TR that is a reference to a
1890 DeclaratorChunk &DeclType = D.getTypeObject(chunkIndex);
1891 if (DeclType.Kind == DeclaratorChunk::Function) {
1892 const DeclaratorChunk::FunctionTypeInfo &FTI = DeclType.Fun;
1997 /// can be contained within the declarator chunk DeclType, and produce an
2000 DeclaratorChunk &DeclType) {
2005 switch (DeclType.Kind) {
2027 S.Diag(DeclType.Loc, diag::err_compound_qualified_function_type)
2074 DeclaratorChunk &DeclType = D.getTypeObject(chunkIndex);
2076 checkQualifiedFunction(S, T, DeclType);
2077 IsQualifiedFunction = DeclType.Kind == DeclaratorChunk::Paren;
2079 switch (DeclType.Kind) {
2086 S.Diag(DeclType.Loc, diag::err_blocks_disable);
2089 if (DeclType.Cls.TypeQuals)
2090 T = S.BuildQualifiedType(T, DeclType.Loc, DeclType.Cls.TypeQuals);
2102 if (DeclType.Ptr.TypeQuals)
2103 T = S.BuildQualifiedType(T, DeclType.Loc, DeclType.Ptr.TypeQuals);
2106 T = S.BuildPointerType(T, DeclType.Loc, Name);
2107 if (DeclType.Ptr.TypeQuals)
2108 T = S.BuildQualifiedType(T, DeclType.Loc, DeclType.Ptr.TypeQuals);
2119 T = S.BuildReferenceType(T, DeclType.Ref.LValueRef, DeclType.Loc, Name);
2122 if (DeclType.Ref.HasRestrict)
2123 T = S.BuildQualifiedType(T, DeclType.Loc, Qualifiers::Restrict);
2134 DeclaratorChunk::ArrayTypeInfo &ATI = DeclType.Arr;
2147 S.Diag(DeclType.Loc, diag::err_array_star_outside_prototype);
2152 SourceRange(DeclType.Loc, DeclType.EndLoc), Name);
2159 const DeclaratorChunk::FunctionTypeInfo &FTI = DeclType.Fun;
2204 S.Diag(DeclType.Loc, diagID) << T->isFunctionType() << T;
2325 S.Diag(DeclType.Loc, diag::err_void_only_param);
2337 S.Diag(DeclType.Loc, diag::err_void_param_qualified);
2412 CXXScopeSpec &SS = DeclType.Mem.Scope();
2446 S.Diag(DeclType.Mem.Scope().getBeginLoc(),
2449 << DeclType.Mem.Scope().getRange();
2454 T = S.BuildMemberPointerType(T, ClsType, DeclType.Loc, D.getIdentifier());
2458 } else if (DeclType.Mem.TypeQuals) {
2459 T = S.BuildQualifiedType(T, DeclType.Loc, DeclType.Mem.TypeQuals);
2470 if (AttributeList *attrs = const_cast<AttributeList*>(DeclType.getAttrs()))
4387 /// getDecltypeForExpr - Given an expr, will return the decltype for
4395 // The type denoted by decltype(e) is defined as follows:
4398 // member access (5.2.5), decltype(e) is the type of the entity named
4411 // Every occurrence of decltype((x)) where x is a possibly
4435 // - otherwise, if e is an xvalue, decltype(e) is T&&, where T is the
4438 // - otherwise, if e is an lvalue, decltype(e) is T&, where T is the
4441 // - otherwise, decltype(e) is the type of e.