clang API Documentation
#include <FrontendActions.h>


Public Member Functions | |
| virtual bool | BeginSourceFileAction (CompilerInstance &CI, StringRef Filename) |
Static Public Member Functions | |
| static bool | ComputeASTConsumerArguments (CompilerInstance &CI, StringRef InFile, std::string &Sysroot, std::string &OutputFile, raw_ostream *&OS) |
| Compute the AST consumer arguments that will be used to create the PCHGenerator instance returned by CreateASTConsumer. | |
Protected Member Functions | |
| virtual ASTConsumer * | CreateASTConsumer (CompilerInstance &CI, StringRef InFile) |
| virtual TranslationUnitKind | getTranslationUnitKind () |
| For AST-based actions, the kind of translation unit we're handling. | |
| virtual bool | hasASTFileSupport () const |
| hasASTFileSupport - Does this action support use with AST files? | |
Definition at line 94 of file Frontend/FrontendActions.h.
| bool GenerateModuleAction::BeginSourceFileAction | ( | CompilerInstance & | CI, |
| StringRef | Filename | ||
| ) | [virtual] |
BeginSourceFileAction - Callback at the start of processing a single input.
Reimplemented from clang::FrontendAction.
Definition at line 203 of file Frontend/FrontendActions.cpp.
References collectModuleHeaderIncludes(), clang::LangOptions::CurrentModule, clang::FileManager::getBufferForFile(), clang::FrontendAction::getCurrentFileKind(), clang::CompilerInstance::getDiagnostics(), clang::FileManager::getFile(), clang::CompilerInstance::getFileManager(), clang::Module::getFullModuleName(), clang::Preprocessor::getHeaderSearchInfo(), clang::CompilerInstance::getLangOpts(), clang::FileEntry::getModificationTime(), clang::HeaderSearch::getModuleMap(), clang::FileEntry::getName(), clang::CompilerInstance::getPreprocessor(), clang::CompilerInstance::getSourceManager(), clang::CompilerInstance::getTarget(), clang::Module::getUmbrellaHeader(), clang::FileManager::getVirtualFile(), clang::Module::isAvailable(), clang::Module::IsSystem, clang::HeaderSearch::loadModuleMapFile(), clang::HeaderSearch::lookupModule(), clang::Module::Name, clang::SourceManager::overrideFileContents(), clang::DiagnosticsEngine::Report(), and clang::FrontendAction::setCurrentInput().
| bool GenerateModuleAction::ComputeASTConsumerArguments | ( | CompilerInstance & | CI, |
| StringRef | InFile, | ||
| std::string & | Sysroot, | ||
| std::string & | OutputFile, | ||
| raw_ostream *& | OS | ||
| ) | [static] |
Compute the AST consumer arguments that will be used to create the PCHGenerator instance returned by CreateASTConsumer.
Definition at line 323 of file Frontend/FrontendActions.cpp.
References clang::CompilerInstance::createOutputFile(), clang::LangOptions::CurrentModule, clang::CompilerInstance::getFrontendOpts(), clang::Preprocessor::getHeaderSearchInfo(), clang::CompilerInstance::getLangOpts(), clang::HeaderSearch::getModuleCachePath(), clang::CompilerInstance::getPreprocessor(), and clang::FrontendOptions::OutputFile.
Referenced by CreateASTConsumer().
| ASTConsumer * GenerateModuleAction::CreateASTConsumer | ( | CompilerInstance & | CI, |
| StringRef | InFile | ||
| ) | [protected, virtual] |
CreateASTConsumer - Create the AST consumer object for this action, if supported.
This routine is called as part of
| CI | - The current compiler instance, provided as a convenience, |
| InFile | - The current input file, provided as a convenience, |
Implements clang::FrontendAction.
Definition at line 117 of file Frontend/FrontendActions.cpp.
References ComputeASTConsumerArguments(), and clang::CompilerInstance::getPreprocessor().
| virtual TranslationUnitKind clang::GenerateModuleAction::getTranslationUnitKind | ( | ) | [inline, protected, virtual] |
For AST-based actions, the kind of translation unit we're handling.
Reimplemented from clang::FrontendAction.
Definition at line 101 of file Frontend/FrontendActions.h.
References clang::TU_Module.
| virtual bool clang::GenerateModuleAction::hasASTFileSupport | ( | ) | const [inline, protected, virtual] |
hasASTFileSupport - Does this action support use with AST files?
Reimplemented from clang::FrontendAction.
Definition at line 105 of file Frontend/FrontendActions.h.