[all-commits] [llvm/llvm-project] 77b484: [clang-format] do not break before @tags in JS com...
Krasimir Georgiev via All-commits
all-commits at lists.llvm.org
Wed Nov 11 03:31:34 PST 2020
Branch: refs/heads/master
Home: https://github.com/llvm/llvm-project
Commit: 77b484116971337c9584fe101cdf1bca7f07f4dd
https://github.com/llvm/llvm-project/commit/77b484116971337c9584fe101cdf1bca7f07f4dd
Author: Krasimir Georgiev <krasimir at google.com>
Date: 2020-11-11 (Wed, 11 Nov 2020)
Changed paths:
M clang/lib/Format/BreakableToken.cpp
M clang/unittests/Format/FormatTestJS.cpp
Log Message:
-----------
[clang-format] do not break before @tags in JS comments
In JavaScript breaking before a `@tag` in a comment puts it on a new line, and
machinery that parses these comments will fail to understand such comments.
This adapts clang-format to not break before `@`. Similar functionality exists
for not breaking before `{`.
Reviewed By: mprobst
Differential Revision: https://reviews.llvm.org/D91078
More information about the All-commits
mailing list