r297455 - [clang-format] Use a reference in loop variable; NFC
Krasimir Georgiev via cfe-commits
cfe-commits at lists.llvm.org
Fri Mar 10 05:09:35 PST 2017
Author: krasimir
Date: Fri Mar 10 07:09:29 2017
New Revision: 297455
URL: http://llvm.org/viewvc/llvm-project?rev=297455&view=rev
Log:
[clang-format] Use a reference in loop variable; NFC
Modified:
cfe/trunk/lib/Format/UnwrappedLineParser.cpp
Modified: cfe/trunk/lib/Format/UnwrappedLineParser.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Format/UnwrappedLineParser.cpp?rev=297455&r1=297454&r2=297455&view=diff
==============================================================================
--- cfe/trunk/lib/Format/UnwrappedLineParser.cpp (original)
+++ cfe/trunk/lib/Format/UnwrappedLineParser.cpp Fri Mar 10 07:09:29 2017
@@ -2155,7 +2155,7 @@ static bool continuesLineComment(const F
// 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;
More information about the cfe-commits
mailing list