summaryrefslogtreecommitdiffstats
path: root/clang/include/clang-c
diff options
context:
space:
mode:
authorDouglas Gregor <dgregor@apple.com>2010-10-02 22:49:11 +0000
committerDouglas Gregor <dgregor@apple.com>2010-10-02 22:49:11 +0000
commit97c7571ef3f958e6600f5768cf4f75404a09f0d3 (patch)
tree4bc2a9e9f7c767d17521669fa4711ad8cc2a9c30 /clang/include/clang-c
parent743bc472ac9a411838246581ec26ec74884fee2a (diff)
downloadbcm5719-llvm-97c7571ef3f958e6600f5768cf4f75404a09f0d3.tar.gz
bcm5719-llvm-97c7571ef3f958e6600f5768cf4f75404a09f0d3.zip
Introduce a new libclang function, clang_getCursorDisplayName(), which
produces a simple "display" name that captures the arguments/parameters for a function, function template, class template, or class template specialization. llvm-svn: 115428
Diffstat (limited to 'clang/include/clang-c')
-rw-r--r--clang/include/clang-c/Index.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/clang/include/clang-c/Index.h b/clang/include/clang-c/Index.h
index f78df52d83e..707c0df2017 100644
--- a/clang/include/clang-c/Index.h
+++ b/clang/include/clang-c/Index.h
@@ -1884,6 +1884,15 @@ CINDEX_LINKAGE CXString clang_constructUSR_ObjCProperty(const char *property,
*/
CINDEX_LINKAGE CXString clang_getCursorSpelling(CXCursor);
+/**
+ * \brief Retrieve the display name for the entity referenced by this cursor.
+ *
+ * The display name contains extra information that helps identify the cursor,
+ * such as the parameters of a function or template or the arguments of a
+ * class template specialization.
+ */
+CINDEX_LINKAGE CXString clang_getCursorDisplayName(CXCursor);
+
/** \brief For a cursor that is a reference, retrieve a cursor representing the
* entity that it references.
*
OpenPOWER on IntegriCloud