]> granicus.if.org Git - clang/commit
[clang-format] Use SpacesBeforeTrailingComments for "option" directive
authorKrasimir Georgiev <krasimir@google.com>
Fri, 12 Apr 2019 10:11:34 +0000 (10:11 +0000)
committerKrasimir Georgiev <krasimir@google.com>
Fri, 12 Apr 2019 10:11:34 +0000 (10:11 +0000)
commit806f4c2c6b3b73b30614fd95e33aeefe9e6a0a68
tree7006641b0d843eee6f879f9369ce92edca70074e
parent64771d94b8235e03a970d4e12e3e8adfe38f9645
[clang-format] Use SpacesBeforeTrailingComments for "option" directive

Summary:
AnnotatingParser::next() is needed to implicitly set TT_BlockComment
versus TT_LineComment.  On most other paths through
AnnotatingParser::parseLine(), all tokens are consumed to achieve that.
This change updates one place where this wasn't done.

Contributed by @dchai!

Reviewers: krasimir

Reviewed By: krasimir

Subscribers: cfe-commits

Tags: #clang

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

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@358275 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Format/TokenAnnotator.cpp
unittests/Format/FormatTestProto.cpp