clang 20.0.0git
Public Member Functions | Protected Member Functions | List of all members
clang::ModuleFileExtensionWriter Class Referenceabstract

Abstract base class that writes a module file extension block into a module file. More...

#include "clang/Serialization/ModuleFileExtension.h"

Public Member Functions

virtual ~ModuleFileExtensionWriter ()
 
ModuleFileExtensiongetExtension () const
 Retrieve the module file extension with which this writer is associated.
 
virtual void writeExtensionContents (Sema &SemaRef, llvm::BitstreamWriter &Stream)=0
 Write the contents of the extension block into the given bitstream.
 

Protected Member Functions

 ModuleFileExtensionWriter (ModuleFileExtension *Extension)
 

Detailed Description

Abstract base class that writes a module file extension block into a module file.

Definition at line 111 of file ModuleFileExtension.h.

Constructor & Destructor Documentation

◆ ModuleFileExtensionWriter()

clang::ModuleFileExtensionWriter::ModuleFileExtensionWriter ( ModuleFileExtension Extension)
inlineprotected

Definition at line 115 of file ModuleFileExtension.h.

◆ ~ModuleFileExtensionWriter()

ModuleFileExtensionWriter::~ModuleFileExtensionWriter ( )
virtual

Definition at line 18 of file ModuleFileExtension.cpp.

Member Function Documentation

◆ getExtension()

ModuleFileExtension * clang::ModuleFileExtensionWriter::getExtension ( ) const
inline

Retrieve the module file extension with which this writer is associated.

Definition at line 123 of file ModuleFileExtension.h.

◆ writeExtensionContents()

virtual void clang::ModuleFileExtensionWriter::writeExtensionContents ( Sema SemaRef,
llvm::BitstreamWriter &  Stream 
)
pure virtual

Write the contents of the extension block into the given bitstream.

Responsible for writing the contents of the extension into the given stream. All of the contents should be written into custom records with IDs >= FIRST_EXTENSION_RECORD_ID.


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