diff options
author | Argyrios Kyrtzidis <akyrtzi@gmail.com> | 2013-03-05 20:21:14 +0000 |
---|---|---|
committer | Argyrios Kyrtzidis <akyrtzi@gmail.com> | 2013-03-05 20:21:14 +0000 |
commit | 44f65a587ee39c20e715c9df411c864d328c71b5 (patch) | |
tree | 45ab61a5b93023556ee56ed74f81187756f837e5 /include/clang/Frontend/ASTUnit.h | |
parent | ca76bf8a935ef1da970fbc95869e899120883ba1 (diff) |
[libclang] When logging a CXTranslationUnit that came from an AST file, print out the filename.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@176511 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/clang/Frontend/ASTUnit.h')
-rw-r--r-- | include/clang/Frontend/ASTUnit.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/include/clang/Frontend/ASTUnit.h b/include/clang/Frontend/ASTUnit.h index 9a02c0c2b8..108114dd67 100644 --- a/include/clang/Frontend/ASTUnit.h +++ b/include/clang/Frontend/ASTUnit.h @@ -485,6 +485,9 @@ public: StringRef getMainFileName() const; + /// \brief If this ASTUnit came from an AST file, returns the filename for it. + StringRef getASTFileName() const; + typedef std::vector<Decl *>::iterator top_level_iterator; top_level_iterator top_level_begin() { |