[Format] Cleanup after replacing constructor body with = default
authorMalcolm Parsons <malcolm.parsons@gmail.com>
Thu, 20 Oct 2016 14:58:45 +0000 (14:58 +0000)
committerMalcolm Parsons <malcolm.parsons@gmail.com>
Thu, 20 Oct 2016 14:58:45 +0000 (14:58 +0000)
commit5d8cdb83db58829bacc8d5478030b41a20acaf19
tree56b891d82af1a5ef752bc404a74c781259259a3c
parentc1b73a1793b63a4cc67e6db9412a9c6cc85ef956
[Format] Cleanup after replacing constructor body with = default

Summary:
Remove colon and commas after replacing constructor body with = default.
Fix annotation of TT_CtorInitializerColon when preceded by a comment.

Reviewers: djasper

Subscribers: cfe-commits, klimek

Differential Revision: https://reviews.llvm.org/D25768

llvm-svn: 284732
clang/lib/Format/Format.cpp
clang/lib/Format/TokenAnnotator.cpp
clang/unittests/Format/CleanupTest.cpp