bool isBlockCommand(StringRef Name) {
return llvm::StringSwitch<bool>(Name)
.Case("brief", true)
+ .Case("short", true)
.Case("result", true)
.Case("return", true)
.Case("returns", true)
if (Tok.is(tok::command)) {
StringRef Name = Tok.getCommandName();
- if (Name == "brief") {
+ if (Name == "brief" || Name == "short") {
Paragraph.clear();
InBrief = true;
ConsumeToken();
/// Ggg. IS_DOXYGEN_END
void isdoxy45(void);
+/// IS_DOXYGEN_START Aaa bbb
+/// ccc.
+///
+/// \short
+/// Ddd eee.
+/// Fff.
+///
+/// Ggg. IS_DOXYGEN_END
+void isdoxy46(void);
+
/// IS_DOXYGEN_NOT_ATTACHED
#define FOO
-void notdoxy46(void);
+void notdoxy47(void);
/// IS_DOXYGEN_START Aaa bbb
/// \param ccc
/// \returns ddd IS_DOXYGEN_END
-void isdoxy47(int);
+void isdoxy48(int);
#endif
// CHECK: annotate-comments.cpp:185:6: FunctionDecl=isdoxy44:{{.*}} BriefComment=[IS_DOXYGEN_START Aaa bbb ccc.]
// CHECK: annotate-comments.cpp:195:6: FunctionDecl=isdoxy45:{{.*}} BriefComment=[Ddd eee. Fff.]
-// CHECK: annotate-comments.cpp:204:6: FunctionDecl=isdoxy47:{{.*}} BriefComment=[IS_DOXYGEN_START Aaa bbb]
+// CHECK: annotate-comments.cpp:205:6: FunctionDecl=isdoxy46:{{.*}} BriefComment=[Ddd eee. Fff.]
+// CHECK: annotate-comments.cpp:214:6: FunctionDecl=isdoxy48:{{.*}} BriefComment=[IS_DOXYGEN_START Aaa bbb]