[clang] [NFC][clang] Avoid unnecessary assignment (PR #100728)
via cfe-commits
cfe-commits at lists.llvm.org
Fri Jul 26 03:42:08 PDT 2024
llvmbot wrote:
<!--LLVM PR SUMMARY COMMENT-->
@llvm/pr-subscribers-clang
Author: Mariya Podchishchaeva (Fznamznon)
<details>
<summary>Changes</summary>
`IsStartOfLine` is set to false at the end of the loop.
---
Full diff: https://github.com/llvm/llvm-project/pull/100728.diff
1 Files Affected:
- (modified) clang/lib/Frontend/PrintPreprocessedOutput.cpp (-1)
``````````diff
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.
``````````
</details>
https://github.com/llvm/llvm-project/pull/100728
More information about the cfe-commits
mailing list