diff options
author | Krasimir Georgiev <krasimir@google.com> | 2017-08-09 09:42:32 +0000 |
---|---|---|
committer | Krasimir Georgiev <krasimir@google.com> | 2017-08-09 09:42:32 +0000 |
commit | 3b86534a63b89d691f03476d209ae196bd778d84 (patch) | |
tree | d1636bdbd669f3da66325e023219c1c2483a58c7 /clang/lib/Format/ContinuationIndenter.cpp | |
parent | 7f569a2d549941aa1fe44d97d5c785661e5ee391 (diff) | |
download | bcm5719-llvm-3b86534a63b89d691f03476d209ae196bd778d84.tar.gz bcm5719-llvm-3b86534a63b89d691f03476d209ae196bd778d84.zip |
[clang-format] Put '/**' and '*/' on own lines in jsdocs ending in comment pragmas
Summary:
This handles a case where the trailing '*/' of a multiline jsdoc eding in a
comment pragma wouldn't be put on a new line.
Reviewers: mprobst
Reviewed By: mprobst
Subscribers: cfe-commits, klimek
Differential Revision: https://reviews.llvm.org/D36359
llvm-svn: 310458
Diffstat (limited to 'clang/lib/Format/ContinuationIndenter.cpp')
-rw-r--r-- | clang/lib/Format/ContinuationIndenter.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/clang/lib/Format/ContinuationIndenter.cpp b/clang/lib/Format/ContinuationIndenter.cpp index 25a470474b7..d8ae82c1843 100644 --- a/clang/lib/Format/ContinuationIndenter.cpp +++ b/clang/lib/Format/ContinuationIndenter.cpp @@ -1383,8 +1383,8 @@ unsigned ContinuationIndenter::breakProtrudingToken(const FormatToken &Current, } } - BreakableToken::Split SplitAfterLastLine = Token->getSplitAfterLastLine( - TailOffset, ColumnLimit, CommentPragmasRegex); + BreakableToken::Split SplitAfterLastLine = + Token->getSplitAfterLastLine(TailOffset, ColumnLimit); if (SplitAfterLastLine.first != StringRef::npos) { if (!DryRun) Token->replaceWhitespaceAfterLastLine(TailOffset, SplitAfterLastLine, |