diff options
author | Argyrios Kyrtzidis <akyrtzi@gmail.com> | 2013-03-08 02:32:26 +0000 |
---|---|---|
committer | Argyrios Kyrtzidis <akyrtzi@gmail.com> | 2013-03-08 02:32:26 +0000 |
commit | b70e7a83ee55e463d52d175bd68dece2bfd084f4 (patch) | |
tree | 7d492303389dd0e924540d095aa58e8a176b52cd /tools/libclang/CIndexHigh.cpp | |
parent | 480760f8c7db7a1b77a73f4833bb99f657802775 (diff) | |
download | clang-b70e7a83ee55e463d52d175bd68dece2bfd084f4.tar.gz clang-b70e7a83ee55e463d52d175bd68dece2bfd084f4.tar.bz2 clang-b70e7a83ee55e463d52d175bd68dece2bfd084f4.tar.xz |
[libclang] Add Logger::operator<< overloads for CXCursor and FileEntry.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@176680 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'tools/libclang/CIndexHigh.cpp')
-rw-r--r-- | tools/libclang/CIndexHigh.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/tools/libclang/CIndexHigh.cpp b/tools/libclang/CIndexHigh.cpp index 77e71c3393..af386d2276 100644 --- a/tools/libclang/CIndexHigh.cpp +++ b/tools/libclang/CIndexHigh.cpp @@ -367,6 +367,9 @@ void clang_findReferencesInFile(CXCursor cursor, CXFile file, return; } + if (Log) + *Log << cursor << " @" << static_cast<const FileEntry *>(file); + ASTUnit *CXXUnit = cxcursor::getCursorASTUnit(cursor); if (!CXXUnit) return; |