From a99e3e65489d93c72eec1870d15e1c63219f558f Mon Sep 17 00:00:00 2001 From: Krasimir Georgiev Date: Fri, 10 Mar 2017 13:09:29 +0000 Subject: [PATCH] [clang-format] Use a reference in loop variable; NFC git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@297455 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/Format/UnwrappedLineParser.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/Format/UnwrappedLineParser.cpp b/lib/Format/UnwrappedLineParser.cpp index 6590f38bda..25bc99118f 100644 --- a/lib/Format/UnwrappedLineParser.cpp +++ b/lib/Format/UnwrappedLineParser.cpp @@ -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; -- 2.40.0