CommentBriefParser: make \short should equivalent to \brief, per Doxygen manual.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@160383 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/lib/AST/CommentBriefParser.cpp b/lib/AST/CommentBriefParser.cpp
index bc9244a..687ece2 100644
--- a/lib/AST/CommentBriefParser.cpp
+++ b/lib/AST/CommentBriefParser.cpp
@@ -43,6 +43,7 @@
bool isBlockCommand(StringRef Name) {
return llvm::StringSwitch<bool>(Name)
.Case("brief", true)
+ .Case("short", true)
.Case("result", true)
.Case("return", true)
.Case("returns", true)
@@ -71,7 +72,7 @@
if (Tok.is(tok::command)) {
StringRef Name = Tok.getCommandName();
- if (Name == "brief") {
+ if (Name == "brief" || Name == "short") {
Paragraph.clear();
InBrief = true;
ConsumeToken();