aboutsummaryrefslogtreecommitdiffstats
path: root/src/tools/clangbackend/ipcsource/cursor.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/tools/clangbackend/ipcsource/cursor.cpp')
-rw-r--r--src/tools/clangbackend/ipcsource/cursor.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/tools/clangbackend/ipcsource/cursor.cpp b/src/tools/clangbackend/ipcsource/cursor.cpp
index 518fd013d2..6ad50307cd 100644
--- a/src/tools/clangbackend/ipcsource/cursor.cpp
+++ b/src/tools/clangbackend/ipcsource/cursor.cpp
@@ -273,6 +273,11 @@ CXSourceRange Cursor::cxSourceRange() const
return clang_getCursorExtent(cxCursor);
}
+CXTranslationUnit Cursor::cxTranslationUnit() const
+{
+ return clang_Cursor_getTranslationUnit(cxCursor);
+}
+
SourceRange Cursor::commentRange() const
{
return clang_Cursor_getCommentRange(cxCursor);