clang 22.0.0git
clang::comments::Lexer Class Reference

Comment lexer. More...

#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

Detailed Description

Comment lexer.

Definition at line 220 of file CommentLexer.h.

Constructor & Destructor Documentation

◆ Lexer()

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 769 of file CommentLexer.cpp.

Member Function Documentation

◆ getSpelling()

StringRef clang::comments::Lexer::getSpelling ( const Token & Tok,
const SourceManager & SourceMgr ) const

Definition at line 904 of file CommentLexer.cpp.

References clang::File, and Tok.

Referenced by clang::comments::Token::dump(), and clang::RawComment::getFormattedLines().

◆ lex()

void clang::comments::Lexer::lex ( Token & T)

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