clang 19.0.0git
Public Member Functions | List of all members
clang::ExternalSLocEntrySource Class Referenceabstract

External source of source location entries. More...

#include "clang/Basic/SourceManager.h"

Inheritance diagram for clang::ExternalSLocEntrySource:
Inheritance graph
[legend]

Public Member Functions

virtual ~ExternalSLocEntrySource ()
 
virtual bool ReadSLocEntry (int ID)=0
 Read the source location entry with index ID, which will always be less than -1.
 
virtual int getSLocEntryID (SourceLocation::UIntTy SLocOffset)=0
 Get the index ID for the loaded SourceLocation offset.
 
virtual std::pair< SourceLocation, StringRef > getModuleImportLoc (int ID)=0
 Retrieve the module import location and name for the given ID, if in fact it was loaded from a module (rather than, say, a precompiled header).
 

Detailed Description

External source of source location entries.

Definition at line 540 of file SourceManager.h.

Constructor & Destructor Documentation

◆ ~ExternalSLocEntrySource()

ExternalSLocEntrySource::~ExternalSLocEntrySource ( )
virtualdefault

Member Function Documentation

◆ getModuleImportLoc()

virtual std::pair< SourceLocation, StringRef > clang::ExternalSLocEntrySource::getModuleImportLoc ( int  ID)
pure virtual

Retrieve the module import location and name for the given ID, if in fact it was loaded from a module (rather than, say, a precompiled header).

Implemented in clang::ASTReader.

Referenced by clang::SourceManager::getModuleImportLoc().

◆ getSLocEntryID()

virtual int clang::ExternalSLocEntrySource::getSLocEntryID ( SourceLocation::UIntTy  SLocOffset)
pure virtual

Get the index ID for the loaded SourceLocation offset.

Returns
Invalid index ID (0) if an error occurred that prevented the SLocEntry from being loaded.

Implemented in clang::ASTReader.

◆ ReadSLocEntry()

virtual bool clang::ExternalSLocEntrySource::ReadSLocEntry ( int  ID)
pure virtual

Read the source location entry with index ID, which will always be less than -1.

Returns
true if an error occurred that prevented the source-location entry from being loaded.

Implemented in clang::ASTReader.


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