Use reference type in for loop

To fix failing build job.
This commit is contained in:
Carlos Galvez 2021-10-19 16:37:37 +00:00
parent bf6b0d1674
commit 7812cb72a3
1 changed files with 1 additions and 1 deletions

View File

@ -451,7 +451,7 @@ lineIsWithinNolintBegin(const ClangTidyContext &Context,
// The following blocks were never closed. Return diagnostics for each
// instance that can be displayed along with the original clang-tidy check
// that the user was attempting to suppress.
for (const auto NolintBegin : NolintBegins) {
for (const auto &NolintBegin : NolintBegins) {
SuppressionErrors.emplace_back(
createNolintError(Context, SM, NolintBegin.first, true));
}