clang API Documentation
#include <CommentLexer.h>
Public Member Functions | |
SourceLocation | getLocation () const LLVM_READONLY |
void | setLocation (SourceLocation SL) |
SourceLocation | getEndLocation () const LLVM_READONLY |
tok::TokenKind | getKind () const LLVM_READONLY |
void | setKind (tok::TokenKind K) |
bool | is (tok::TokenKind K) const LLVM_READONLY |
bool | isNot (tok::TokenKind K) const LLVM_READONLY |
unsigned | getLength () const LLVM_READONLY |
void | setLength (unsigned L) |
StringRef | getText () const LLVM_READONLY |
void | setText (StringRef Text) |
StringRef | getUnknownCommandName () const LLVM_READONLY |
void | setUnknownCommandName (StringRef Name) |
unsigned | getCommandID () const LLVM_READONLY |
void | setCommandID (unsigned ID) |
unsigned | getVerbatimBlockID () const LLVM_READONLY |
void | setVerbatimBlockID (unsigned ID) |
StringRef | getVerbatimBlockText () const LLVM_READONLY |
void | setVerbatimBlockText (StringRef Text) |
unsigned | getVerbatimLineID () const LLVM_READONLY |
void | setVerbatimLineID (unsigned ID) |
StringRef | getVerbatimLineText () const LLVM_READONLY |
void | setVerbatimLineText (StringRef Text) |
StringRef | getHTMLTagStartName () const LLVM_READONLY |
void | setHTMLTagStartName (StringRef Name) |
StringRef | getHTMLIdent () const LLVM_READONLY |
void | setHTMLIdent (StringRef Name) |
StringRef | getHTMLQuotedString () const LLVM_READONLY |
void | setHTMLQuotedString (StringRef Str) |
StringRef | getHTMLTagEndName () const LLVM_READONLY |
void | setHTMLTagEndName (StringRef Name) |
void | dump (const Lexer &L, const SourceManager &SM) const |
Friends | |
class | Lexer |
class | TextTokenRetokenizer |
Comment token.
Definition at line 57 of file CommentLexer.h.
void clang::comments::Token::dump | ( | const Lexer & | L, |
const SourceManager & | SM | ||
) | const |
Definition at line 13 of file CommentLexer.cpp.
References clang::SourceLocation::dump(), and clang::comments::Lexer::getSpelling().
unsigned clang::comments::Token::getCommandID | ( | ) | const [inline] |
Definition at line 122 of file CommentLexer.h.
References clang::comments::tok::at_command, clang::comments::tok::backslash_command, and is().
Referenced by clang::comments::BriefParser::Parse(), clang::comments::Parser::parseBlockCommand(), and clang::comments::Parser::parseParagraphOrBlockCommand().
SourceLocation clang::comments::Token::getEndLocation | ( | ) | const [inline] |
Definition at line 85 of file CommentLexer.h.
References clang::SourceLocation::getLocWithOffset().
Referenced by clang::comments::Parser::parseBlockCommand(), clang::comments::Parser::parseBlockCommandArgs(), clang::comments::Parser::parseHTMLStartTag(), clang::comments::Parser::parseInlineCommand(), clang::comments::Parser::parseParagraphOrBlockCommand(), clang::comments::Parser::parseParamCommandArgs(), and clang::comments::Parser::parseTParamCommandArgs().
StringRef clang::comments::Token::getHTMLIdent | ( | ) | const [inline] |
Definition at line 185 of file CommentLexer.h.
References clang::comments::tok::html_ident, and is().
Referenced by clang::comments::Parser::parseHTMLStartTag().
StringRef clang::comments::Token::getHTMLQuotedString | ( | ) | const [inline] |
Definition at line 196 of file CommentLexer.h.
References clang::comments::tok::html_quoted_string, and is().
Referenced by clang::comments::Parser::parseHTMLStartTag().
StringRef clang::comments::Token::getHTMLTagEndName | ( | ) | const [inline] |
Definition at line 207 of file CommentLexer.h.
References clang::comments::tok::html_end_tag, and is().
StringRef clang::comments::Token::getHTMLTagStartName | ( | ) | const [inline] |
Definition at line 174 of file CommentLexer.h.
References clang::comments::tok::html_start_tag, and is().
Referenced by clang::comments::Parser::parseHTMLStartTag().
tok::TokenKind clang::comments::Token::getKind | ( | ) | const [inline] |
Definition at line 91 of file CommentLexer.h.
Referenced by clang::comments::Parser::parseBlockContent(), clang::comments::Parser::parseHTMLStartTag(), and clang::comments::Parser::parseParagraphOrBlockCommand().
unsigned clang::comments::Token::getLength | ( | ) | const [inline] |
Definition at line 97 of file CommentLexer.h.
Referenced by clang::comments::Lexer::getSpelling().
SourceLocation clang::comments::Token::getLocation | ( | ) | const [inline] |
Definition at line 82 of file CommentLexer.h.
Referenced by clang::comments::Lexer::getSpelling(), clang::comments::Parser::parseBlockCommand(), clang::comments::Parser::parseBlockCommandArgs(), clang::comments::Parser::parseHTMLEndTag(), clang::comments::Parser::parseHTMLStartTag(), clang::comments::Parser::parseInlineCommand(), clang::comments::Parser::parseParagraphOrBlockCommand(), clang::comments::Parser::parseParamCommandArgs(), clang::comments::Parser::parseTParamCommandArgs(), clang::comments::Parser::parseVerbatimBlock(), and clang::comments::Parser::parseVerbatimLine().
StringRef clang::comments::Token::getText | ( | ) | const [inline] |
Definition at line 100 of file CommentLexer.h.
References is(), and clang::comments::tok::text.
Referenced by clang::comments::BriefParser::Parse(), clang::comments::Parser::parseBlockCommandArgs(), clang::comments::Parser::parseInlineCommand(), clang::comments::Parser::parseParagraphOrBlockCommand(), clang::comments::Parser::parseParamCommandArgs(), and clang::comments::Parser::parseTParamCommandArgs().
StringRef clang::comments::Token::getUnknownCommandName | ( | ) | const [inline] |
Definition at line 111 of file CommentLexer.h.
References is(), and clang::comments::tok::unknown_command.
Referenced by clang::comments::Parser::parseParagraphOrBlockCommand().
unsigned clang::comments::Token::getVerbatimBlockID | ( | ) | const [inline] |
Definition at line 132 of file CommentLexer.h.
References is(), clang::comments::tok::verbatim_block_begin, and clang::comments::tok::verbatim_block_end.
Referenced by clang::comments::Parser::parseVerbatimBlock().
StringRef clang::comments::Token::getVerbatimBlockText | ( | ) | const [inline] |
Definition at line 142 of file CommentLexer.h.
References is(), and clang::comments::tok::verbatim_block_line.
Referenced by clang::comments::Parser::parseVerbatimBlock().
unsigned clang::comments::Token::getVerbatimLineID | ( | ) | const [inline] |
Definition at line 153 of file CommentLexer.h.
References is(), and clang::comments::tok::verbatim_line_name.
StringRef clang::comments::Token::getVerbatimLineText | ( | ) | const [inline] |
Definition at line 163 of file CommentLexer.h.
References is(), and clang::comments::tok::verbatim_line_text.
Referenced by clang::comments::Parser::parseVerbatimLine().
bool clang::comments::Token::is | ( | tok::TokenKind | K | ) | const [inline] |
Definition at line 94 of file CommentLexer.h.
Referenced by getCommandID(), getHTMLIdent(), getHTMLQuotedString(), getHTMLTagEndName(), getHTMLTagStartName(), getText(), getUnknownCommandName(), getVerbatimBlockID(), getVerbatimBlockText(), getVerbatimLineID(), getVerbatimLineText(), clang::comments::BriefParser::Parse(), clang::comments::Parser::parseBlockCommand(), clang::comments::Parser::parseFullComment(), clang::comments::Parser::parseHTMLEndTag(), clang::comments::Parser::parseHTMLStartTag(), clang::comments::Parser::parseInlineCommand(), clang::comments::Parser::parseParagraphOrBlockCommand(), clang::comments::Parser::parseVerbatimBlock(), clang::comments::Parser::parseVerbatimLine(), setCommandID(), setHTMLIdent(), setHTMLQuotedString(), setHTMLTagEndName(), setHTMLTagStartName(), setText(), setUnknownCommandName(), setVerbatimBlockID(), setVerbatimBlockText(), setVerbatimLineID(), and setVerbatimLineText().
bool clang::comments::Token::isNot | ( | tok::TokenKind | K | ) | const [inline] |
Definition at line 95 of file CommentLexer.h.
Referenced by clang::comments::BriefParser::Parse(), clang::comments::Parser::parseFullComment(), and clang::comments::Parser::parseHTMLStartTag().
void clang::comments::Token::setCommandID | ( | unsigned | ID | ) | [inline] |
Definition at line 127 of file CommentLexer.h.
References clang::comments::tok::at_command, clang::comments::tok::backslash_command, and is().
void clang::comments::Token::setHTMLIdent | ( | StringRef | Name | ) | [inline] |
Definition at line 190 of file CommentLexer.h.
References clang::comments::tok::html_ident, and is().
void clang::comments::Token::setHTMLQuotedString | ( | StringRef | Str | ) | [inline] |
Definition at line 201 of file CommentLexer.h.
References clang::comments::tok::html_quoted_string, and is().
void clang::comments::Token::setHTMLTagEndName | ( | StringRef | Name | ) | [inline] |
Definition at line 212 of file CommentLexer.h.
References clang::comments::tok::html_end_tag, and is().
void clang::comments::Token::setHTMLTagStartName | ( | StringRef | Name | ) | [inline] |
Definition at line 179 of file CommentLexer.h.
References clang::comments::tok::html_start_tag, and is().
void clang::comments::Token::setKind | ( | tok::TokenKind | K | ) | [inline] |
Definition at line 92 of file CommentLexer.h.
void clang::comments::Token::setLength | ( | unsigned | L | ) | [inline] |
Definition at line 98 of file CommentLexer.h.
void clang::comments::Token::setLocation | ( | SourceLocation | SL | ) | [inline] |
Definition at line 83 of file CommentLexer.h.
void clang::comments::Token::setText | ( | StringRef | Text | ) | [inline] |
Definition at line 105 of file CommentLexer.h.
References is(), and clang::comments::tok::text.
void clang::comments::Token::setUnknownCommandName | ( | StringRef | Name | ) | [inline] |
Definition at line 116 of file CommentLexer.h.
References is(), and clang::comments::tok::unknown_command.
void clang::comments::Token::setVerbatimBlockID | ( | unsigned | ID | ) | [inline] |
Definition at line 137 of file CommentLexer.h.
References is(), clang::comments::tok::verbatim_block_begin, and clang::comments::tok::verbatim_block_end.
void clang::comments::Token::setVerbatimBlockText | ( | StringRef | Text | ) | [inline] |
Definition at line 147 of file CommentLexer.h.
References is(), and clang::comments::tok::verbatim_block_line.
void clang::comments::Token::setVerbatimLineID | ( | unsigned | ID | ) | [inline] |
Definition at line 158 of file CommentLexer.h.
References is(), and clang::comments::tok::verbatim_line_name.
void clang::comments::Token::setVerbatimLineText | ( | StringRef | Text | ) | [inline] |
Definition at line 168 of file CommentLexer.h.
References is(), and clang::comments::tok::verbatim_line_text.
friend class Lexer [friend] |
Definition at line 58 of file CommentLexer.h.
friend class TextTokenRetokenizer [friend] |
Definition at line 59 of file CommentLexer.h.