reference, declaration → definition definition → references, declarations, derived classes, virtual overrides reference to multiple definitions → definitions unreferenced |
4020 ASTContext &Context = S.Context; 4021 const LangOptions &LangOpts = S.getLangOpts(); 4089 S.Diag(DeclChunk.Loc, DiagId) << DiagKind; 4104 SourceLocation assumeNonNullLoc = S.PP.getPragmaAssumeNonNullLoc(); 4107 recordNullabilitySeen(S, assumeNonNullLoc); 4131 !T->getNullability(S.Context)) { 4189 switch (classifyPointerDeclarator(S, T, D, wrappingKind)) { 4265 auto isVaList = [&S](QualType T) -> bool { 4269 TypedefDecl *vaListTypedef = S.Context.getBuiltinVaListDecl(); 4301 S.getNullabilityKeyword(*inferNullability), SourceRange(pointerLoc), 4315 S.Diag(pointerLoc, diag::warn_nullability_inferred_on_nested_type); 4317 fixItNullability(S, Diag, pointerLoc, NullabilityKind::NonNull); 4337 checkNullabilityConsistency(S, pointerKind, pointerLoc, pointerEndLoc); 4344 if (S.CodeSynthesisContexts.empty()) { 4346 !T->getNullability(S.Context)) { 4370 T->isArrayType() && !T->getNullability(S.Context) && !isVaList(T) && 4373 checkNullabilityConsistency(S, SimplePointerKind::Array, 4392 warnAboutRedundantParens(S, D, T); 4393 T = S.BuildParenType(T); 4398 S.Diag(DeclType.Loc, diag::err_blocks_disable) << LangOpts.OpenCL; 4405 T = S.BuildBlockPointerType(T, D.getIdentifierLoc(), Name); 4411 T = S.BuildQualifiedType(T, DeclType.Loc, DeclType.Cls.TypeQuals); 4417 if (LangOpts.CPlusPlus && S.CheckDistantExceptionSpec(T)) { 4418 S.Diag(D.getIdentifierLoc(), diag::err_distant_exception_spec); 4431 T = S.BuildQualifiedType(T, DeclType.Loc, DeclType.Ptr.TypeQuals); 4441 S.Diag(D.getIdentifierLoc(), diag::err_opencl_pointer_to_type) << T; 4446 T = S.BuildPointerType(T, DeclType.Loc, Name); 4448 T = S.BuildQualifiedType(T, DeclType.Loc, DeclType.Ptr.TypeQuals); 4453 if (LangOpts.CPlusPlus && S.CheckDistantExceptionSpec(T)) { 4454 S.Diag(D.getIdentifierLoc(), diag::err_distant_exception_spec); 4458 T = S.BuildReferenceType(T, DeclType.Ref.LValueRef, DeclType.Loc, Name); 4461 T = S.BuildQualifiedType(T, DeclType.Loc, Qualifiers::Restrict); 4467 if (LangOpts.CPlusPlus && S.CheckDistantExceptionSpec(T)) { 4468 S.Diag(D.getIdentifierLoc(), diag::err_distant_exception_spec); 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) 4536 checkNullabilityConsistency(S, SimplePointerKind::Array, DeclType.Loc); 4539 T = S.BuildArrayType(T, ASM, ArraySize, ATI.TypeQuals, 4558 if (!S.getLangOpts().CPlusPlus14) { 4559 S.Diag(D.getDeclSpec().getTypeSpecTypeLoc(), 4566 S.Diag(D.getDeclSpec().getTypeSpecTypeLoc(), 4572 S.Diag(D.getBeginLoc(), diag::err_trailing_return_in_parens) 4578 S.Diag(D.getDeclSpec().getBeginLoc(), 4587 S.Diag(D.getDeclSpec().getTypeSpecTypeLoc(), 4592 T = S.GetTypeFromParser(FTI.getTrailingReturnType(), &TInfo); 4615 S.Diag(DeclType.Loc, diagID) << T->isFunctionType() << T; 4623 if (S.getLangOpts().OpenCL) { 4624 if (!S.getOpenCLOptions().isEnabled("cl_khr_fp16")) { 4625 S.Diag(D.getIdentifierLoc(), diag::err_opencl_invalid_return) 4629 } else if (!S.getLangOpts().HalfArgsAndReturns) { 4630 S.Diag(D.getIdentifierLoc(), 4641 S.Diag(D.getIdentifierLoc(), diag::err_opencl_invalid_return) 4653 S.Diag(D.getIdentifierLoc(), diag::err_opencl_variadic_function); 4664 FixitLoc = S.getLocForEndOfToken(TInfo->getTypeLoc().getEndLoc()); 4667 FixitLoc = S.getLocForEndOfToken(D.getDeclSpec().getEndLoc()); 4669 S.Diag(DiagLoc, diag::err_object_cannot_be_passed_returned_by_value) 4688 !(S.getLangOpts().CPlusPlus && 4690 if (T->isVoidType() && !S.getLangOpts().CPlusPlus && 4695 S.Diag(DeclType.Loc, diag::err_func_returning_qualified_void) << T; 4697 diagnoseRedundantReturnTypeQualifiers(S, T, D, chunkIndex); 4701 if (T.isVolatileQualified() && S.getLangOpts().CPlusPlus2a) 4702 S.Diag(DeclType.Loc, diag::warn_deprecated_volatile_return) << T; 4734 S.SourceMgr.getImmediateExpansionRange(AttrLoc).getBegin(); 4736 S.Diag(AttrLoc, diag::warn_arc_lifetime_result_type) 4745 S.Diag(Tag->getLocation(), diag::err_type_defined_in_result_type) 4752 S.Diag(FTI.getExceptionSpecLocBeg(), 4760 warnAboutAmbiguousFunction(S, D, DeclType, T); 4763 getCCForDeclaratorChunk(S, D, DeclType.getAttrs(), FTI, chunkIndex)); 4775 S.Diag(FTI.getEllipsisLoc(), diag::err_ellipsis_first_param); 4780 S.Diag(FTI.Params[0].IdentLoc, 4821 S.Diag(DeclType.Loc, diag::err_void_only_param); 4826 S.Diag(FTI.Params[i].IdentLoc, diag::err_param_with_void_type); 4832 S.Diag(DeclType.Loc, diag::err_void_param_qualified); 4840 if (S.getLangOpts().OpenCL) { 4841 if (!S.getOpenCLOptions().isEnabled("cl_khr_fp16")) { 4842 S.Diag(Param->getLocation(), 4847 } else if (!S.getLangOpts().HalfArgsAndReturns) { 4848 S.Diag(Param->getLocation(), 4890 checkExtParameterInfos(S, ParamTys, EPI, 4913 S.checkExceptionSpecification(D.isFunctionDeclarationContext(), 4940 if (DiagnoseMultipleAddrSpaceAttributes(S, ASIdx, ASIdxNew, 4969 } else if (S.isDependentScopeSpecifier(SS) || 4970 dyn_cast_or_null<CXXRecordDecl>(S.computeDeclContext(SS))) { 4998 S.Diag(DeclType.Mem.Scope().getBeginLoc(), 5006 T = S.BuildMemberPointerType(T, ClsType, DeclType.Loc, 5012 T = S.BuildQualifiedType(T, DeclType.Loc, DeclType.Mem.TypeQuals); 5018 T = S.BuildReadPipeType(T, DeclType.Loc); 5035 S.Diag(DeclType.Loc, diag::warn_noderef_on_non_pointer_or_array); 5042 S.Diag(state.getDeclarator().getBeginLoc(), 5066 S.Diag(DeclType.Loc, diag::warn_strict_prototypes) 5101 DeclContext *DC = S.computeDeclContext(D.getCXXScopeSpec()); 5146 BeforeThanCompare<SourceLocation>(S.getSourceManager())); 5152 S.Diag(Loc, diag::err_invalid_qualified_function_type) 5168 T = S.BuildParenType(T); 5188 if (T.isVolatileQualified() && S.getLangOpts().CPlusPlus2a && 5191 S.Diag(D.getIdentifierLoc(), diag::warn_deprecated_volatile_param) << T; 5213 S.Diag(D.getEllipsisLoc(), 5233 S.Diag(D.getEllipsisLoc(), 5266 S.Diag(D.getEllipsisLoc(),