diff options
author | Dmitri Gribenko <gribozavr@gmail.com> | 2012-08-22 22:56:08 +0000 |
---|---|---|
committer | Dmitri Gribenko <gribozavr@gmail.com> | 2012-08-22 22:56:08 +0000 |
commit | 834a5bd311b4a32f89937ca5b6dd2b4111891859 (patch) | |
tree | cafae99356d565aa85a005eb86cd930532135caa /test/Sema/warn-documentation.cpp | |
parent | 769bc07f4199b5889a88cf092ab4713d5520ff33 (diff) |
Comment parsing: parse "<blah" as an HTML tag only if "blah" is a known tag
name. This should reduce the amount of warning false positives about bad HTML
in comments when the comment author intended to put a reference to a template.
This change will also enable us parse the comment as intended in these cases.
Fixes part 1 of PR13374.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@162407 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/Sema/warn-documentation.cpp')
-rw-r--r-- | test/Sema/warn-documentation.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/Sema/warn-documentation.cpp b/test/Sema/warn-documentation.cpp index d99520b673..1cd1358521 100644 --- a/test/Sema/warn-documentation.cpp +++ b/test/Sema/warn-documentation.cpp @@ -38,13 +38,13 @@ int test_html7(int); int test_html8(int); // expected-warning@+2 {{HTML start tag prematurely ended, expected attribute name or '>'}} expected-note@+1 {{HTML tag started here}} -/** Aaa bbb<ccc ddd eee +/** Aaa bbb<img ddd eee * fff ggg. */ int test_html9(int); // expected-warning@+1 {{HTML start tag prematurely ended, expected attribute name or '>'}} -/** Aaa bbb<ccc ddd eee 42% +/** Aaa bbb<img ddd eee 42% * fff ggg. */ int test_html10(int); |