clang-format: [JS] do not wrapp @returns tags.
authorMartin Probst <martin@probst.io>
Wed, 21 Sep 2016 06:56:38 +0000 (06:56 +0000)
committerMartin Probst <martin@probst.io>
Wed, 21 Sep 2016 06:56:38 +0000 (06:56 +0000)
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

clang/lib/Format/Format.cpp

index 04bafac..d799eb2 100644 (file)
@@ -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;