diff options
author | Martin Probst <martin@probst.io> | 2016-09-21 06:56:38 +0000 |
---|---|---|
committer | Martin Probst <martin@probst.io> | 2016-09-21 06:56:38 +0000 |
commit | 6f99d2433b0a2a0af6b54dddbb3b752d9d4c8a18 (patch) | |
tree | e4fb7f881a1768444fa661b59cefc252c7852300 /clang/lib/Format/Format.cpp | |
parent | 29f1a1f83467bd3647023cc6e855a64c955b49f0 (diff) | |
download | llvm-6f99d2433b0a2a0af6b54dddbb3b752d9d4c8a18.zip llvm-6f99d2433b0a2a0af6b54dddbb3b752d9d4c8a18.tar.gz llvm-6f99d2433b0a2a0af6b54dddbb3b752d9d4c8a18.tar.bz2 |
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
Diffstat (limited to 'clang/lib/Format/Format.cpp')
-rw-r--r-- | clang/lib/Format/Format.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
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; |