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 | 107618a6cb1a59496e920fb24f95a77dcb3f3d02 (patch) | |
| tree | 30cd84aba0b95c3d439a92a4c37883feeb49e50e /clang/test/Sema/warn-documentation.cpp | |
| parent | 4e22598b0f540ef217299c1ad067216ce7efd7b2 (diff) | |
| download | bcm5719-llvm-107618a6cb1a59496e920fb24f95a77dcb3f3d02.tar.gz bcm5719-llvm-107618a6cb1a59496e920fb24f95a77dcb3f3d02.zip | |
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.
llvm-svn: 162407
Diffstat (limited to 'clang/test/Sema/warn-documentation.cpp')
| -rw-r--r-- | clang/test/Sema/warn-documentation.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/clang/test/Sema/warn-documentation.cpp b/clang/test/Sema/warn-documentation.cpp index d99520b6733..1cd13585212 100644 --- a/clang/test/Sema/warn-documentation.cpp +++ b/clang/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); |

