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 /tools | |
parent | ca76bf8a935ef1da970fbc95869e899120883ba1 (diff) | |
download | clang-44f65a587ee39c20e715c9df411c864d328c71b5.tar.gz |
[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 'tools')
-rw-r--r-- | tools/libclang/CIndex.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/tools/libclang/CIndex.cpp b/tools/libclang/CIndex.cpp index 36224a8cff..2cfaea442b 100644 --- a/tools/libclang/CIndex.cpp +++ b/tools/libclang/CIndex.cpp @@ -6387,6 +6387,8 @@ Logger &cxindex::Logger::operator<<(CXTranslationUnit TU) { if (TU) { if (ASTUnit *Unit = cxtu::getASTUnit(TU)) { LogOS << '<' << Unit->getMainFileName() << '>'; + if (Unit->isMainFileAST()) + LogOS << " (" << Unit->getASTFileName() << ')'; return *this; } } |