[clang-format] Use a reference in loop variable; NFC

llvm-svn: 297455
This commit is contained in:
Krasimir Georgiev 2017-03-10 13:09:29 +00:00
parent 9dfa6ade4f
commit d86c25d6d9
1 changed files with 1 additions and 1 deletions

View File

@ -2155,7 +2155,7 @@ static bool continuesLineComment(const FormatToken &FormatTok,
// Scan for '{//'. If found, use the column of '{' as a min column for line
// comment section continuation.
const FormatToken *PreviousToken = nullptr;
for (const UnwrappedLineNode Node : Line.Tokens) {
for (const UnwrappedLineNode &Node : Line.Tokens) {
if (PreviousToken && PreviousToken->is(tok::l_brace) &&
isLineComment(*Node.Tok)) {
MinColumnToken = PreviousToken;