diff options
author | Dmitri Gribenko <gribozavr@gmail.com> | 2012-07-17 21:21:55 +0000 |
---|---|---|
committer | Dmitri Gribenko <gribozavr@gmail.com> | 2012-07-17 21:21:55 +0000 |
commit | 76e7edddfa0692097a94c32fff0bc5f5f4512cff (patch) | |
tree | 3cbe90a5936505db98341866b9f82549d69a87e1 /lib/AST/CommentBriefParser.cpp | |
parent | 93ed7cf05f900b9150dcf59c0e0f37f3bd325f62 (diff) |
CommentBriefParser: use StringSwitch::Cases to group synonyms. Thanks Jordan!
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@160396 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/AST/CommentBriefParser.cpp')
-rw-r--r-- | lib/AST/CommentBriefParser.cpp | 13 |
1 files changed, 4 insertions, 9 deletions
diff --git a/lib/AST/CommentBriefParser.cpp b/lib/AST/CommentBriefParser.cpp index 687ece2194..a6bf33edd4 100644 --- a/lib/AST/CommentBriefParser.cpp +++ b/lib/AST/CommentBriefParser.cpp @@ -42,17 +42,12 @@ 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) - .Case("author", true) - .Case("authors", true) + .Cases("brief", "short", true) + .Cases("result", "return", "returns", true) + .Cases("author", "authors", true) .Case("pre", true) .Case("post", true) - .Case("param", true) - .Case("arg", true) + .Cases("param", "arg", true) .Default(false); } } // unnamed namespace |