diff options
author | Argyrios Kyrtzidis <akyrtzi@gmail.com> | 2011-09-27 00:30:30 +0000 |
---|---|---|
committer | Argyrios Kyrtzidis <akyrtzi@gmail.com> | 2011-09-27 00:30:30 +0000 |
commit | d6e9fa55eba409648503e87f20cde0b3e11c9d71 (patch) | |
tree | 8429cf30b005febd28b589cb9b161dc4f83f41da /clang/tools/libclang/CXCursor.cpp | |
parent | 698bd3113e079624143bd3841c76e5567bf1d7b7 (diff) | |
download | bcm5719-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.cpp | 8 |
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. //===----------------------------------------------------------------------===// |