projects
/
platform
/
upstream
/
llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
bc09f1e
)
[clang-format][NFC] Clean up IntegerLiteralSeparatorFixer::process
author
Owen Pan
<owenpiano@gmail.com>
Sun, 1 Jan 2023 06:06:28 +0000
(22:06 -0800)
committer
Owen Pan
<owenpiano@gmail.com>
Sun, 1 Jan 2023 22:49:12 +0000
(14:49 -0800)
clang/lib/Format/IntegerLiteralSeparatorFixer.cpp
patch
|
blob
|
history
diff --git
a/clang/lib/Format/IntegerLiteralSeparatorFixer.cpp
b/clang/lib/Format/IntegerLiteralSeparatorFixer.cpp
index
4082a1c
..
ef07ab0
100644
(file)
--- a/
clang/lib/Format/IntegerLiteralSeparatorFixer.cpp
+++ b/
clang/lib/Format/IntegerLiteralSeparatorFixer.cpp
@@
-78,10
+78,9
@@
IntegerLiteralSeparatorFixer::process(const Environment &Env,
Lex.SetCommentRetentionState(true);
Token Tok;
- Lex.LexFromRawLexer(Tok);
-
tooling::Replacements Result;
- for (bool Skip = false; Tok.isNot(tok::eof); Lex.LexFromRawLexer(Tok)) {
+
+ for (bool Skip = false; !Lex.LexFromRawLexer(Tok);) {
auto Length = Tok.getLength();
if (Length < 2)
continue;