class RewriteIncludesAction::RewriteImportsListener

Declaration

class RewriteIncludesAction::RewriteImportsListener
    : public ASTReaderListener { /* full declaration omitted */ };

Description

Abstract interface for callback invocations by the ASTReader. While reading an AST file, the ASTReader will call the methods of the listener to pass on specific information. Some of the listener methods can return true to indicate to the ASTReader that the information (and consequently the AST file) is invalid.

Declared at: clang/lib/Frontend/Rewrite/FrontendActions.cpp:203

Inherits from: ASTReaderListener

Member Variables

private clang::CompilerInstance& CI
private std::weak_ptr<raw_ostream> Out
private llvm::DenseSet<const FileEntry*> Rewritten

Method Overview

Inherited from ASTReaderListener:

Methods

RewriteImportsListener(
    clang::CompilerInstance& CI,
    std::shared_ptr<raw_ostream> Out)

Declared at: clang/lib/Frontend/Rewrite/FrontendActions.cpp:210

Parameters

clang::CompilerInstance& CI
std::shared_ptr<raw_ostream> Out

void visitModuleFile(
    llvm::StringRef Filename,
    serialization::ModuleKind Kind)

Description

This is called for each AST file loaded.

Declared at: clang/lib/Frontend/Rewrite/FrontendActions.cpp:213

Parameters

llvm::StringRef Filename
serialization::ModuleKind Kind