[clang-tools-extra] 910fb5d - [pseudo] NFC, fix some code-style naming violations.

Haojian Wu via cfe-commits cfe-commits at lists.llvm.org
Tue Apr 26 01:51:08 PDT 2022


Author: Haojian Wu
Date: 2022-04-26T10:50:50+02:00
New Revision: 910fb5d7e03afc0009638707f091e94fb63e2a5e

URL: https://github.com/llvm/llvm-project/commit/910fb5d7e03afc0009638707f091e94fb63e2a5e
DIFF: https://github.com/llvm/llvm-project/commit/910fb5d7e03afc0009638707f091e94fb63e2a5e.diff

LOG: [pseudo] NFC, fix some code-style naming violations.

Added: 
    

Modified: 
    clang-tools-extra/pseudo/lib/Lex.cpp

Removed: 
    


################################################################################
diff  --git a/clang-tools-extra/pseudo/lib/Lex.cpp b/clang-tools-extra/pseudo/lib/Lex.cpp
index 72eff3c12f25c..3a90b739f97c9 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;


        


More information about the cfe-commits mailing list