summaryrefslogtreecommitdiffstats
path: root/clang/tools/libclang/CXCursor.cpp
diff options
context:
space:
mode:
authorArgyrios Kyrtzidis <akyrtzi@gmail.com>2011-09-27 00:30:30 +0000
committerArgyrios Kyrtzidis <akyrtzi@gmail.com>2011-09-27 00:30:30 +0000
commitd6e9fa55eba409648503e87f20cde0b3e11c9d71 (patch)
tree8429cf30b005febd28b589cb9b161dc4f83f41da /clang/tools/libclang/CXCursor.cpp
parent698bd3113e079624143bd3841c76e5567bf1d7b7 (diff)
downloadbcm5719-llvm-d6e9fa55eba409648503e87f20cde0b3e11c9d71.tar.gz
bcm5719-llvm-d6e9fa55eba409648503e87f20cde0b3e11c9d71.zip
[libclang] Introduce clang_Cursor_isNull and clang_Cursor_getTranslationUnit functions.
llvm-svn: 140587
Diffstat (limited to 'clang/tools/libclang/CXCursor.cpp')
-rw-r--r--clang/tools/libclang/CXCursor.cpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/clang/tools/libclang/CXCursor.cpp b/clang/tools/libclang/CXCursor.cpp
index eb54ed2b688..c0e038467fb 100644
--- a/clang/tools/libclang/CXCursor.cpp
+++ b/clang/tools/libclang/CXCursor.cpp
@@ -519,6 +519,14 @@ bool cxcursor::isFirstInDeclGroup(CXCursor C) {
}
//===----------------------------------------------------------------------===//
+// libclang CXCursor APIs
+//===----------------------------------------------------------------------===//
+
+CXTranslationUnit clang_Cursor_getTranslationUnit(CXCursor cursor) {
+ return getCursorTU(cursor);
+}
+
+//===----------------------------------------------------------------------===//
// CXCursorSet.
//===----------------------------------------------------------------------===//
OpenPOWER on IntegriCloud