]> granicus.if.org Git - clang/commitdiff
clang-format: [JS] Add a Closure Compiler JSDoc tags to the default
authorDaniel Jasper <djasper@google.com>
Tue, 21 Jun 2016 17:00:20 +0000 (17:00 +0000)
committerDaniel Jasper <djasper@google.com>
Tue, 21 Jun 2016 17:00:20 +0000 (17:00 +0000)
Google configuration so that it isn't line-wrapped.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@273285 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Format/Format.cpp

index 4e136941162af0b6efb4a1456f439a7193b14217..6f7ee274e9943167b990f9efa3a750e04981f64b 100644 (file)
@@ -612,7 +612,7 @@ FormatStyle getGoogleStyle(FormatStyle::LanguageKind Language) {
     GoogleStyle.AllowShortFunctionsOnASingleLine = FormatStyle::SFS_Inline;
     GoogleStyle.AlwaysBreakBeforeMultilineStrings = false;
     GoogleStyle.BreakBeforeTernaryOperators = false;
-    GoogleStyle.CommentPragmas = "@(export|return|see|visibility) ";
+    GoogleStyle.CommentPragmas = "@(export|requirecss|return|see|visibility) ";
     GoogleStyle.MaxEmptyLinesToKeep = 3;
     GoogleStyle.NamespaceIndentation = FormatStyle::NI_All;
     GoogleStyle.SpacesInContainerLiterals = false;