diff options
author | Eric Liu <ioeric@google.com> | 2016-09-09 17:50:49 +0000 |
---|---|---|
committer | Eric Liu <ioeric@google.com> | 2016-09-09 17:50:49 +0000 |
commit | 01426ff875419e939f91d959904baac23075084f (patch) | |
tree | e54546adf0175478fcb52f9712a6b300c96a0d7d /clang/lib/Format/Format.cpp | |
parent | c6d54da891b5b7f6634d41a1c59eab4d5e226711 (diff) | |
download | llvm-01426ff875419e939f91d959904baac23075084f.zip llvm-01426ff875419e939f91d959904baac23075084f.tar.gz llvm-01426ff875419e939f91d959904baac23075084f.tar.bz2 |
Also cleanup comments around redundant colons/commas in format::cleanup.
Reviewers: djasper
Subscribers: klimek, cfe-commits
Differential Revision: https://reviews.llvm.org/D24400
llvm-svn: 281064
Diffstat (limited to 'clang/lib/Format/Format.cpp')
-rw-r--r-- | clang/lib/Format/Format.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/clang/lib/Format/Format.cpp b/clang/lib/Format/Format.cpp index 7ada8a5..371abf5 100644 --- a/clang/lib/Format/Format.cpp +++ b/clang/lib/Format/Format.cpp @@ -1132,6 +1132,8 @@ private: break; if (Left->is(LK) && Right->is(RK)) { deleteToken(DeleteLeft ? Left : Right); + for (auto *Tok = Left->Next; Tok && Tok != Right; Tok = Tok->Next) + deleteToken(Tok); // If the right token is deleted, we should keep the left token // unchanged and pair it with the new right token. if (!DeleteLeft) |