]> granicus.if.org Git - clang/commit
[clang-format] Enable comment reflowing in multiline comments containing pragmas
authorKrasimir Georgiev <krasimir@google.com>
Wed, 8 Mar 2017 08:55:12 +0000 (08:55 +0000)
committerKrasimir Georgiev <krasimir@google.com>
Wed, 8 Mar 2017 08:55:12 +0000 (08:55 +0000)
commit79a6eca386d468058b31e2d4f54b1b736a12f558
treec380c1f865659b7351bce30a4ba6735cb679a0d6
parent1c814d10cf1a5085e5b0496c6707b3c44ba86eb5
[clang-format] Enable comment reflowing in multiline comments containing pragmas

Summary:
This patch enables comment reflowing of lines not matching the comment pragma regex
in multiline comments containing comment pragma lines. Previously, these comments
were dumped without being reindented to the result.

Reviewers: djasper, mprobst

Reviewed By: mprobst

Subscribers: klimek, mprobst, cfe-commits

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

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@297261 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Format/BreakableToken.cpp
lib/Format/BreakableToken.h
lib/Format/ContinuationIndenter.cpp
unittests/Format/FormatTestJS.cpp