llvm::getObjCNamesIfSelector

Parses an Objective-C selector name into its component parts.

Synopsis

Declared in <llvm/DebugInfo/DWARF/DWARFAcceleratorTable.h>

std::optional<ObjCSelectorNames>
getObjCNamesIfSelector(StringRef Name);

Description

If Name is the AT_name of a DIE which refers to an Objective-C selector, returns an instance of ObjCSelectorNames. The Selector and ClassName fields are guaranteed to be non-empty in the result.

Return Value

Parsed selector components, or std::nullopt if Name is not a selector.

Parameters

NameDescription
NameDIE AT_name to parse as an Objective-C selector.