clang  6.0.0svn
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. More...
 
virtual void writeExtensionContents (Sema &SemaRef, llvm::BitstreamWriter &Stream)=0
 Write the contents of the extension block into the given bitstream. More...
 

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 105 of file ModuleFileExtension.h.

Constructor & Destructor Documentation

◆ ModuleFileExtensionWriter()

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

Definition at line 109 of file ModuleFileExtension.h.

◆ ~ModuleFileExtensionWriter()

ModuleFileExtensionWriter::~ModuleFileExtensionWriter ( )
virtual

Definition at line 19 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 117 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: