clang 20.0.0git
|
Public Member Functions | |
RewriteImportsListener (CompilerInstance &CI, std::shared_ptr< raw_ostream > Out) | |
void | visitModuleFile (StringRef Filename, serialization::ModuleKind Kind) override |
This is called for each AST file loaded. | |
Public Member Functions inherited from clang::ASTReaderListener | |
virtual | ~ASTReaderListener () |
virtual bool | ReadFullVersionInformation (StringRef FullVersion) |
Receives the full Clang version information. | |
virtual void | ReadModuleName (StringRef ModuleName) |
virtual void | ReadModuleMapFile (StringRef ModuleMapPath) |
virtual bool | ReadLanguageOptions (const LangOptions &LangOpts, StringRef ModuleFilename, bool Complain, bool AllowCompatibleDifferences) |
Receives the language options. | |
virtual bool | ReadTargetOptions (const TargetOptions &TargetOpts, StringRef ModuleFilename, bool Complain, bool AllowCompatibleDifferences) |
Receives the target options. | |
virtual bool | ReadDiagnosticOptions (IntrusiveRefCntPtr< DiagnosticOptions > DiagOpts, StringRef ModuleFilename, bool Complain) |
Receives the diagnostic options. | |
virtual bool | ReadFileSystemOptions (const FileSystemOptions &FSOpts, bool Complain) |
Receives the file system options. | |
virtual bool | ReadHeaderSearchOptions (const HeaderSearchOptions &HSOpts, StringRef ModuleFilename, StringRef SpecificModuleCachePath, bool Complain) |
Receives the header search options. | |
virtual bool | ReadHeaderSearchPaths (const HeaderSearchOptions &HSOpts, bool Complain) |
Receives the header search paths. | |
virtual bool | ReadPreprocessorOptions (const PreprocessorOptions &PPOpts, StringRef ModuleFilename, bool ReadMacros, bool Complain, std::string &SuggestedPredefines) |
Receives the preprocessor options. | |
virtual void | ReadCounter (const serialization::ModuleFile &M, unsigned Value) |
Receives COUNTER value. | |
virtual void | visitModuleFile (StringRef Filename, serialization::ModuleKind Kind) |
This is called for each AST file loaded. | |
virtual bool | needsInputFileVisitation () |
Returns true if this ASTReaderListener wants to receive the input files of the AST file via visitInputFile , false otherwise. | |
virtual bool | needsSystemInputFileVisitation () |
Returns true if this ASTReaderListener wants to receive the system input files of the AST file via visitInputFile , false otherwise. | |
virtual bool | visitInputFile (StringRef Filename, bool isSystem, bool isOverridden, bool isExplicitModule) |
if needsInputFileVisitation returns true, this is called for each non-system input file of the AST File. | |
virtual bool | needsImportVisitation () const |
Returns true if this ASTReaderListener wants to receive the imports of the AST file via visitImport , false otherwise. | |
virtual void | visitImport (StringRef ModuleName, StringRef Filename) |
If needsImportVisitation returns true , this is called for each AST file imported by this AST file. | |
virtual void | readModuleFileExtension (const ModuleFileExtensionMetadata &Metadata) |
Indicates that a particular module file extension has been read. | |
Definition at line 204 of file FrontendActions.cpp.
|
inline |
Definition at line 211 of file FrontendActions.cpp.
|
inlineoverridevirtual |
This is called for each AST file loaded.
Reimplemented from clang::ASTReaderListener.
Definition at line 214 of file FrontendActions.cpp.
References clang::File, Filename, clang::CompilerInstance::getASTReader(), clang::CompilerInstance::getDiagnosticClient(), clang::CompilerInstance::getFileManager(), clang::CompilerInstance::getInvocation(), clang::CompilerInstance::getModuleCache(), clang::FileManager::getOptionalFileRef(), clang::CompilerInstance::getPCHContainerOperations(), clang::CompilerInstance::getVirtualFileSystem(), clang::serialization::ModuleFile::isModule(), clang::isValidAsciiIdentifier(), clang::serialization::ModuleFile::ModuleName, clang::InputKind::Precompiled, and clang::Unknown.