LLVM  8.0.1
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. More...
 

Detailed Description

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

Definition at line 26 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.

Referenced by IsIdentifierChar().


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