From: Martin Probst Date: Wed, 21 Sep 2016 06:56:38 +0000 (+0000) Subject: clang-format: [JS] do not wrapp @returns tags. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=6d355ff232908e31b94b47f3371c9793610b8c54;p=clang clang-format: [JS] do not wrapp @returns tags. Summary: @returns is incorrect code, the standard is @return. However wrapping it can still confuse users. Reviewers: djasper Subscribers: klimek, cfe-commits Differential Revision: https://reviews.llvm.org/D24767 git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@282056 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/Format/Format.cpp b/lib/Format/Format.cpp index 04bafacab9..d799eb2e82 100644 --- a/lib/Format/Format.cpp +++ b/lib/Format/Format.cpp @@ -613,7 +613,8 @@ FormatStyle getGoogleStyle(FormatStyle::LanguageKind Language) { GoogleStyle.AllowShortFunctionsOnASingleLine = FormatStyle::SFS_Empty; GoogleStyle.AlwaysBreakBeforeMultilineStrings = false; GoogleStyle.BreakBeforeTernaryOperators = false; - GoogleStyle.CommentPragmas = "(taze:|@(export|requirecss|return|see|visibility)) "; + GoogleStyle.CommentPragmas = + "(taze:|@(export|requirecss|return|returns|see|visibility)) "; GoogleStyle.MaxEmptyLinesToKeep = 3; GoogleStyle.NamespaceIndentation = FormatStyle::NI_All; GoogleStyle.SpacesInContainerLiterals = false;