[ClangModuleLoader] Provide a function to allow access to the clang::CompilerInstance, NFC.

This commit is contained in:
Argyrios Kyrtzidis
2017-01-31 01:18:57 -08:00
parent 661a503bc9
commit 6c0d9a6380
3 changed files with 8 additions and 0 deletions

View File

@@ -17,6 +17,7 @@
namespace clang {
class ASTContext;
class CompilerInstance;
class Preprocessor;
class Sema;
} // namespace clang
@@ -32,6 +33,7 @@ public:
virtual clang::ASTContext &getClangASTContext() const = 0;
virtual clang::Preprocessor &getClangPreprocessor() const = 0;
virtual clang::Sema &getClangSema() const = 0;
virtual const clang::CompilerInstance &getClangInstance() const = 0;
virtual void printStatistics() const = 0;
/// Returns the module that contains imports and declarations from all loaded