Home | History | Annotate | Download | only in Sema

Lines Matching refs:DeclType

975     assert(E && "Didn't get an expression for decltype?");
1330 // decltype-specifier (7.1.6.2) denotes a type TR that is a reference to a
2042 DeclaratorChunk &DeclType = D.getTypeObject(chunkIndex);
2043 if (DeclType.Kind == DeclaratorChunk::Function) {
2044 const DeclaratorChunk::FunctionTypeInfo &FTI = DeclType.Fun;
2153 /// can be contained within the declarator chunk DeclType, and produce an
2156 DeclaratorChunk &DeclType) {
2161 switch (DeclType.Kind) {
2183 S.Diag(DeclType.Loc, diag::err_compound_qualified_function_type)
2191 DeclaratorChunk &DeclType, QualType RT) {
2192 const DeclaratorChunk::FunctionTypeInfo &FTI = DeclType.Fun;
2221 SourceRange ParenRange(DeclType.Loc, DeclType.EndLoc);
2223 S.Diag(DeclType.Loc,
2271 S.Diag(DeclType.Loc, diag::note_empty_parens_default_ctor)
2278 S.Diag(DeclType.Loc, diag::note_empty_parens_zero_initialize)
2316 DeclaratorChunk &DeclType = D.getTypeObject(chunkIndex);
2318 checkQualifiedFunction(S, T, DeclType);
2319 IsQualifiedFunction = DeclType.Kind == DeclaratorChunk::Paren;
2321 switch (DeclType.Kind) {
2328 S.Diag(DeclType.Loc, diag::err_blocks_disable);
2331 if (DeclType.Cls.TypeQuals)
2332 T = S.BuildQualifiedType(T, DeclType.Loc, DeclType.Cls.TypeQuals);
2344 if (DeclType.Ptr.TypeQuals)
2345 T = S.BuildQualifiedType(T, DeclType.Loc, DeclType.Ptr.TypeQuals);
2348 T = S.BuildPointerType(T, DeclType.Loc, Name);
2349 if (DeclType.Ptr.TypeQuals)
2350 T = S.BuildQualifiedType(T, DeclType.Loc, DeclType.Ptr.TypeQuals);
2361 T = S.BuildReferenceType(T, DeclType.Ref.LValueRef, DeclType.Loc, Name);
2364 if (DeclType.Ref.HasRestrict)
2365 T = S.BuildQualifiedType(T, DeclType.Loc, Qualifiers::Restrict);
2376 DeclaratorChunk::ArrayTypeInfo &ATI = DeclType.Arr;
2389 S.Diag(DeclType.Loc, diag::err_array_star_outside_prototype);
2400 S.Diag(DeclType.Loc, diag::err_array_static_outside_prototype) <<
2423 S.Diag(DeclType.Loc, diag::err_array_static_not_outermost) <<
2439 SourceRange(DeclType.Loc, DeclType.EndLoc), Name);
2446 const DeclaratorChunk::FunctionTypeInfo &FTI = DeclType.Fun;
2493 S.Diag(DeclType.Loc, diagID) << T->isFunctionType() << T;
2598 warnAboutAmbiguousFunction(S, D, DeclType, T);
2665 S.Diag(DeclType.Loc, diag::err_void_only_param);
2677 S.Diag(DeclType.Loc, diag::err_void_param_qualified);
2754 CXXScopeSpec &SS = DeclType.Mem.Scope();
2788 S.Diag(DeclType.Mem.Scope().getBeginLoc(),
2791 << DeclType.Mem.Scope().getRange();
2796 T = S.BuildMemberPointerType(T, ClsType, DeclType.Loc, D.getIdentifier());
2800 } else if (DeclType.Mem.TypeQuals) {
2801 T = S.BuildQualifiedType(T, DeclType.Loc, DeclType.Mem.TypeQuals);
2812 if (AttributeList *attrs = const_cast<AttributeList*>(DeclType.getAttrs()))
4811 /// getDecltypeForExpr - Given an expr, will return the decltype for
4819 // The type denoted by decltype(e) is defined as follows:
4822 // member access (5.2.5), decltype(e) is the type of the entity named
4841 // Every occurrence of decltype((x)) where x is a possibly
4865 // - otherwise, if e is an xvalue, decltype(e) is T&&, where T is the
4868 // - otherwise, if e is an lvalue, decltype(e) is T&, where T is the
4871 // - otherwise, decltype(e) is the type of e.