summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom Hacohen <tom@stosb.com>2012-07-08 08:45:21 +0000
committerTom Hacohen <tom@stosb.com>2012-07-08 08:45:21 +0000
commita7816f94a98c135ceb28c1f6656c10a1168ac9e2 (patch)
tree3d44f8e1baa076b8b2b70fcb8c7e67c32070355b
parent354118f8bd76a0a90d8095eb268daf5ae0c7ea97 (diff)
Edi: More verbose debug output.
SVN revision: 73463
-rw-r--r--src/bin/clang_debug.h7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/bin/clang_debug.h b/src/bin/clang_debug.h
index db0e827..7a9e6c6 100644
--- a/src/bin/clang_debug.h
+++ b/src/bin/clang_debug.h
@@ -76,9 +76,12 @@ void PrintCursor(CXCursor Cursor) {
76 } 76 }
77 printf("]"); 77 printf("]");
78 } else { 78 } else {
79 CXFile cfile;
79 CXSourceLocation Loc = clang_getCursorLocation(Referenced); 80 CXSourceLocation Loc = clang_getCursorLocation(Referenced);
80 clang_getSpellingLocation(Loc, 0, &line, &column, 0); 81 clang_getSpellingLocation(Loc, &cfile, &line, &column, 0);
81 printf(":%d:%d", line, column); 82 CXString str = clang_getFileName(cfile);
83 printf(":%s:%d:%d", clang_getCString(str), line, column);
84 clang_disposeString(str);
82 } 85 }
83 } 86 }
84 87