Skip to content

Commit c47ddb1

Browse files
committed
nits
1 parent a1bcecb commit c47ddb1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

clang/lib/Frontend/TextDiagnostic.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -353,7 +353,7 @@ static void selectInterestingSourceRegion(
353353
std::string &SourceLine, std::string &CaretLine,
354354
std::string &FixItInsertionLine, Columns NonGutterColumns,
355355
const SourceColumnMap &Map,
356-
SmallVector<clang::TextDiagnostic::StyleRange> &Styles) {
356+
SmallVectorImpl<clang::TextDiagnostic::StyleRange> &Styles) {
357357
Columns CaretColumns = CaretLine.size();
358358
Columns FixItColumns = llvm::sys::locale::columnWidth(FixItInsertionLine);
359359
Columns MaxColumns =
@@ -522,7 +522,7 @@ static void selectInterestingSourceRegion(
522522
? (Map.columnToByte(FrontColumnsRemoved) - Bytes(FrontEllipse.size()))
523523
: 0;
524524
Bytes CodeEnd = Map.columnToByte(CaretEnd);
525-
for (auto &R : Styles) {
525+
for (TextDiagnostic::StyleRange &R : Styles) {
526526
if (R.End < static_cast<unsigned>(BytesRemoved.V)) {
527527
R.Start = R.End = std::numeric_limits<int>::max();
528528
continue;

0 commit comments

Comments
 (0)