S&P 500, Nasdaq close at all-time highs ahead of inflation data and second-quarter earnings reports

by