[PATCH] D30688: [clang-format] Support namespaces ending in semicolon
Daniel Jasper via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Tue Mar 7 06:12:38 PST 2017
djasper accepted this revision.
djasper added a comment.
This revision is now accepted and ready to land.
Minor nit, otherwise looks good.
================
Comment at: lib/Format/NamespaceEndCommentsFixer.cpp:152
+ const FormatToken *EndCommentNextTok = EndCommentPrevTok->Next;
+ if (EndCommentNextTok && EndCommentNextTok->is(tok::comment)) {
+ EndCommentNextTok = EndCommentNextTok->Next;
----------------
No braces around single-statement ifs.
https://reviews.llvm.org/D30688
More information about the cfe-commits
mailing list