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: http://review.tizen.org/git/?a=commitdiff_plain;h=6f99d2433b0a2a0af6b54dddbb3b752d9d4c8a18;p=platform%2Fupstream%2Fllvm.git 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 llvm-svn: 282056 --- diff --git a/clang/lib/Format/Format.cpp b/clang/lib/Format/Format.cpp index 04bafac..d799eb2 100644 --- a/clang/lib/Format/Format.cpp +++ b/clang/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;