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 | ba4b5f8646f593e3751a1f83c19b84d886a3b2d8 (patch) | |
tree | 563f2bb56dd1143fe89f17c31de106380e1d2627 /clang/tools/libclang/CIndexHigh.cpp | |
parent | e7838a4c5301aaed1a637c7f1e79249db8198473 (diff) | |
download | bcm5719-llvm-ba4b5f8646f593e3751a1f83c19b84d886a3b2d8.tar.gz bcm5719-llvm-ba4b5f8646f593e3751a1f83c19b84d886a3b2d8.zip |
[libclang] Add Logger::operator<< overloads for CXCursor and FileEntry.
llvm-svn: 176680
Diffstat (limited to 'clang/tools/libclang/CIndexHigh.cpp')
-rw-r--r-- | clang/tools/libclang/CIndexHigh.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/clang/tools/libclang/CIndexHigh.cpp b/clang/tools/libclang/CIndexHigh.cpp index 77e71c33932..af386d22764 100644 --- a/clang/tools/libclang/CIndexHigh.cpp +++ b/clang/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; |