diff options
author | Daniel Dunbar <daniel@zuster.org> | 2009-11-14 07:53:04 +0000 |
---|---|---|
committer | Daniel Dunbar <daniel@zuster.org> | 2009-11-14 07:53:04 +0000 |
commit | ccb6cb6fd9e48697564d536b07397b95dfc28d5b (patch) | |
tree | 5f903938e9ac69b6ddbe4c7117e27f162def26eb /include/clang/Frontend/CompilerInstance.h | |
parent | 3e42ffd3a848236413caa799f1f32a87fd6d702b (diff) |
Add CompilerInstance::InitializeSourceManager.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@88764 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/clang/Frontend/CompilerInstance.h')
-rw-r--r-- | include/clang/Frontend/CompilerInstance.h | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/include/clang/Frontend/CompilerInstance.h b/include/clang/Frontend/CompilerInstance.h index ecfd509acf..915755558e 100644 --- a/include/clang/Frontend/CompilerInstance.h +++ b/include/clang/Frontend/CompilerInstance.h @@ -489,6 +489,26 @@ public: std::string *ResultPathName = 0); /// } + /// @name Initialization Utility Methods + /// { + + /// InitializeSourceManager - Initialize the source manager to set InputFile + /// as the main file. + /// + /// \return True on success. + bool InitializeSourceManager(llvm::StringRef InputFile); + + /// InitializeSourceManager - Initialize the source manager to set InputFile + /// as the main file. + /// + /// \return True on success. + static bool InitializeSourceManager(llvm::StringRef InputFile, + Diagnostic &Diags, + FileManager &FileMgr, + SourceManager &SourceMgr, + const FrontendOptions &Opts); + + /// } }; } // end namespace clang |