LLVM: llvm::AsmCommentConsumer Class Reference (original) (raw)

A callback class which is notified of each comment in an assembly file as it is lexed. More...

#include "[llvm/MC/MCParser/AsmLexer.h](AsmLexer%5F8h%5Fsource.html)"

Public Member Functions
virtual ~AsmCommentConsumer ()=default
virtual void HandleComment (SMLoc Loc, StringRef CommentText)=0
Callback function for when a comment is lexed.

A callback class which is notified of each comment in an assembly file as it is lexed.

Definition at line 31 of file AsmLexer.h.

virtual llvm::AsmCommentConsumer::~AsmCommentConsumer ( ) virtualdefault

HandleComment()

virtual void llvm::AsmCommentConsumer::HandleComment ( SMLoc Loc, StringRef CommentText ) pure virtual

Callback function for when a comment is lexed.

Loc is the start of the comment text (excluding the comment-start marker). CommentText is the text of the comment, excluding the comment start and end markers, and the newline for single-line comments.


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