clang 20.0.0git
|
#include "clang/AST/CommentLexer.h"
Public Member Functions | |
Lexer (llvm::BumpPtrAllocator &Allocator, DiagnosticsEngine &Diags, const CommandTraits &Traits, SourceLocation FileLoc, const char *BufferStart, const char *BufferEnd, bool ParseCommands=true) | |
void | lex (Token &T) |
StringRef | getSpelling (const Token &Tok, const SourceManager &SourceMgr) const |
Comment lexer.
Definition at line 220 of file CommentLexer.h.
clang::comments::Lexer::Lexer | ( | llvm::BumpPtrAllocator & | Allocator, |
DiagnosticsEngine & | Diags, | ||
const CommandTraits & | Traits, | ||
SourceLocation | FileLoc, | ||
const char * | BufferStart, | ||
const char * | BufferEnd, | ||
bool | ParseCommands = true |
||
) |
Definition at line 737 of file CommentLexer.cpp.
StringRef clang::comments::Lexer::getSpelling | ( | const Token & | Tok, |
const SourceManager & | SourceMgr | ||
) | const |
Definition at line 847 of file CommentLexer.cpp.
References Begin, clang::File, clang::SourceManager::getBufferData(), clang::SourceManager::getDecomposedLoc(), clang::comments::Token::getLength(), clang::comments::Token::getLocation(), and Loc.
Referenced by clang::comments::Token::dump(), and clang::RawComment::getFormattedLines().
void clang::comments::Lexer::lex | ( | Token & | T | ) |
Definition at line 745 of file CommentLexer.cpp.
References clang::C, clang::comments::tok::eof, clang::comments::tok::newline, and clang::T.
Referenced by clang::RawComment::getFormattedLines().