From b0b8a96df25660cbdbf35d23c3ff5887c33f82f9 Mon Sep 17 00:00:00 2001 From: Dmitri Gribenko Date: Tue, 11 Sep 2012 19:22:03 +0000 Subject: Comment parsing: handle non-builtin commands correctly. After semantic analysis registers a command, it becomes a "known" command for the lexer, since it has an ID. Having this freedom of choice to register a command is a good thing since BriefParser does not need this. But the parser should still invoke the correct semantic analysis method (actOnUnknownCommand) in this case. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@163646 91177308-0d34-0410-b5e6-96231b3b80d8 --- test/Sema/warn-documentation.cpp | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'test/Sema/warn-documentation.cpp') diff --git a/test/Sema/warn-documentation.cpp b/test/Sema/warn-documentation.cpp index 80880d453a..28544e0a81 100644 --- a/test/Sema/warn-documentation.cpp +++ b/test/Sema/warn-documentation.cpp @@ -761,3 +761,8 @@ inline void test_nocrash6() */ typedef const struct test_nocrash7 * test_nocrash8; +// We used to crash on this. + +/// aaa \unknown aaa \unknown aaa +int test_nocrash9; + -- cgit v1.2.3-18-g5258