HomePhabricator

[index] Generate class & metaclass manglings for objc

Authored by kastiglione on Sep 22 2017, 9:58 AM.

Description

[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

Details

Committed
kastiglioneSep 22 2017, 9:58 AM
Reviewer
compnerd
Differential Revision
D37671: [index] Generate class & metaclass manglings for objc
Parents
rG8c4d061562c3: Remove trailing whitespace. NFCI.
Branches
Unknown
Tags
Unknown