clang API Documentation

Public Member Functions
clang::comments::Lexer Class Reference

Comment lexer. More...

#include <CommentLexer.h>

List of all members.

Public Member Functions

 Lexer (llvm::BumpPtrAllocator &Allocator, DiagnosticsEngine &Diags, const CommandTraits &Traits, SourceLocation FileLoc, const char *BufferStart, const char *BufferEnd)
void lex (Token &T)
StringRef getSpelling (const Token &Tok, const SourceManager &SourceMgr, bool *Invalid=nullptr) const

Detailed Description

Comment lexer.

Definition at line 222 of file CommentLexer.h.


Constructor & Destructor Documentation

clang::comments::Lexer::Lexer ( llvm::BumpPtrAllocator &  Allocator,
DiagnosticsEngine Diags,
const CommandTraits Traits,
SourceLocation  FileLoc,
const char *  BufferStart,
const char *  BufferEnd 
)

Definition at line 714 of file CommentLexer.cpp.


Member Function Documentation

StringRef clang::comments::Lexer::getSpelling ( const Token Tok,
const SourceManager SourceMgr,
bool Invalid = nullptr 
) const

Definition at line 724 of file CommentLexer.cpp.

References clang::comments::tok::eof, and clang::comments::tok::newline.


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