Home | History | Annotate | Download | only in Sema

Lines Matching refs:StartLoc

1042 /// \param StartLoc The first location of the expression.
1052 Sema::ActOnCXXNew(SourceLocation StartLoc, bool UseGlobal,
1119 return BuildCXXNew(SourceRange(StartLoc, D.getLocEnd()), UseGlobal,
1164 SourceLocation StartLoc = Range.getBegin();
1198 return ExprError(Diag(StartLoc, diag::err_auto_new_requires_ctor_arg)
1214 return ExprError(Diag(StartLoc, diag::err_auto_new_deduction_failure)
1277 Diag(StartLoc, diag::warn_cxx98_compat_array_size_conversion)
1333 ConvertedSize = PerformContextualImplicitConversion(StartLoc, ArraySize,
1407 FindAllocationFunctions(StartLoc,
1418 = doesUsualArrayDeleteWantSize(*this, StartLoc, AllocType);
1451 Diag(StartLoc, diag::warn_overaligned_type)
1466 Diag(StartLoc, diag::err_new_array_init_args) << InitRange;
1504 = InitializedEntity::InitializeNew(StartLoc, InitType);
1522 if (DiagnoseUseOfDecl(OperatorNew, StartLoc))
1524 MarkFunctionReferenced(StartLoc, OperatorNew);
1527 if (DiagnoseUseOfDecl(OperatorDelete, StartLoc))
1529 MarkFunctionReferenced(StartLoc, OperatorDelete);
1540 MarkFunctionReferenced(StartLoc, dtor);
1541 CheckDestructorAccess(StartLoc, dtor,
1544 if (DiagnoseUseOfDecl(dtor, StartLoc))
1617 bool Sema::FindAllocationFunctions(SourceLocation StartLoc, SourceRange Range,
1658 if (FindAllocationOverload(StartLoc, Range, NewName, AllocArgs, Record,
1668 if (FindAllocationOverload(StartLoc, Range, NewName, AllocArgs, TUDecl,
1680 if (FindAllocationOverload(StartLoc, Range, NewName, AllocArgs, TUDecl,
1702 LookupResult FoundDelete(*this, DeleteName, StartLoc, LookupOrdinaryName);
1765 TemplateDeductionInfo Info(StartLoc);
1822 Diag(StartLoc, diag::err_placement_new_non_placement_delete)
1829 CheckAllocationAccess(StartLoc, Range, FoundDelete.getNamingClass(),
1840 /// \param StartLoc The location of the 'new' token.
1853 bool Sema::FindAllocationOverload(SourceLocation StartLoc, SourceRange Range,
1858 LookupResult R(*this, Name, StartLoc, LookupOrdinaryName);
1863 return Diag(StartLoc, diag::err_ovl_no_viable_function_in_call)
1872 OverloadCandidateSet Candidates(StartLoc, OverloadCandidateSet::CSK_Normal);
1894 switch (Candidates.BestViableFunction(*this, StartLoc, Best)) {
1898 if (CheckAllocationAccess(StartLoc, Range, R.getNamingClass(),
1908 Diag(StartLoc, diag::err_ovl_no_viable_function_in_call)
1916 Diag(StartLoc, diag::err_ovl_ambiguous_call)
1924 Diag(StartLoc, diag::err_ovl_deleted_call)
2120 FunctionDecl *Sema::FindUsualDeallocationFunction(SourceLocation StartLoc,
2125 LookupResult FoundDelete(*this, Name, StartLoc, LookupOrdinaryName);
2162 bool Sema::FindDeallocationFunction(SourceLocation StartLoc, CXXRecordDecl *RD,
2165 LookupResult Found(*this, Name, StartLoc, LookupOrdinaryName);
2194 Diag(StartLoc, diag::err_deleted_function_use);
2200 if (CheckAllocationAccess(StartLoc, SourceRange(), Found.getNamingClass(),
2209 Diag(StartLoc, diag::err_ambiguous_suitable_delete_member_function_found)
2224 Diag(StartLoc, diag::err_no_suitable_delete_member_function_found)
2244 Sema::ActOnCXXDelete(SourceLocation StartLoc, bool UseGlobal,
2319 Ex = PerformContextualImplicitConversion(StartLoc, Ex.get(), Converter);
2341 Diag(StartLoc, diag::ext_delete_void_ptr_operand)
2344 return ExprError(Diag(StartLoc, diag::err_delete_operand)
2347 if (!RequireCompleteType(StartLoc, Pointee,
2361 Diag(StartLoc, diag::warn_delete_array_type)
2363 << FixItHint::CreateInsertion(PP.getLocForEndOfToken(StartLoc), "[]");
2372 FindDeallocationFunction(StartLoc, PointeeRD, DeleteName,
2383 doesUsualArrayDeleteWantSize(*this, StartLoc, PointeeElem);
2393 MarkFunctionReferenced(StartLoc,
2395 if (DiagnoseUseOfDecl(Dtor, StartLoc))
2413 Diag(StartLoc, diag::warn_delete_abstract_non_virtual_dtor)
2418 Diag(StartLoc, diag::warn_delete_non_virtual_dtor) << PointeeElem;
2428 StartLoc, !RequireCompleteType(StartLoc, Pointee, 0) &&
2433 MarkFunctionReferenced(StartLoc, OperatorDelete);
2446 UsualArrayDeleteWantsSize, OperatorDelete, Ex.get(), StartLoc);