summaryrefslogtreecommitdiffstats
path: root/clang/lib/Format
diff options
context:
space:
mode:
authorDaniel Jasper <djasper@google.com>2016-01-08 08:14:58 +0000
committerDaniel Jasper <djasper@google.com>2016-01-08 08:14:58 +0000
commitd196abbba3ea1b6872539e628cc4fabd49e6b1ee (patch)
treec1d4fbc5ccc598eaa1c72a54a06ae03b4d649719 /clang/lib/Format
parent086fec23ec438976a69e7232816e9c9d59d5d41c (diff)
downloadbcm5719-llvm-d196abbba3ea1b6872539e628cc4fabd49e6b1ee.tar.gz
bcm5719-llvm-d196abbba3ea1b6872539e628cc4fabd49e6b1ee.zip
clang-format: [JS] Add some Closure Compiler JSDoc tags to the default
Google configuration so that they aren't line-wrapped. llvm-svn: 257159
Diffstat (limited to 'clang/lib/Format')
-rw-r--r--clang/lib/Format/Format.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/clang/lib/Format/Format.cpp b/clang/lib/Format/Format.cpp
index 5068fca5c44..ca3d08fa2cd 100644
--- a/clang/lib/Format/Format.cpp
+++ b/clang/lib/Format/Format.cpp
@@ -583,6 +583,7 @@ FormatStyle getGoogleStyle(FormatStyle::LanguageKind Language) {
GoogleStyle.AllowShortFunctionsOnASingleLine = FormatStyle::SFS_Inline;
GoogleStyle.AlwaysBreakBeforeMultilineStrings = false;
GoogleStyle.BreakBeforeTernaryOperators = false;
+ GoogleStyle.CommentPragmas = "@(export|visibility) {";
GoogleStyle.MaxEmptyLinesToKeep = 3;
GoogleStyle.SpacesInContainerLiterals = false;
} else if (Language == FormatStyle::LK_Proto) {
OpenPOWER on IntegriCloud