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

References

tools/clang/lib/Sema/SemaType.cpp
 4388     IsQualifiedFunction &= DeclType.Kind == DeclaratorChunk::Paren;
 4389     switch (DeclType.Kind) {
 4398         S.Diag(DeclType.Loc, diag::err_blocks_disable) << LangOpts.OpenCL;
 4401       inferPointerNullability(SimplePointerKind::BlockPointer, DeclType.Loc,
 4402                               DeclType.EndLoc, DeclType.getAttrs(),
 4402                               DeclType.EndLoc, DeclType.getAttrs(),
 4406       if (DeclType.Cls.TypeQuals || LangOpts.OpenCL) {
 4410           DeclType.Cls.TypeQuals |= DeclSpec::TQ_const;
 4411         T = S.BuildQualifiedType(T, DeclType.Loc, DeclType.Cls.TypeQuals);
 4411         T = S.BuildQualifiedType(T, DeclType.Loc, DeclType.Cls.TypeQuals);
 4424       inferPointerNullability(SimplePointerKind::Pointer, DeclType.Loc,
 4425                               DeclType.EndLoc, DeclType.getAttrs(),
 4425                               DeclType.EndLoc, DeclType.getAttrs(),
 4430         if (DeclType.Ptr.TypeQuals)
 4431           T = S.BuildQualifiedType(T, DeclType.Loc, DeclType.Ptr.TypeQuals);
 4431           T = S.BuildQualifiedType(T, DeclType.Loc, DeclType.Ptr.TypeQuals);
 4446       T = S.BuildPointerType(T, DeclType.Loc, Name);
 4447       if (DeclType.Ptr.TypeQuals)
 4448         T = S.BuildQualifiedType(T, DeclType.Loc, DeclType.Ptr.TypeQuals);
 4448         T = S.BuildQualifiedType(T, DeclType.Loc, DeclType.Ptr.TypeQuals);
 4458       T = S.BuildReferenceType(T, DeclType.Ref.LValueRef, DeclType.Loc, Name);
 4458       T = S.BuildReferenceType(T, DeclType.Ref.LValueRef, DeclType.Loc, Name);
 4460       if (DeclType.Ref.HasRestrict)
 4461         T = S.BuildQualifiedType(T, DeclType.Loc, Qualifiers::Restrict);
 4472       DeclaratorChunk::ArrayTypeInfo &ATI = DeclType.Arr;
 4485         S.Diag(DeclType.Loc, diag::err_array_star_outside_prototype);
 4496           S.Diag(DeclType.Loc, diag::err_array_static_outside_prototype) <<
 4508           S.Diag(DeclType.Loc, diag::err_array_static_not_outermost) <<
 4523           S.Diag(DeclType.Loc, diag::err_illegal_decl_array_of_auto)
 4532           !hasNullabilityAttr(DeclType.getAttrs()) &&
 4536         checkNullabilityConsistency(S, SimplePointerKind::Array, DeclType.Loc);
 4540                            SourceRange(DeclType.Loc, DeclType.EndLoc), Name);
 4540                            SourceRange(DeclType.Loc, DeclType.EndLoc), Name);
 4547       DeclaratorChunk::FunctionTypeInfo &FTI = DeclType.Fun;
 4615         S.Diag(DeclType.Loc, diagID) << T->isFunctionType() << T;
 4695           S.Diag(DeclType.Loc, diag::err_func_returning_qualified_void) << T;
 4702           S.Diag(DeclType.Loc, diag::warn_deprecated_volatile_return) << T;
 4760         warnAboutAmbiguousFunction(S, D, DeclType, T);
 4763           getCCForDeclaratorChunk(S, D, DeclType.getAttrs(), FTI, chunkIndex));
 4821               S.Diag(DeclType.Loc, diag::err_void_only_param);
 4832                 S.Diag(DeclType.Loc, diag::err_void_param_qualified);
 4958       CXXScopeSpec &SS = DeclType.Mem.Scope();
 4962       inferPointerNullability(SimplePointerKind::MemberPointer, DeclType.Loc,
 4963                               DeclType.EndLoc, DeclType.getAttrs(),
 4963                               DeclType.EndLoc, DeclType.getAttrs(),
 4998         S.Diag(DeclType.Mem.Scope().getBeginLoc(),
 5001           << DeclType.Mem.Scope().getRange();
 5006         T = S.BuildMemberPointerType(T, ClsType, DeclType.Loc,
 5011       } else if (DeclType.Mem.TypeQuals) {
 5012         T = S.BuildQualifiedType(T, DeclType.Loc, DeclType.Mem.TypeQuals);
 5012         T = S.BuildQualifiedType(T, DeclType.Loc, DeclType.Mem.TypeQuals);
 5018       T = S.BuildReadPipeType(T, DeclType.Loc);
 5031     processTypeAttrs(state, T, TAL_DeclChunk, DeclType.getAttrs());
 5033     if (DeclType.Kind != DeclaratorChunk::Paren) {
 5034       if (ExpectNoDerefChunk && !IsNoDerefableChunk(DeclType))
 5035         S.Diag(DeclType.Loc, diag::warn_noderef_on_non_pointer_or_array);