LLVM 19.0.0git
Public Member Functions | List of all members
llvm::AsmCommentConsumer Class Referenceabstract

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

#include "llvm/MC/MCParser/MCAsmLexer.h"

Public Member Functions

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

Detailed Description

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

Definition at line 23 of file MCAsmLexer.h.

Constructor & Destructor Documentation

◆ ~AsmCommentConsumer()

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

Member Function Documentation

◆ 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: