]> granicus.if.org Git - clang/commitdiff
clang-format: [JS] Add @return to the supported JSDoc pragmas in Google
authorDaniel Jasper <djasper@google.com>
Mon, 22 Feb 2016 20:24:11 +0000 (20:24 +0000)
committerDaniel Jasper <djasper@google.com>
Mon, 22 Feb 2016 20:24:11 +0000 (20:24 +0000)
style.

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

lib/Format/Format.cpp

index 28648cafb1e13e89f6371de137babf6ef16879b3..85a0152e295665a7a8d26c7a7bcbf9b465262d58 100644 (file)
@@ -587,7 +587,7 @@ FormatStyle getGoogleStyle(FormatStyle::LanguageKind Language) {
     GoogleStyle.AllowShortFunctionsOnASingleLine = FormatStyle::SFS_Inline;
     GoogleStyle.AlwaysBreakBeforeMultilineStrings = false;
     GoogleStyle.BreakBeforeTernaryOperators = false;
-    GoogleStyle.CommentPragmas = "@(export|see|visibility) ";
+    GoogleStyle.CommentPragmas = "@(export|return|see|visibility) ";
     GoogleStyle.MaxEmptyLinesToKeep = 3;
     GoogleStyle.SpacesInContainerLiterals = false;
   } else if (Language == FormatStyle::LK_Proto) {