aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/Frontend/PrintPreprocessedOutput.cpp
diff options
context:
space:
mode:
authorKazu Hirata <kazu@google.com>2022-01-09 00:19:47 -0800
committerKazu Hirata <kazu@google.com>2022-01-09 00:19:47 -0800
commit40446663c73831f166c4432edb2997d88fd167a9 (patch)
treeaab09c69baaed6d7db2d82ae84f4708f44b1dc15 /clang/lib/Frontend/PrintPreprocessedOutput.cpp
parent4cd768ed5e735da5f97be22c6da9483a39e20f3d (diff)
downloadllvm-40446663c73831f166c4432edb2997d88fd167a9.zip
llvm-40446663c73831f166c4432edb2997d88fd167a9.tar.gz
llvm-40446663c73831f166c4432edb2997d88fd167a9.tar.bz2
[clang] Use true/false instead of 1/0 (NFC)
Identified with modernize-use-bool-literals.
Diffstat (limited to 'clang/lib/Frontend/PrintPreprocessedOutput.cpp')
-rw-r--r--clang/lib/Frontend/PrintPreprocessedOutput.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/Frontend/PrintPreprocessedOutput.cpp b/clang/lib/Frontend/PrintPreprocessedOutput.cpp
index 45df86e..1d0022b 100644
--- a/clang/lib/Frontend/PrintPreprocessedOutput.cpp
+++ b/clang/lib/Frontend/PrintPreprocessedOutput.cpp
@@ -792,7 +792,7 @@ static void PrintPreprocessedTokens(Preprocessor &PP, Token &Tok,
bool IsStartOfLine = false;
char Buffer[256];
- while (1) {
+ while (true) {
// Two lines joined with line continuation ('\' as last character on the
// line) must be emitted as one line even though Tok.getLine() returns two
// different values. In this situation Tok.isAtStartOfLine() is false even