summaryrefslogtreecommitdiffstats
path: root/clang/include/clang-c
diff options
context:
space:
mode:
authorDave Lee <davelee.com@gmail.com>2017-09-22 16:58:57 +0000
committerDave Lee <davelee.com@gmail.com>2017-09-22 16:58:57 +0000
commit1a532c9e1dee0f898be16bf2ae84d5b798f25d28 (patch)
tree9d833023c353a290d44648563475c667864d0cea /clang/include/clang-c
parent8c4d061562c3bf2ffcb8c0e73b41f92e034461d0 (diff)
downloadbcm5719-llvm-1a532c9e1dee0f898be16bf2ae84d5b798f25d28.tar.gz
bcm5719-llvm-1a532c9e1dee0f898be16bf2ae84d5b798f25d28.zip
[index] Generate class & metaclass manglings for objc
Summary: ObjC classes have two associated symbols, one for the class and one for the metaclass. This change overloads `CodegenNameGenerator::getAllManglings` to produce both class and metaclass symbols. While this function is called by `clang_Cursor_getCXXManglings`, it's only called for CXXRecordDecl and CXXMethodDecl, and so libclang's behavior is unchanged. Reviewers: arphaman, abdulras, alexshap, compnerd Reviewed By: compnerd Subscribers: compnerd Differential Revision: https://reviews.llvm.org/D37671 llvm-svn: 313997
Diffstat (limited to 'clang/include/clang-c')
-rw-r--r--clang/include/clang-c/Index.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/clang/include/clang-c/Index.h b/clang/include/clang-c/Index.h
index b5d994783f5..c72be56fdc7 100644
--- a/clang/include/clang-c/Index.h
+++ b/clang/include/clang-c/Index.h
@@ -4293,6 +4293,12 @@ CINDEX_LINKAGE CXString clang_Cursor_getMangling(CXCursor);
CINDEX_LINKAGE CXStringSet *clang_Cursor_getCXXManglings(CXCursor);
/**
+ * \brief Retrieve the CXStrings representing the mangled symbols of the ObjC
+ * class interface or implementation at the cursor.
+ */
+CINDEX_LINKAGE CXStringSet *clang_Cursor_getObjCManglings(CXCursor);
+
+/**
* @}
*/
OpenPOWER on IntegriCloud