From: Daniel Jasper Date: Mon, 22 Feb 2016 20:24:11 +0000 (+0000) Subject: clang-format: [JS] Add @return to the supported JSDoc pragmas in Google X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=4ca3ad678789018e7b37e9319b0da9f5f741eb6b;p=clang clang-format: [JS] Add @return to the supported JSDoc pragmas in Google style. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@261563 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/Format/Format.cpp b/lib/Format/Format.cpp index 28648cafb1..85a0152e29 100644 --- a/lib/Format/Format.cpp +++ b/lib/Format/Format.cpp @@ -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) {