class ExternalASTMerger::ImporterSource

Declaration

class ExternalASTMerger::ImporterSource { /* full declaration omitted */ };

Description

A source for an ExternalASTMerger. ASTImporters require both ASTContext and FileManager to be able to import SourceLocations properly. Additionally, when import occurs for a DeclContext whose origin has been overridden, then this ExternalASTMerger must be able to determine that.

Declared at: clang/include/clang/AST/ExternalASTMerger.h:83

Member Variables

private clang::ASTContext& AST
private clang::FileManager& FM
private const clang::ExternalASTMerger::OriginMap& OM
private bool Temporary
True iff the source only exists temporary, i.e., it will be removed from the ExternalASTMerger during the life time of the ExternalASTMerger.
private clang::ExternalASTMerger* Merger
If the ASTContext of this source has an ExternalASTMerger that imports into this source, then this will point to that other ExternalASTMerger.

Method Overview

  • public ImporterSource(clang::ASTContext & AST, clang::FileManager & FM, const clang::ExternalASTMerger::OriginMap & OM, bool Temporary = false, clang::ExternalASTMerger * Merger = nullptr)
  • public clang::ASTContext & getASTContext() const
  • public clang::FileManager & getFileManager() const
  • public clang::ExternalASTMerger * getMerger() const
  • public const clang::ExternalASTMerger::OriginMap & getOriginMap() const
  • public bool isTemporary() const

Methods

ImporterSource(
    clang::ASTContext& AST,
    clang::FileManager& FM,
    const clang::ExternalASTMerger::OriginMap& OM,
    bool Temporary = false,
    clang::ExternalASTMerger* Merger = nullptr)

Declared at: clang/include/clang/AST/ExternalASTMerger.h:95

Parameters

clang::ASTContext& AST
clang::FileManager& FM
const clang::ExternalASTMerger::OriginMap& OM
bool Temporary = false
clang::ExternalASTMerger* Merger = nullptr

clang::ASTContext& getASTContext() const

Declared at: clang/include/clang/AST/ExternalASTMerger.h:98

clang::FileManager& getFileManager() const

Declared at: clang/include/clang/AST/ExternalASTMerger.h:99

clang::ExternalASTMerger* getMerger() const

Declared at: clang/include/clang/AST/ExternalASTMerger.h:102

const clang::ExternalASTMerger::OriginMap&
getOriginMap() const

Declared at: clang/include/clang/AST/ExternalASTMerger.h:100

bool isTemporary() const

Declared at: clang/include/clang/AST/ExternalASTMerger.h:101