r261563 - clang-format: [JS] Add @return to the supported JSDoc pragmas in Google

Daniel Jasper via cfe-commits cfe-commits at lists.llvm.org
Mon Feb 22 12:24:12 PST 2016


Author: djasper
Date: Mon Feb 22 14:24:11 2016
New Revision: 261563

URL: http://llvm.org/viewvc/llvm-project?rev=261563&view=rev
Log:
clang-format: [JS] Add @return to the supported JSDoc pragmas in Google
style.

Modified:
    cfe/trunk/lib/Format/Format.cpp

Modified: cfe/trunk/lib/Format/Format.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Format/Format.cpp?rev=261563&r1=261562&r2=261563&view=diff
==============================================================================
--- cfe/trunk/lib/Format/Format.cpp (original)
+++ cfe/trunk/lib/Format/Format.cpp Mon Feb 22 14:24:11 2016
@@ -587,7 +587,7 @@ FormatStyle getGoogleStyle(FormatStyle::
     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) {




More information about the cfe-commits mailing list