diff options
| author | Dmitri Gribenko <gribozavr@gmail.com> | 2012-09-11 19:22:03 +0000 |
|---|---|---|
| committer | Dmitri Gribenko <gribozavr@gmail.com> | 2012-09-11 19:22:03 +0000 |
| commit | 9304d863295caee0921ddbb44df0fa3d9870d38e (patch) | |
| tree | d29519a25340fc567c9644cd53227b442b2cf63e /clang/test | |
| parent | 1778831a3d1d24ab6545635f63da4d9c5f8f0ac7 (diff) | |
| download | bcm5719-llvm-9304d863295caee0921ddbb44df0fa3d9870d38e.tar.gz bcm5719-llvm-9304d863295caee0921ddbb44df0fa3d9870d38e.zip | |
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.
llvm-svn: 163646
Diffstat (limited to 'clang/test')
| -rw-r--r-- | clang/test/Sema/warn-documentation.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/clang/test/Sema/warn-documentation.cpp b/clang/test/Sema/warn-documentation.cpp index 80880d453a4..28544e0a81b 100644 --- a/clang/test/Sema/warn-documentation.cpp +++ b/clang/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; + |

