]> granicus.if.org Git - clang/commitdiff
CommentSema: \short is the same as \brief.
authorDmitri Gribenko <gribozavr@gmail.com>
Wed, 18 Jul 2012 00:44:55 +0000 (00:44 +0000)
committerDmitri Gribenko <gribozavr@gmail.com>
Wed, 18 Jul 2012 00:44:55 +0000 (00:44 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@160414 91177308-0d34-0410-b5e6-96231b3b80d8

lib/AST/CommentSema.cpp

index 6a8b32cee30d7d11d3d89881187fc5ceddbe46d8..0903372f8f9a3d5cd44612bb9ca291f0e5a334a9 100644 (file)
@@ -417,7 +417,7 @@ unsigned Sema::correctTypoInParmVarReference(
 // TODO: tablegen
 bool Sema::isBlockCommand(StringRef Name) {
   return llvm::StringSwitch<bool>(Name)
-      .Case("brief", true)
+      .Cases("brief", "short", true)
       .Case("result", true)
       .Case("return", true)
       .Case("returns", true)
@@ -437,7 +437,7 @@ bool Sema::isParamCommand(StringRef Name) {
 
 unsigned Sema::getBlockCommandNumArgs(StringRef Name) {
   return llvm::StringSwitch<unsigned>(Name)
-      .Case("brief", 0)
+      .Cases("brief", "short", 0)
       .Case("pre", 0)
       .Case("post", 0)
       .Case("author", 0)