brintos

brintos / llvm-project-archived public Read only

0
0
Text · 472 B · 1aeb08c Raw
15 lines · plain
1STRING_EXTENSION_LEVEL_OUTSIDE(SBTypeNameSpecifier, lldb::eDescriptionLevelBrief)2%extend lldb::SBTypeNameSpecifier {3#ifdef SWIGPYTHON4        %pythoncode %{5            # operator== is a free function, which swig does not handle, so we inject6            # our own equality operator here7            def __eq__(self, other):8                return not self.__ne__(other)9 10            name = property(GetName)11            is_regex = property(IsRegex)12        %}13#endif14}15