diff options
author | Steve Naroff <snaroff@apple.com> | 2009-09-04 15:44:05 +0000 |
---|---|---|
committer | Steve Naroff <snaroff@apple.com> | 2009-09-04 15:44:05 +0000 |
commit | 9efa767be8e9f2dae509d3a0be93ade01bfa1560 (patch) | |
tree | 8d4b7b97cae9b872b3060e6ea4b1521547f4b449 /lib/Frontend/ASTUnit.cpp | |
parent | d93bacf13bda3055a51a1160bca5e8d851d67eb7 (diff) |
Implement accessors clang_getCursorKind(), clang_getCursorDecl().
Implement clang_getCursor() - wired up to Argiris's work.
Implement callbacks for CXCursor_ObjCProtocolRef.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@81004 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Frontend/ASTUnit.cpp')
-rw-r--r-- | lib/Frontend/ASTUnit.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/Frontend/ASTUnit.cpp b/lib/Frontend/ASTUnit.cpp index d04f785ebe..4cd92808f5 100644 --- a/lib/Frontend/ASTUnit.cpp +++ b/lib/Frontend/ASTUnit.cpp @@ -81,6 +81,10 @@ const std::string &ASTUnit::getOriginalSourceFileName() { return dyn_cast<PCHReader>(Ctx->getExternalSource())->getOriginalSourceFile(); } +FileManager &ASTUnit::getFileManager() { + return HeaderInfo->getFileMgr(); +} + ASTUnit *ASTUnit::LoadFromPCHFile(const std::string &Filename, FileManager &FileMgr, std::string *ErrMsg) { |