From 1a532c9e1dee0f898be16bf2ae84d5b798f25d28 Mon Sep 17 00:00:00 2001 From: Dave Lee Date: Fri, 22 Sep 2017 16:58:57 +0000 Subject: [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 --- clang/include/clang-c/Index.h | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'clang/include/clang-c') 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 @@ -4292,6 +4292,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); + /** * @} */ -- cgit v1.2.3