class AsmCommentConsumer
Declaration
class AsmCommentConsumer { /* full declaration omitted */ };
Description
A callback class which is notified of each comment in an assembly file as it is lexed.
Declared at: llvm/include/llvm/MC/MCParser/MCAsmLexer.h:25
Method Overview
- public virtual void HandleComment(llvm::SMLoc Loc, llvm::StringRef CommentText)
- public virtual ~AsmCommentConsumer()
Methods
¶virtual void HandleComment(
llvm::SMLoc Loc,
llvm::StringRef CommentText)
virtual void HandleComment(
llvm::SMLoc Loc,
llvm::StringRef CommentText)
Description
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.
Declared at: llvm/include/llvm/MC/MCParser/MCAsmLexer.h:33
Parameters
- llvm::SMLoc Loc
- llvm::StringRef CommentText
¶virtual ~AsmCommentConsumer()
virtual ~AsmCommentConsumer()
Declared at: llvm/include/llvm/MC/MCParser/MCAsmLexer.h:27