[clang] [NFC][clang] Avoid unnecessary assignment (PR #100728)
Mariya Podchishchaeva via cfe-commits
cfe-commits at lists.llvm.org
Fri Jul 26 03:41:38 PDT 2024
https://github.com/Fznamznon created https://github.com/llvm/llvm-project/pull/100728
`IsStartOfLine` is set to false at the end of the loop.
>From e41e817050df138a0ac791c8aac0a3331c66d8df Mon Sep 17 00:00:00 2001
From: "Podchishchaeva, Mariya" <mariya.podchishchaeva at intel.com>
Date: Fri, 26 Jul 2024 03:39:51 -0700
Subject: [PATCH] [NFC][clang] Avoid unnecessary assignment
`IsStartOfLine` is set to false at the end of the loop.
---
clang/lib/Frontend/PrintPreprocessedOutput.cpp | 1 -
1 file changed, 1 deletion(-)
diff --git a/clang/lib/Frontend/PrintPreprocessedOutput.cpp b/clang/lib/Frontend/PrintPreprocessedOutput.cpp
index 0592423c12eca..135dca0e6a177 100644
--- a/clang/lib/Frontend/PrintPreprocessedOutput.cpp
+++ b/clang/lib/Frontend/PrintPreprocessedOutput.cpp
@@ -980,7 +980,6 @@ static void PrintPreprocessedTokens(Preprocessor &PP, Token &Tok,
*Callbacks->OS << static_cast<unsigned>(*Iter);
PrintComma = true;
}
- IsStartOfLine = true;
} else if (Tok.isAnnotation()) {
// Ignore annotation tokens created by pragmas - the pragmas themselves
// will be reproduced in the preprocessed output.
More information about the cfe-commits
mailing list