clang API Documentation
#include <CommentLexer.h>
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 |
Comment lexer.
Definition at line 222 of file CommentLexer.h.
| 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.
| StringRef clang::comments::Lexer::getSpelling | ( | const Token & | Tok, |
| const SourceManager & | SourceMgr, | ||
| bool * | Invalid = nullptr |
||
| ) | const |
Definition at line 826 of file CommentLexer.cpp.
References clang::SourceManager::getBufferData(), clang::SourceManager::getDecomposedLoc(), clang::comments::Token::getLength(), and clang::comments::Token::getLocation().
Referenced by clang::comments::Token::dump().
| void clang::comments::Lexer::lex | ( | Token & | T | ) |
Definition at line 724 of file CommentLexer.cpp.
References clang::comments::tok::eof, and clang::comments::tok::newline.