diff options
author | Martin Probst <martin@probst.io> | 2016-09-18 17:33:51 +0000 |
---|---|---|
committer | Martin Probst <martin@probst.io> | 2016-09-18 17:33:51 +0000 |
commit | fbbe75b1fe7aa6d2678ba692d945f07fc335e611 (patch) | |
tree | 046c0d0e001a9e7d126cf45ab1d802697b19bbff /clang/lib/Format/Format.cpp | |
parent | b9316ff84979e53260c1c3bcbfa0359a891ad1a9 (diff) | |
download | bcm5719-llvm-fbbe75b1fe7aa6d2678ba692d945f07fc335e611.tar.gz bcm5719-llvm-fbbe75b1fe7aa6d2678ba692d945f07fc335e611.zip |
clang-format: [JS] Do not wrap taze annotation comments.
Summary:
`// taze: ... from ...` comments are used help tools where a
specific global symbol comes from.
Before:
// taze: many, different, symbols from
// 'some_long_location_here'
After:
// taze: many, different, symbols from 'some_long_location_here'
Reviewers: djasper
Subscribers: klimek, cfe-commits
Differential Revision: https://reviews.llvm.org/D24477
llvm-svn: 281857
Diffstat (limited to 'clang/lib/Format/Format.cpp')
-rw-r--r-- | clang/lib/Format/Format.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/Format/Format.cpp b/clang/lib/Format/Format.cpp index 388c35a7264..04bafacab9a 100644 --- a/clang/lib/Format/Format.cpp +++ b/clang/lib/Format/Format.cpp @@ -613,7 +613,7 @@ FormatStyle getGoogleStyle(FormatStyle::LanguageKind Language) { GoogleStyle.AllowShortFunctionsOnASingleLine = FormatStyle::SFS_Empty; GoogleStyle.AlwaysBreakBeforeMultilineStrings = false; GoogleStyle.BreakBeforeTernaryOperators = false; - GoogleStyle.CommentPragmas = "@(export|requirecss|return|see|visibility) "; + GoogleStyle.CommentPragmas = "(taze:|@(export|requirecss|return|see|visibility)) "; GoogleStyle.MaxEmptyLinesToKeep = 3; GoogleStyle.NamespaceIndentation = FormatStyle::NI_All; GoogleStyle.SpacesInContainerLiterals = false; |