summaryrefslogtreecommitdiffstats
path: root/clang/lib/AST/CommentBriefParser.cpp
diff options
context:
space:
mode:
authorDmitri Gribenko <gribozavr@gmail.com>2012-07-17 21:21:55 +0000
committerDmitri Gribenko <gribozavr@gmail.com>2012-07-17 21:21:55 +0000
commitc4eb9752d491fb00a04c3bc82f025b66e2af26f9 (patch)
treee02c60e95483c9ea48798546ca3ca831fe9d3da9 /clang/lib/AST/CommentBriefParser.cpp
parentdd6006f36590cc60e2c42f2e76022eb895bb9c78 (diff)
downloadbcm5719-llvm-c4eb9752d491fb00a04c3bc82f025b66e2af26f9.tar.gz
bcm5719-llvm-c4eb9752d491fb00a04c3bc82f025b66e2af26f9.zip
CommentBriefParser: use StringSwitch::Cases to group synonyms. Thanks Jordan!
llvm-svn: 160396
Diffstat (limited to 'clang/lib/AST/CommentBriefParser.cpp')
-rw-r--r--clang/lib/AST/CommentBriefParser.cpp13
1 files changed, 4 insertions, 9 deletions
diff --git a/clang/lib/AST/CommentBriefParser.cpp b/clang/lib/AST/CommentBriefParser.cpp
index 687ece21942..a6bf33edd41 100644
--- a/clang/lib/AST/CommentBriefParser.cpp
+++ b/clang/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
OpenPOWER on IntegriCloud