| Commit message (Collapse) | Author | Age | Files | Lines |
... | |
|
|
|
|
|
| |
and [direction].
llvm-svn: 161146
|
|
|
|
|
|
|
|
|
|
| |
The only caveat is renumbering CXCommentKind enum for aesthetic reasons -- this
breaks libclang binary compatibility, but should not be a problem since API is
so new.
This also fixes PR13372 as a side-effect.
llvm-svn: 161087
|
|
|
|
| |
llvm-svn: 160965
|
|
|
|
|
|
|
|
|
| |
hex: ) during comment parsing.
Now internal representation of plain text in comment AST does not contain
character references, but the characters themselves.
llvm-svn: 160891
|
|
|
|
|
|
| |
[in]), parameter name and description paragraph.
llvm-svn: 160682
|
|
|
|
|
|
| |
reverse) order
llvm-svn: 160675
|
|
|
|
| |
llvm-svn: 160649
|
|
|
|
| |
llvm-svn: 160647
|
|
|
|
| |
llvm-svn: 160640
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
| |
line of whitespace.
llvm-svn: 160464
|
|
|
|
|
|
| |
line with Statement AST nodes.
llvm-svn: 160182
|
|
|
|
|
|
| |
start tags' and 'HTML close tags' to 'HTML end tags' according to HTML spec.
llvm-svn: 160153
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
| |
llvm-svn: 159963
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
very simple semantic analysis that just builds the AST; minor changes for lexer
to pick up source locations I didn't think about before.
Comments AST is modelled along the ideas of HTML AST: block and inline content.
* Block content is a paragraph or a command that has a paragraph as an argument
or verbatim command.
* Inline content is placed within some block. Inline content includes plain
text, inline commands and HTML as tag soup.
llvm-svn: 159790
|
|
|
|
|
|
| |
character stream when we saw a '<' that is not a start of an HTML tag.
llvm-svn: 159303
|
|
|
|
|
|
| |
have only one semantic string value attached to it), at a cost of adding an additional token.
llvm-svn: 159270
|
|
|
|
| |
llvm-svn: 159223
|
|
|
|
|
|
|
|
|
|
| |
fails within a call to a constexpr function. Add -fconstexpr-backtrace-limit
argument to driver and frontend, to control the maximum number of notes so
produced (default 10). Fix APValue printing to be able to pretty-print all
APValue types, and move the testing for this functionality from a unittest to
a -verify test now that it's visible in clang's output.
llvm-svn: 146749
|
|
|
|
| |
llvm-svn: 140748
|
|
|
|
| |
llvm-svn: 140493
|
|
|
|
| |
llvm-svn: 140479
|
|
|
|
| |
llvm-svn: 140478
|
|
diagnostics.
llvm-svn: 135398
|