diff --git a/clang-tools-extra/pseudo/lib/Lex.cpp b/clang-tools-extra/pseudo/lib/Lex.cpp index 72eff3c12f25cf..3a90b739f97c9d 100644 --- a/clang-tools-extra/pseudo/lib/Lex.cpp +++ b/clang-tools-extra/pseudo/lib/Lex.cpp @@ -41,18 +41,18 @@ TokenStream lex(const std::string &Code, const clang::LangOptions &LangOpts) { // Update current line number and indentation from raw source code. unsigned NewLineStart = 0; - for (unsigned i = LastOffset; i < Offset; ++i) { - if (Code[i] == '\n') { - NewLineStart = i + 1; + for (unsigned I = LastOffset; I < Offset; ++I) { + if (Code[I] == '\n') { + NewLineStart = I + 1; ++Line; } } if (NewLineStart || !LastOffset) { Indent = 0; - for (char c : StringRef(Code).slice(NewLineStart, Offset)) { - if (c == ' ') + for (char C : StringRef(Code).slice(NewLineStart, Offset)) { + if (C == ' ') ++Indent; - else if (c == '\t') + else if (C == '\t') Indent += 8; else break;