diff options
author | Eric Liu <ioeric@google.com> | 2016-09-13 15:02:43 +0000 |
---|---|---|
committer | Eric Liu <ioeric@google.com> | 2016-09-13 15:02:43 +0000 |
commit | 2574d15c5be1ef54041e0558e0bf2f381ae07f02 (patch) | |
tree | a06686aeb4ecbdbd95c8ae15be7f0efd879a28fe /clang/lib/Format/Format.cpp | |
parent | 7277afeec1ca638fea3f987696df504138937d24 (diff) | |
download | llvm-2574d15c5be1ef54041e0558e0bf2f381ae07f02.zip llvm-2574d15c5be1ef54041e0558e0bf2f381ae07f02.tar.gz llvm-2574d15c5be1ef54041e0558e0bf2f381ae07f02.tar.bz2 |
Remove redundant comma around parenthesis in parameter list.
Reviewers: djasper
Subscribers: cfe-commits, klimek
Differential Revision: https://reviews.llvm.org/D24501
llvm-svn: 281344
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 371abf5..388c35a 100644 --- a/clang/lib/Format/Format.cpp +++ b/clang/lib/Format/Format.cpp @@ -1019,6 +1019,8 @@ public: if (Line->Affected) { cleanupRight(Line->First, tok::comma, tok::comma); cleanupRight(Line->First, TT_CtorInitializerColon, tok::comma); + cleanupRight(Line->First, tok::l_paren, tok::comma); + cleanupLeft(Line->First, tok::comma, tok::r_paren); cleanupLeft(Line->First, TT_CtorInitializerComma, tok::l_brace); cleanupLeft(Line->First, TT_CtorInitializerColon, tok::l_brace); } |