diff options
author | Dmitri Gribenko <gribozavr@gmail.com> | 2012-07-17 18:35:14 +0000 |
---|---|---|
committer | Dmitri Gribenko <gribozavr@gmail.com> | 2012-07-17 18:35:14 +0000 |
commit | 659a7124c7069b3e01dd171f7290562f58f9e97a (patch) | |
tree | 7d322a0e9174c4d3437f38bd217774c94e606d62 /lib/AST/CommentBriefParser.cpp | |
parent | 379b28183a7dcb715c3f3eb2da4b0157d6d8ffbe (diff) | |
download | clang-659a7124c7069b3e01dd171f7290562f58f9e97a.tar.gz |
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
Diffstat (limited to 'lib/AST/CommentBriefParser.cpp')
-rw-r--r-- | lib/AST/CommentBriefParser.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/AST/CommentBriefParser.cpp b/lib/AST/CommentBriefParser.cpp index bc9244a693..687ece2194 100644 --- a/lib/AST/CommentBriefParser.cpp +++ b/lib/AST/CommentBriefParser.cpp @@ -43,6 +43,7 @@ void cleanupBrief(std::string &S) { 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 @@ std::string BriefParser::Parse() { if (Tok.is(tok::command)) { StringRef Name = Tok.getCommandName(); - if (Name == "brief") { + if (Name == "brief" || Name == "short") { Paragraph.clear(); InBrief = true; ConsumeToken(); |