diff options
| author | Douglas Gregor <dgregor@apple.com> | 2011-08-04 20:04:59 +0000 |
|---|---|---|
| committer | Douglas Gregor <dgregor@apple.com> | 2011-08-04 20:04:59 +0000 |
| commit | 3f35bb2d15a4df45a4e7d171b42c33c65b9267a3 (patch) | |
| tree | dc86f5407735dc3be7429f82d2fab4ab5fe3e708 /clang/include/clang-c | |
| parent | c0174048a4506b437727357c373febb52666940a (diff) | |
| download | bcm5719-llvm-3f35bb2d15a4df45a4e7d171b42c33c65b9267a3.tar.gz bcm5719-llvm-3f35bb2d15a4df45a4e7d171b42c33c65b9267a3.zip | |
Add a new libclang API to return a CXCompletionString for an arbitrary
cursor, from Connor Wakamo! Addresses <rdar://problem/9087798>.
llvm-svn: 136911
Diffstat (limited to 'clang/include/clang-c')
| -rw-r--r-- | clang/include/clang-c/Index.h | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/clang/include/clang-c/Index.h b/clang/include/clang-c/Index.h index e52ed461316..e16a21ef359 100644 --- a/clang/include/clang-c/Index.h +++ b/clang/include/clang-c/Index.h @@ -2899,6 +2899,18 @@ CINDEX_LINKAGE enum CXAvailabilityKind clang_getCompletionAvailability(CXCompletionString completion_string); /** + * \brief Retrieve a completion string for an arbitrary declaration or macro + * definition cursor. + * + * \param cursor The cursor to query. + * + * \returns A non-context-sensitive completion string for declaration and macro + * definition cursors, or NULL for other kinds of cursors. + */ +CINDEX_LINKAGE CXCompletionString +clang_getCursorCompletionString(CXCursor cursor); + +/** * \brief Contains the results of code-completion. * * This data structure contains the results of code completion, as |

