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
- public RewriteImportsListener(clang::CompilerInstance & CI, std::shared_ptr<raw_ostream> Out)
- public void visitModuleFile(llvm::StringRef Filename, serialization::ModuleKind Kind)
Inherited from ASTReaderListener:
- public ReadCounter
- public ReadDiagnosticOptions
- public ReadFileSystemOptions
- public ReadFullVersionInformation
- public ReadHeaderSearchOptions
- public ReadLanguageOptions
- public ReadModuleMapFile
- public ReadModuleName
- public ReadPreprocessorOptions
- public ReadTargetOptions
- public needsImportVisitation
- public needsInputFileVisitation
- public needsSystemInputFileVisitation
- public readModuleFileExtension
- public visitImport
- public visitInputFile
- public visitModuleFile
Methods
¶RewriteImportsListener(
clang::CompilerInstance& CI,
std::shared_ptr<raw_ostream> Out)
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)
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