summaryrefslogtreecommitdiffstats
path: root/clang/test/Sema/warn-documentation.cpp
Commit message (Collapse)AuthorAgeFilesLines
...
* Comment parsing tests: fix testDmitri Gribenko2012-07-241-1/+1
| | | | llvm-svn: 160700
* Comment diagnostics tests: add a function with zero arguments, for completeness.Dmitri Gribenko2012-07-241-6/+10
| | | | llvm-svn: 160697
* Comment diagnostics: add warning for multiple \param commands with duplicateDmitri Gribenko2012-07-241-0/+12
| | | | | | parameter names. llvm-svn: 160696
* Fix PR13411: Comment parsing: failed assertion on unterminated verbatim block.Dmitri Gribenko2012-07-201-0/+6
| | | | | | | | | | The assertion was wrong in case we have a verbatim block without a closing command. Also add tests for closing command name in a verbatim block, since now it can be empty in such cases. llvm-svn: 160568
* Fix ParagraphComment::isWhitespace(): a paragraph without a non-whitespaceDmitri Gribenko2012-07-191-0/+3
| | | | | | | TextComment node was considered whitespace even if it contained other child nodes. llvm-svn: 160474
* Comment parsing: repaint the bikesched: rename 'HTML open tags' to 'HTML ↵Dmitri Gribenko2012-07-131-14/+14
| | | | | | start tags' and 'HTML close tags' to 'HTML end tags' according to HTML spec. llvm-svn: 160153
* Make concepts of optional and forbidden end tags separate. Thanks Jordan ↵Dmitri Gribenko2012-07-121-0/+3
| | | | | | for pointing this! llvm-svn: 160149
* Enable comment parsing and semantic analysis to emit diagnostics. A fewDmitri Gribenko2012-07-111-0/+272
diagnostics implemented -- see testcases. I created a new TableGen file for comment diagnostics, DiagnosticCommentKinds.td, because comment diagnostics don't logically fit into AST diagnostics file. But I don't feel strongly about it. This also implements support for self-closing HTML tags in comment lexer and parser (for example, <br />). In order to issue precise diagnostics CommentSema needs to know the declaration the comment is attached to. There is no easy way to find a decl by comment, so we match comments and decls in lockstep: after parsing one declgroup we check if we have any new, not yet attached comments. If we do -- then we do the usual comment-finding process. It is interesting that this automatically handles trailing comments. We pick up not only comments that precede the declaration, but also comments that *follow* the declaration -- thanks to the lookahead in the lexer: after parsing the declgroup we've consumed the semicolon and looked ahead through comments. Added -Wdocumentation-html flag for semantic HTML errors to allow the user to disable only HTML warnings (but not HTML parse errors, which we emit as warnings in -Wdocumentation). llvm-svn: 160078
OpenPOWER on IntegriCloud