clang API Documentation

Public Member Functions | Friends
clang::comments::Token Class Reference

Comment token. More...

#include <CommentLexer.h>

List of all members.

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

Detailed Description

Comment token.

Definition at line 57 of file CommentLexer.h.


Member Function Documentation

void clang::comments::Token::dump ( const Lexer L,
const SourceManager SM 
) const
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]
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 97 of file CommentLexer.h.

Referenced by clang::comments::Lexer::getSpelling().

StringRef clang::comments::Token::getText ( ) const [inline]
StringRef clang::comments::Token::getUnknownCommandName ( ) const [inline]
StringRef clang::comments::Token::getVerbatimBlockText ( ) 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]
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().

Definition at line 92 of file CommentLexer.h.

Definition at line 98 of file CommentLexer.h.

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::setVerbatimBlockText ( StringRef  Text) [inline]

Definition at line 147 of file CommentLexer.h.

References is(), and clang::comments::tok::verbatim_block_line.

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.


Friends And Related Function Documentation

friend class Lexer [friend]

Definition at line 58 of file CommentLexer.h.

friend class TextTokenRetokenizer [friend]

Definition at line 59 of file CommentLexer.h.


The documentation for this class was generated from the following files: