pydemumble 0.0.1__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- pydemumble-0.0.1/.gitignore +4 -0
- pydemumble-0.0.1/.gitmodules +6 -0
- pydemumble-0.0.1/CMakeLists.txt +73 -0
- pydemumble-0.0.1/LICENSE +26 -0
- pydemumble-0.0.1/PKG-INFO +13 -0
- pydemumble-0.0.1/README.md +3 -0
- pydemumble-0.0.1/pyproject.toml +48 -0
- pydemumble-0.0.1/src/demumble/.git +1 -0
- pydemumble-0.0.1/src/demumble/.github/workflows/test.yml +31 -0
- pydemumble-0.0.1/src/demumble/.gitignore +18 -0
- pydemumble-0.0.1/src/demumble/CMakeLists.txt +69 -0
- pydemumble-0.0.1/src/demumble/LICENSE +202 -0
- pydemumble-0.0.1/src/demumble/README.md +88 -0
- pydemumble-0.0.1/src/demumble/RELEASING +14 -0
- pydemumble-0.0.1/src/demumble/demumble.cc +187 -0
- pydemumble-0.0.1/src/demumble/demumble_test.py +71 -0
- pydemumble-0.0.1/src/demumble/dist.py +141 -0
- pydemumble-0.0.1/src/demumble/scripts/copy-swift-demangle.sh +84 -0
- pydemumble-0.0.1/src/demumble/third_party/llvm/LICENSE.txt +279 -0
- pydemumble-0.0.1/src/demumble/third_party/llvm/include/llvm/ADT/ADL.h +135 -0
- pydemumble-0.0.1/src/demumble/third_party/llvm/include/llvm/ADT/DenseMapInfo.h +325 -0
- pydemumble-0.0.1/src/demumble/third_party/llvm/include/llvm/ADT/Hashing.h +680 -0
- pydemumble-0.0.1/src/demumble/third_party/llvm/include/llvm/ADT/STLExtras.h +2568 -0
- pydemumble-0.0.1/src/demumble/third_party/llvm/include/llvm/ADT/STLForwardCompat.h +72 -0
- pydemumble-0.0.1/src/demumble/third_party/llvm/include/llvm/ADT/STLFunctionalExtras.h +76 -0
- pydemumble-0.0.1/src/demumble/third_party/llvm/include/llvm/ADT/StringRef.h +926 -0
- pydemumble-0.0.1/src/demumble/third_party/llvm/include/llvm/ADT/StringSwitch.h +196 -0
- pydemumble-0.0.1/src/demumble/third_party/llvm/include/llvm/ADT/bit.h +422 -0
- pydemumble-0.0.1/src/demumble/third_party/llvm/include/llvm/ADT/iterator.h +378 -0
- pydemumble-0.0.1/src/demumble/third_party/llvm/include/llvm/ADT/iterator_range.h +86 -0
- pydemumble-0.0.1/src/demumble/third_party/llvm/include/llvm/Config/abi-breaking.h +62 -0
- pydemumble-0.0.1/src/demumble/third_party/llvm/include/llvm/Config/llvm-config.h +204 -0
- pydemumble-0.0.1/src/demumble/third_party/llvm/include/llvm/Demangle/Compiler.h +549 -0
- pydemumble-0.0.1/src/demumble/third_party/llvm/include/llvm/Demangle/Demangle.h +132 -0
- pydemumble-0.0.1/src/demumble/third_party/llvm/include/llvm/Demangle/DemangleConfig.h +97 -0
- pydemumble-0.0.1/src/demumble/third_party/llvm/include/llvm/Demangle/ItaniumDemangle.h +5954 -0
- pydemumble-0.0.1/src/demumble/third_party/llvm/include/llvm/Demangle/ItaniumNodes.def +104 -0
- pydemumble-0.0.1/src/demumble/third_party/llvm/include/llvm/Demangle/MicrosoftDemangle.h +289 -0
- pydemumble-0.0.1/src/demumble/third_party/llvm/include/llvm/Demangle/MicrosoftDemangleNodes.h +629 -0
- pydemumble-0.0.1/src/demumble/third_party/llvm/include/llvm/Demangle/StringView.h +122 -0
- pydemumble-0.0.1/src/demumble/third_party/llvm/include/llvm/Demangle/StringViewExtras.h +38 -0
- pydemumble-0.0.1/src/demumble/third_party/llvm/include/llvm/Demangle/Utility.h +203 -0
- pydemumble-0.0.1/src/demumble/third_party/llvm/include/llvm/Support/Casting.h +852 -0
- pydemumble-0.0.1/src/demumble/third_party/llvm/include/llvm/Support/Compiler.h +607 -0
- pydemumble-0.0.1/src/demumble/third_party/llvm/include/llvm/Support/DataTypes.h +21 -0
- pydemumble-0.0.1/src/demumble/third_party/llvm/include/llvm/Support/ErrorHandling.h +157 -0
- pydemumble-0.0.1/src/demumble/third_party/llvm/include/llvm/Support/SwapByteOrder.h +68 -0
- pydemumble-0.0.1/src/demumble/third_party/llvm/include/llvm/Support/type_traits.h +97 -0
- pydemumble-0.0.1/src/demumble/third_party/llvm/include/llvm-c/DataTypes.h +80 -0
- pydemumble-0.0.1/src/demumble/third_party/llvm/lib/Demangle/DLangDemangle.cpp +594 -0
- pydemumble-0.0.1/src/demumble/third_party/llvm/lib/Demangle/Demangle.cpp +73 -0
- pydemumble-0.0.1/src/demumble/third_party/llvm/lib/Demangle/ItaniumDemangle.cpp +597 -0
- pydemumble-0.0.1/src/demumble/third_party/llvm/lib/Demangle/MicrosoftDemangle.cpp +2465 -0
- pydemumble-0.0.1/src/demumble/third_party/llvm/lib/Demangle/MicrosoftDemangleNodes.cpp +658 -0
- pydemumble-0.0.1/src/demumble/third_party/llvm/lib/Demangle/RustDemangle.cpp +1259 -0
- pydemumble-0.0.1/src/demumble/third_party/swift/LICENSE.txt +211 -0
- pydemumble-0.0.1/src/demumble/third_party/swift/include/swift/ABI/InvertibleProtocols.def +31 -0
- pydemumble-0.0.1/src/demumble/third_party/swift/include/swift/AST/Ownership.h +168 -0
- pydemumble-0.0.1/src/demumble/third_party/swift/include/swift/AST/ReferenceStorage.def +202 -0
- pydemumble-0.0.1/src/demumble/third_party/swift/include/swift/Basic/Assertions.h +200 -0
- pydemumble-0.0.1/src/demumble/third_party/swift/include/swift/Basic/InlineBitfield.h +189 -0
- pydemumble-0.0.1/src/demumble/third_party/swift/include/swift/Basic/LLVM.h +114 -0
- pydemumble-0.0.1/src/demumble/third_party/swift/include/swift/Basic/MacroRoles.def +90 -0
- pydemumble-0.0.1/src/demumble/third_party/swift/include/swift/Basic/STLExtras.h +798 -0
- pydemumble-0.0.1/src/demumble/third_party/swift/include/swift/Demangling/Demangle.h +798 -0
- pydemumble-0.0.1/src/demumble/third_party/swift/include/swift/Demangling/DemangleNodes.def +402 -0
- pydemumble-0.0.1/src/demumble/third_party/swift/include/swift/Demangling/Demangler.h +696 -0
- pydemumble-0.0.1/src/demumble/third_party/swift/include/swift/Demangling/Errors.h +70 -0
- pydemumble-0.0.1/src/demumble/third_party/swift/include/swift/Demangling/ManglingMacros.h +96 -0
- pydemumble-0.0.1/src/demumble/third_party/swift/include/swift/Demangling/ManglingUtils.h +337 -0
- pydemumble-0.0.1/src/demumble/third_party/swift/include/swift/Demangling/NamespaceMacros.h +35 -0
- pydemumble-0.0.1/src/demumble/third_party/swift/include/swift/Demangling/Punycode.h +68 -0
- pydemumble-0.0.1/src/demumble/third_party/swift/include/swift/Demangling/StandardTypesMangling.def +104 -0
- pydemumble-0.0.1/src/demumble/third_party/swift/include/swift/Demangling/TypeDecoder.h +1897 -0
- pydemumble-0.0.1/src/demumble/third_party/swift/include/swift/Demangling/TypeLookupError.h +222 -0
- pydemumble-0.0.1/src/demumble/third_party/swift/include/swift/Demangling/ValueWitnessMangling.def +41 -0
- pydemumble-0.0.1/src/demumble/third_party/swift/include/swift/Strings.h +187 -0
- pydemumble-0.0.1/src/demumble/third_party/swift/lib/Demangling/Context.cpp +291 -0
- pydemumble-0.0.1/src/demumble/third_party/swift/lib/Demangling/CrashReporter.cpp +35 -0
- pydemumble-0.0.1/src/demumble/third_party/swift/lib/Demangling/CrashReporter.h +50 -0
- pydemumble-0.0.1/src/demumble/third_party/swift/lib/Demangling/Demangler.cpp +4380 -0
- pydemumble-0.0.1/src/demumble/third_party/swift/lib/Demangling/DemanglerAssert.h +67 -0
- pydemumble-0.0.1/src/demumble/third_party/swift/lib/Demangling/Errors.cpp +227 -0
- pydemumble-0.0.1/src/demumble/third_party/swift/lib/Demangling/ManglingUtils.cpp +86 -0
- pydemumble-0.0.1/src/demumble/third_party/swift/lib/Demangling/NodeDumper.cpp +78 -0
- pydemumble-0.0.1/src/demumble/third_party/swift/lib/Demangling/NodePrinter.cpp +3724 -0
- pydemumble-0.0.1/src/demumble/third_party/swift/lib/Demangling/OldDemangler.cpp +2406 -0
- pydemumble-0.0.1/src/demumble/third_party/swift/lib/Demangling/OldRemangler.cpp +3056 -0
- pydemumble-0.0.1/src/demumble/third_party/swift/lib/Demangling/Punycode.cpp +370 -0
- pydemumble-0.0.1/src/demumble/third_party/swift/lib/Demangling/Remangler.cpp +4155 -0
- pydemumble-0.0.1/src/demumble/third_party/swift/lib/Demangling/RemanglerBase.h +197 -0
- pydemumble-0.0.1/src/nanobind/.git +1 -0
- pydemumble-0.0.1/src/nanobind/.github/ISSUE_TEMPLATE/all-other.yml +23 -0
- pydemumble-0.0.1/src/nanobind/.github/ISSUE_TEMPLATE/bug-report.yml +33 -0
- pydemumble-0.0.1/src/nanobind/.github/workflows/ci.yml +201 -0
- pydemumble-0.0.1/src/nanobind/.github/workflows/nvcc-win.yml +45 -0
- pydemumble-0.0.1/src/nanobind/.gitignore +42 -0
- pydemumble-0.0.1/src/nanobind/.gitmodules +3 -0
- pydemumble-0.0.1/src/nanobind/.readthedocs.yaml +18 -0
- pydemumble-0.0.1/src/nanobind/CMakeLists.txt +158 -0
- pydemumble-0.0.1/src/nanobind/LICENSE +26 -0
- pydemumble-0.0.1/src/nanobind/README.md +59 -0
- pydemumble-0.0.1/src/nanobind/cmake/collect-symbols-pypy.py +28 -0
- pydemumble-0.0.1/src/nanobind/cmake/collect-symbols.py +42 -0
- pydemumble-0.0.1/src/nanobind/cmake/darwin-ld-cpython.sym +925 -0
- pydemumble-0.0.1/src/nanobind/cmake/darwin-ld-pypy.sym +964 -0
- pydemumble-0.0.1/src/nanobind/cmake/nanobind-config.cmake +490 -0
- pydemumble-0.0.1/src/nanobind/docs/api_bazel.rst +157 -0
- pydemumble-0.0.1/src/nanobind/docs/api_cmake.rst +491 -0
- pydemumble-0.0.1/src/nanobind/docs/api_core.rst +3171 -0
- pydemumble-0.0.1/src/nanobind/docs/api_extra.rst +1562 -0
- pydemumble-0.0.1/src/nanobind/docs/basics.rst +481 -0
- pydemumble-0.0.1/src/nanobind/docs/bazel.rst +198 -0
- pydemumble-0.0.1/src/nanobind/docs/benchmark.rst +174 -0
- pydemumble-0.0.1/src/nanobind/docs/building.rst +118 -0
- pydemumble-0.0.1/src/nanobind/docs/changelog.rst +1462 -0
- pydemumble-0.0.1/src/nanobind/docs/classes.rst +1143 -0
- pydemumble-0.0.1/src/nanobind/docs/conf.py +250 -0
- pydemumble-0.0.1/src/nanobind/docs/cppyy.h +16 -0
- pydemumble-0.0.1/src/nanobind/docs/eigen.rst +120 -0
- pydemumble-0.0.1/src/nanobind/docs/exceptions.rst +291 -0
- pydemumble-0.0.1/src/nanobind/docs/exchanging.rst +422 -0
- pydemumble-0.0.1/src/nanobind/docs/faq.rst +398 -0
- pydemumble-0.0.1/src/nanobind/docs/free_threaded.rst +326 -0
- pydemumble-0.0.1/src/nanobind/docs/functions.rst +609 -0
- pydemumble-0.0.1/src/nanobind/docs/images/binding-dark.svg +122 -0
- pydemumble-0.0.1/src/nanobind/docs/images/binding-light.svg +112 -0
- pydemumble-0.0.1/src/nanobind/docs/images/caster-dark.svg +118 -0
- pydemumble-0.0.1/src/nanobind/docs/images/caster-light.svg +108 -0
- pydemumble-0.0.1/src/nanobind/docs/images/logo.jpg +0 -0
- pydemumble-0.0.1/src/nanobind/docs/images/perf.svg +1979 -0
- pydemumble-0.0.1/src/nanobind/docs/images/sizes.svg +1909 -0
- pydemumble-0.0.1/src/nanobind/docs/images/times.svg +1859 -0
- pydemumble-0.0.1/src/nanobind/docs/images/wrapper-dark.svg +102 -0
- pydemumble-0.0.1/src/nanobind/docs/images/wrapper-light.svg +92 -0
- pydemumble-0.0.1/src/nanobind/docs/index.rst +147 -0
- pydemumble-0.0.1/src/nanobind/docs/installing.rst +48 -0
- pydemumble-0.0.1/src/nanobind/docs/lowlevel.rst +323 -0
- pydemumble-0.0.1/src/nanobind/docs/meson.rst +104 -0
- pydemumble-0.0.1/src/nanobind/docs/microbenchmark.ipynb +447 -0
- pydemumble-0.0.1/src/nanobind/docs/ndarray.rst +714 -0
- pydemumble-0.0.1/src/nanobind/docs/ndarray_index.rst +13 -0
- pydemumble-0.0.1/src/nanobind/docs/ownership.rst +400 -0
- pydemumble-0.0.1/src/nanobind/docs/ownership_adv.rst +398 -0
- pydemumble-0.0.1/src/nanobind/docs/packaging.rst +332 -0
- pydemumble-0.0.1/src/nanobind/docs/porting.rst +360 -0
- pydemumble-0.0.1/src/nanobind/docs/pypy.rst +23 -0
- pydemumble-0.0.1/src/nanobind/docs/refleaks.rst +476 -0
- pydemumble-0.0.1/src/nanobind/docs/release.rst +38 -0
- pydemumble-0.0.1/src/nanobind/docs/requirements.txt +5 -0
- pydemumble-0.0.1/src/nanobind/docs/typing.rst +674 -0
- pydemumble-0.0.1/src/nanobind/docs/utilities.rst +59 -0
- pydemumble-0.0.1/src/nanobind/docs/why.rst +252 -0
- pydemumble-0.0.1/src/nanobind/ext/robin_map/.clang-format +1 -0
- pydemumble-0.0.1/src/nanobind/ext/robin_map/.codecov.yml +5 -0
- pydemumble-0.0.1/src/nanobind/ext/robin_map/.git +1 -0
- pydemumble-0.0.1/src/nanobind/ext/robin_map/.github/workflows/ci.yml +136 -0
- pydemumble-0.0.1/src/nanobind/ext/robin_map/CMakeLists.txt +86 -0
- pydemumble-0.0.1/src/nanobind/ext/robin_map/LICENSE +21 -0
- pydemumble-0.0.1/src/nanobind/ext/robin_map/README.md +521 -0
- pydemumble-0.0.1/src/nanobind/ext/robin_map/cmake/tsl-robin-mapConfig.cmake.in +9 -0
- pydemumble-0.0.1/src/nanobind/ext/robin_map/doxygen.conf +2483 -0
- pydemumble-0.0.1/src/nanobind/ext/robin_map/include/tsl/robin_growth_policy.h +416 -0
- pydemumble-0.0.1/src/nanobind/ext/robin_map/include/tsl/robin_hash.h +1642 -0
- pydemumble-0.0.1/src/nanobind/ext/robin_map/include/tsl/robin_map.h +815 -0
- pydemumble-0.0.1/src/nanobind/ext/robin_map/include/tsl/robin_set.h +668 -0
- pydemumble-0.0.1/src/nanobind/ext/robin_map/tests/CMakeLists.txt +26 -0
- pydemumble-0.0.1/src/nanobind/ext/robin_map/tests/custom_allocator_tests.cpp +138 -0
- pydemumble-0.0.1/src/nanobind/ext/robin_map/tests/main.cpp +26 -0
- pydemumble-0.0.1/src/nanobind/ext/robin_map/tests/policy_tests.cpp +97 -0
- pydemumble-0.0.1/src/nanobind/ext/robin_map/tests/robin_map_tests.cpp +1462 -0
- pydemumble-0.0.1/src/nanobind/ext/robin_map/tests/robin_set_tests.cpp +174 -0
- pydemumble-0.0.1/src/nanobind/ext/robin_map/tests/utils.h +443 -0
- pydemumble-0.0.1/src/nanobind/ext/robin_map/tsl-robin-map.natvis +78 -0
- pydemumble-0.0.1/src/nanobind/include/nanobind/eigen/dense.h +486 -0
- pydemumble-0.0.1/src/nanobind/include/nanobind/eigen/sparse.h +178 -0
- pydemumble-0.0.1/src/nanobind/include/nanobind/eval.h +61 -0
- pydemumble-0.0.1/src/nanobind/include/nanobind/intrusive/counter.h +261 -0
- pydemumble-0.0.1/src/nanobind/include/nanobind/intrusive/counter.inl +148 -0
- pydemumble-0.0.1/src/nanobind/include/nanobind/intrusive/ref.h +153 -0
- pydemumble-0.0.1/src/nanobind/include/nanobind/make_iterator.h +160 -0
- pydemumble-0.0.1/src/nanobind/include/nanobind/nanobind.h +61 -0
- pydemumble-0.0.1/src/nanobind/include/nanobind/nb_accessor.h +225 -0
- pydemumble-0.0.1/src/nanobind/include/nanobind/nb_attr.h +471 -0
- pydemumble-0.0.1/src/nanobind/include/nanobind/nb_call.h +152 -0
- pydemumble-0.0.1/src/nanobind/include/nanobind/nb_cast.h +746 -0
- pydemumble-0.0.1/src/nanobind/include/nanobind/nb_class.h +852 -0
- pydemumble-0.0.1/src/nanobind/include/nanobind/nb_defs.h +209 -0
- pydemumble-0.0.1/src/nanobind/include/nanobind/nb_descr.h +155 -0
- pydemumble-0.0.1/src/nanobind/include/nanobind/nb_enums.h +26 -0
- pydemumble-0.0.1/src/nanobind/include/nanobind/nb_error.h +152 -0
- pydemumble-0.0.1/src/nanobind/include/nanobind/nb_func.h +414 -0
- pydemumble-0.0.1/src/nanobind/include/nanobind/nb_lib.h +568 -0
- pydemumble-0.0.1/src/nanobind/include/nanobind/nb_misc.h +125 -0
- pydemumble-0.0.1/src/nanobind/include/nanobind/nb_python.h +61 -0
- pydemumble-0.0.1/src/nanobind/include/nanobind/nb_traits.h +220 -0
- pydemumble-0.0.1/src/nanobind/include/nanobind/nb_tuple.h +78 -0
- pydemumble-0.0.1/src/nanobind/include/nanobind/nb_types.h +935 -0
- pydemumble-0.0.1/src/nanobind/include/nanobind/ndarray.h +590 -0
- pydemumble-0.0.1/src/nanobind/include/nanobind/operators.h +149 -0
- pydemumble-0.0.1/src/nanobind/include/nanobind/stl/array.h +22 -0
- pydemumble-0.0.1/src/nanobind/include/nanobind/stl/bind_map.h +181 -0
- pydemumble-0.0.1/src/nanobind/include/nanobind/stl/bind_vector.h +225 -0
- pydemumble-0.0.1/src/nanobind/include/nanobind/stl/chrono.h +227 -0
- pydemumble-0.0.1/src/nanobind/include/nanobind/stl/complex.h +54 -0
- pydemumble-0.0.1/src/nanobind/include/nanobind/stl/detail/chrono.h +299 -0
- pydemumble-0.0.1/src/nanobind/include/nanobind/stl/detail/nb_array.h +67 -0
- pydemumble-0.0.1/src/nanobind/include/nanobind/stl/detail/nb_dict.h +95 -0
- pydemumble-0.0.1/src/nanobind/include/nanobind/stl/detail/nb_list.h +83 -0
- pydemumble-0.0.1/src/nanobind/include/nanobind/stl/detail/nb_optional.h +49 -0
- pydemumble-0.0.1/src/nanobind/include/nanobind/stl/detail/nb_set.h +81 -0
- pydemumble-0.0.1/src/nanobind/include/nanobind/stl/detail/traits.h +92 -0
- pydemumble-0.0.1/src/nanobind/include/nanobind/stl/filesystem.h +93 -0
- pydemumble-0.0.1/src/nanobind/include/nanobind/stl/function.h +95 -0
- pydemumble-0.0.1/src/nanobind/include/nanobind/stl/list.h +22 -0
- pydemumble-0.0.1/src/nanobind/include/nanobind/stl/map.h +23 -0
- pydemumble-0.0.1/src/nanobind/include/nanobind/stl/optional.h +27 -0
- pydemumble-0.0.1/src/nanobind/include/nanobind/stl/pair.h +92 -0
- pydemumble-0.0.1/src/nanobind/include/nanobind/stl/set.h +24 -0
- pydemumble-0.0.1/src/nanobind/include/nanobind/stl/shared_ptr.h +137 -0
- pydemumble-0.0.1/src/nanobind/include/nanobind/stl/string.h +39 -0
- pydemumble-0.0.1/src/nanobind/include/nanobind/stl/string_view.h +39 -0
- pydemumble-0.0.1/src/nanobind/include/nanobind/stl/tuple.h +109 -0
- pydemumble-0.0.1/src/nanobind/include/nanobind/stl/unique_ptr.h +177 -0
- pydemumble-0.0.1/src/nanobind/include/nanobind/stl/unordered_map.h +23 -0
- pydemumble-0.0.1/src/nanobind/include/nanobind/stl/unordered_set.h +24 -0
- pydemumble-0.0.1/src/nanobind/include/nanobind/stl/variant.h +68 -0
- pydemumble-0.0.1/src/nanobind/include/nanobind/stl/vector.h +22 -0
- pydemumble-0.0.1/src/nanobind/include/nanobind/stl/wstring.h +39 -0
- pydemumble-0.0.1/src/nanobind/include/nanobind/trampoline.h +76 -0
- pydemumble-0.0.1/src/nanobind/include/nanobind/typing.h +31 -0
- pydemumble-0.0.1/src/nanobind/pyproject.toml +58 -0
- pydemumble-0.0.1/src/nanobind/src/__init__.py +26 -0
- pydemumble-0.0.1/src/nanobind/src/__main__.py +36 -0
- pydemumble-0.0.1/src/nanobind/src/buffer.h +166 -0
- pydemumble-0.0.1/src/nanobind/src/common.cpp +1251 -0
- pydemumble-0.0.1/src/nanobind/src/error.cpp +325 -0
- pydemumble-0.0.1/src/nanobind/src/hash.h +37 -0
- pydemumble-0.0.1/src/nanobind/src/implicit.cpp +75 -0
- pydemumble-0.0.1/src/nanobind/src/nb_abi.h +102 -0
- pydemumble-0.0.1/src/nanobind/src/nb_combined.cpp +85 -0
- pydemumble-0.0.1/src/nanobind/src/nb_enum.cpp +303 -0
- pydemumble-0.0.1/src/nanobind/src/nb_ft.cpp +56 -0
- pydemumble-0.0.1/src/nanobind/src/nb_ft.h +39 -0
- pydemumble-0.0.1/src/nanobind/src/nb_func.cpp +1465 -0
- pydemumble-0.0.1/src/nanobind/src/nb_internals.cpp +498 -0
- pydemumble-0.0.1/src/nanobind/src/nb_internals.h +519 -0
- pydemumble-0.0.1/src/nanobind/src/nb_ndarray.cpp +824 -0
- pydemumble-0.0.1/src/nanobind/src/nb_static_property.cpp +76 -0
- pydemumble-0.0.1/src/nanobind/src/nb_type.cpp +2283 -0
- pydemumble-0.0.1/src/nanobind/src/stubgen.py +1428 -0
- pydemumble-0.0.1/src/nanobind/src/trampoline.cpp +188 -0
- pydemumble-0.0.1/src/nanobind/tests/CMakeLists.txt +200 -0
- pydemumble-0.0.1/src/nanobind/tests/common.py +42 -0
- pydemumble-0.0.1/src/nanobind/tests/inter_module.cpp +9 -0
- pydemumble-0.0.1/src/nanobind/tests/inter_module.h +14 -0
- pydemumble-0.0.1/src/nanobind/tests/object_py.h +28 -0
- pydemumble-0.0.1/src/nanobind/tests/pattern_file.nb +19 -0
- pydemumble-0.0.1/src/nanobind/tests/py_stub_test.py +68 -0
- pydemumble-0.0.1/src/nanobind/tests/py_stub_test.pyi +48 -0
- pydemumble-0.0.1/src/nanobind/tests/py_stub_test.pyi.ref +48 -0
- pydemumble-0.0.1/src/nanobind/tests/test_callbacks.cpp +137 -0
- pydemumble-0.0.1/src/nanobind/tests/test_callbacks.py +58 -0
- pydemumble-0.0.1/src/nanobind/tests/test_chrono.cpp +93 -0
- pydemumble-0.0.1/src/nanobind/tests/test_chrono.py +340 -0
- pydemumble-0.0.1/src/nanobind/tests/test_classes.cpp +721 -0
- pydemumble-0.0.1/src/nanobind/tests/test_classes.py +943 -0
- pydemumble-0.0.1/src/nanobind/tests/test_classes_ext.pyi.ref +362 -0
- pydemumble-0.0.1/src/nanobind/tests/test_eigen.cpp +262 -0
- pydemumble-0.0.1/src/nanobind/tests/test_eigen.py +380 -0
- pydemumble-0.0.1/src/nanobind/tests/test_enum.cpp +70 -0
- pydemumble-0.0.1/src/nanobind/tests/test_enum.py +186 -0
- pydemumble-0.0.1/src/nanobind/tests/test_enum_ext.pyi.ref +107 -0
- pydemumble-0.0.1/src/nanobind/tests/test_eval.cpp +87 -0
- pydemumble-0.0.1/src/nanobind/tests/test_eval.py +44 -0
- pydemumble-0.0.1/src/nanobind/tests/test_exception.cpp +62 -0
- pydemumble-0.0.1/src/nanobind/tests/test_exception.py +104 -0
- pydemumble-0.0.1/src/nanobind/tests/test_functions.cpp +488 -0
- pydemumble-0.0.1/src/nanobind/tests/test_functions.py +752 -0
- pydemumble-0.0.1/src/nanobind/tests/test_functions_ext.pyi.ref +243 -0
- pydemumble-0.0.1/src/nanobind/tests/test_holders.cpp +261 -0
- pydemumble-0.0.1/src/nanobind/tests/test_holders.py +435 -0
- pydemumble-0.0.1/src/nanobind/tests/test_inter_module.py +13 -0
- pydemumble-0.0.1/src/nanobind/tests/test_inter_module_1.cpp +8 -0
- pydemumble-0.0.1/src/nanobind/tests/test_inter_module_2.cpp +9 -0
- pydemumble-0.0.1/src/nanobind/tests/test_intrusive.cpp +66 -0
- pydemumble-0.0.1/src/nanobind/tests/test_intrusive.py +58 -0
- pydemumble-0.0.1/src/nanobind/tests/test_intrusive_impl.cpp +1 -0
- pydemumble-0.0.1/src/nanobind/tests/test_issue.cpp +68 -0
- pydemumble-0.0.1/src/nanobind/tests/test_issue.py +37 -0
- pydemumble-0.0.1/src/nanobind/tests/test_make_iterator.cpp +102 -0
- pydemumble-0.0.1/src/nanobind/tests/test_make_iterator.py +48 -0
- pydemumble-0.0.1/src/nanobind/tests/test_make_iterator_ext.pyi.ref +33 -0
- pydemumble-0.0.1/src/nanobind/tests/test_ndarray.cpp +526 -0
- pydemumble-0.0.1/src/nanobind/tests/test_ndarray.py +975 -0
- pydemumble-0.0.1/src/nanobind/tests/test_ndarray_ext.pyi.ref +202 -0
- pydemumble-0.0.1/src/nanobind/tests/test_stl.cpp +515 -0
- pydemumble-0.0.1/src/nanobind/tests/test_stl.py +875 -0
- pydemumble-0.0.1/src/nanobind/tests/test_stl_bind_map.cpp +94 -0
- pydemumble-0.0.1/src/nanobind/tests/test_stl_bind_map.py +222 -0
- pydemumble-0.0.1/src/nanobind/tests/test_stl_bind_vector.cpp +56 -0
- pydemumble-0.0.1/src/nanobind/tests/test_stl_bind_vector.py +188 -0
- pydemumble-0.0.1/src/nanobind/tests/test_stl_ext.pyi.ref +263 -0
- pydemumble-0.0.1/src/nanobind/tests/test_stubs.py +66 -0
- pydemumble-0.0.1/src/nanobind/tests/test_thread.cpp +71 -0
- pydemumble-0.0.1/src/nanobind/tests/test_thread.py +102 -0
- pydemumble-0.0.1/src/nanobind/tests/test_typing.cpp +117 -0
- pydemumble-0.0.1/src/nanobind/tests/test_typing.py +13 -0
- pydemumble-0.0.1/src/nanobind/tests/test_typing_ext.pyi.ref +68 -0
- pydemumble-0.0.1/src/pydemumble/__init__.py +2 -0
- pydemumble-0.0.1/src/pydemumble.cpp +45 -0
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
cmake_minimum_required(VERSION 3.15...3.27)
|
|
2
|
+
project(pydemumble LANGUAGES CXX)
|
|
3
|
+
|
|
4
|
+
if (CMAKE_VERSION VERSION_LESS 3.18)
|
|
5
|
+
set(DEV_MODULE Development)
|
|
6
|
+
else()
|
|
7
|
+
set(DEV_MODULE Development.Module)
|
|
8
|
+
endif()
|
|
9
|
+
|
|
10
|
+
if (UNIX)
|
|
11
|
+
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wall")
|
|
12
|
+
endif()
|
|
13
|
+
|
|
14
|
+
if (WIN32)
|
|
15
|
+
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} /Zc:inline")
|
|
16
|
+
add_definitions(-D_CRT_SECURE_NO_WARNINGS) # The LLVM build sets this.
|
|
17
|
+
|
|
18
|
+
# statically link against msvcrt
|
|
19
|
+
string(TOUPPER "${CMAKE_BUILD_TYPE}" build)
|
|
20
|
+
set(flag_var "CMAKE_CXX_FLAGS_${build}")
|
|
21
|
+
if(${flag_var} MATCHES "/MD")
|
|
22
|
+
string(REGEX REPLACE "/MD" "/MT" ${flag_var} "${${flag_var}}")
|
|
23
|
+
endif()
|
|
24
|
+
endif()
|
|
25
|
+
|
|
26
|
+
# Try to import all Python components potentially needed by nanobind
|
|
27
|
+
find_package(Python 3.8
|
|
28
|
+
REQUIRED COMPONENTS Interpreter Development.Module
|
|
29
|
+
OPTIONAL_COMPONENTS Development.SABIModule)
|
|
30
|
+
|
|
31
|
+
if (NOT CMAKE_BUILD_TYPE AND NOT CMAKE_CONFIGURATION_TYPES)
|
|
32
|
+
set(CMAKE_BUILD_TYPE Release CACHE STRING "Choose the type of build." FORCE)
|
|
33
|
+
set_property(CACHE CMAKE_BUILD_TYPE PROPERTY STRINGS "Debug" "Release" "MinSizeRel" "RelWithDebInfo")
|
|
34
|
+
endif()
|
|
35
|
+
|
|
36
|
+
include_directories(
|
|
37
|
+
src/demumble/third_party/llvm/include
|
|
38
|
+
src/demumble/third_party/swift/include
|
|
39
|
+
)
|
|
40
|
+
|
|
41
|
+
add_definitions(
|
|
42
|
+
-DLLVM_DISABLE_ABI_BREAKING_CHECKS_ENFORCING=1
|
|
43
|
+
-DSWIFT_SUPPORT_OLD_MANGLING=1
|
|
44
|
+
-DSWIFT_STDLIB_HAS_TYPE_PRINTING=1
|
|
45
|
+
)
|
|
46
|
+
|
|
47
|
+
# finding nanobind
|
|
48
|
+
add_subdirectory(${CMAKE_CURRENT_SOURCE_DIR}/src/nanobind)
|
|
49
|
+
|
|
50
|
+
nanobind_add_module(
|
|
51
|
+
pydemumble
|
|
52
|
+
STABLE_ABI
|
|
53
|
+
NB_STATIC
|
|
54
|
+
src/pydemumble.cpp
|
|
55
|
+
src/demumble/third_party/llvm/lib/Demangle/DLangDemangle.cpp
|
|
56
|
+
src/demumble/third_party/llvm/lib/Demangle/ItaniumDemangle.cpp
|
|
57
|
+
src/demumble/third_party/llvm/lib/Demangle/MicrosoftDemangle.cpp
|
|
58
|
+
src/demumble/third_party/llvm/lib/Demangle/MicrosoftDemangleNodes.cpp
|
|
59
|
+
src/demumble/third_party/llvm/lib/Demangle/RustDemangle.cpp
|
|
60
|
+
src/demumble/third_party/swift/lib/Demangling/Context.cpp
|
|
61
|
+
src/demumble/third_party/swift/lib/Demangling/CrashReporter.cpp
|
|
62
|
+
src/demumble/third_party/swift/lib/Demangling/Demangler.cpp
|
|
63
|
+
src/demumble/third_party/swift/lib/Demangling/Errors.cpp
|
|
64
|
+
src/demumble/third_party/swift/lib/Demangling/ManglingUtils.cpp
|
|
65
|
+
src/demumble/third_party/swift/lib/Demangling/NodeDumper.cpp
|
|
66
|
+
src/demumble/third_party/swift/lib/Demangling/NodePrinter.cpp
|
|
67
|
+
src/demumble/third_party/swift/lib/Demangling/OldDemangler.cpp
|
|
68
|
+
src/demumble/third_party/swift/lib/Demangling/OldRemangler.cpp
|
|
69
|
+
src/demumble/third_party/swift/lib/Demangling/Punycode.cpp
|
|
70
|
+
src/demumble/third_party/swift/lib/Demangling/Remangler.cpp
|
|
71
|
+
)
|
|
72
|
+
|
|
73
|
+
install(TARGETS pydemumble LIBRARY DESTINATION pydemumble)
|
pydemumble-0.0.1/LICENSE
ADDED
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
Copyright (c) 2025, Fish Wang
|
|
2
|
+
Copyright (c) 2025, Arizona State University
|
|
3
|
+
Copyright (c) 2025, Emotion Labs LLC
|
|
4
|
+
Copyright (c) 2025, Microsoft Corp.
|
|
5
|
+
All rights reserved.
|
|
6
|
+
|
|
7
|
+
Redistribution and use in source and binary forms, with or without
|
|
8
|
+
modification, are permitted provided that the following conditions are met:
|
|
9
|
+
|
|
10
|
+
1. Redistributions of source code must retain the above copyright notice, this
|
|
11
|
+
list of conditions and the following disclaimer.
|
|
12
|
+
|
|
13
|
+
2. Redistributions in binary form must reproduce the above copyright notice,
|
|
14
|
+
this list of conditions and the following disclaimer in the documentation
|
|
15
|
+
and/or other materials provided with the distribution.
|
|
16
|
+
|
|
17
|
+
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
|
|
18
|
+
AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
|
19
|
+
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
|
|
20
|
+
DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
|
|
21
|
+
FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
|
|
22
|
+
DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
|
|
23
|
+
SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
|
|
24
|
+
CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
|
|
25
|
+
OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
|
26
|
+
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
Metadata-Version: 2.1
|
|
2
|
+
Name: pydemumble
|
|
3
|
+
Version: 0.0.1
|
|
4
|
+
Summary: A Python wrapper library for demumble; demumble is a tool to demangle C++, Rust, and Swift symbol names.
|
|
5
|
+
Author-Email: Fish Wang <fishw@asu.edu>
|
|
6
|
+
Classifier: License :: OSI Approved :: BSD License
|
|
7
|
+
Project-URL: Homepage, https://github.com/angr/pydemumble
|
|
8
|
+
Requires-Python: >=3.10
|
|
9
|
+
Description-Content-Type: text/markdown
|
|
10
|
+
|
|
11
|
+
# pydemumble
|
|
12
|
+
|
|
13
|
+
pydemumble is a Python binding for [demumble](https://github.com/nico/demumble).
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
[build-system]
|
|
2
|
+
requires = ["scikit-build-core >=0.10", "nanobind >=1.3.2"]
|
|
3
|
+
build-backend = "scikit_build_core.build"
|
|
4
|
+
|
|
5
|
+
[project]
|
|
6
|
+
name = "pydemumble"
|
|
7
|
+
version = "0.0.1"
|
|
8
|
+
description = "A Python wrapper library for demumble; demumble is a tool to demangle C++, Rust, and Swift symbol names."
|
|
9
|
+
readme = "README.md"
|
|
10
|
+
requires-python = ">=3.10"
|
|
11
|
+
authors = [
|
|
12
|
+
{ name = "Fish Wang", email = "fishw@asu.edu" },
|
|
13
|
+
]
|
|
14
|
+
classifiers = [
|
|
15
|
+
"License :: OSI Approved :: BSD License",
|
|
16
|
+
]
|
|
17
|
+
|
|
18
|
+
[project.urls]
|
|
19
|
+
Homepage = "https://github.com/angr/pydemumble"
|
|
20
|
+
|
|
21
|
+
[tool.scikit-build]
|
|
22
|
+
# Protect the configuration against future changes in scikit-build-core
|
|
23
|
+
minimum-version = "build-system.requires"
|
|
24
|
+
|
|
25
|
+
# Setuptools-style build caching in a local directory
|
|
26
|
+
build-dir = "build/{wheel_tag}"
|
|
27
|
+
|
|
28
|
+
# Build stable ABI wheels for CPython 3.12+
|
|
29
|
+
wheel.py-api = "cp312"
|
|
30
|
+
|
|
31
|
+
sdist.include = ["src"]
|
|
32
|
+
|
|
33
|
+
sdist.exclude = [".vs", ".git", ".github", "__pycache__", "build", "dist", "tests"]
|
|
34
|
+
|
|
35
|
+
[tool.cibuildwheel]
|
|
36
|
+
# Necessary to see build output from the actual compilation
|
|
37
|
+
build-verbosity = 1
|
|
38
|
+
|
|
39
|
+
# Run pytest to ensure that the package was correctly built
|
|
40
|
+
test-command = "pytest {project}/tests"
|
|
41
|
+
test-requires = "pytest"
|
|
42
|
+
|
|
43
|
+
# Don't test Python 3.8 wheels on macOS/arm64
|
|
44
|
+
test-skip="cp38-macosx_*:arm64"
|
|
45
|
+
|
|
46
|
+
# Needed for full C++17 support
|
|
47
|
+
[tool.cibuildwheel.macos.environment]
|
|
48
|
+
MACOSX_DEPLOYMENT_TARGET = "10.14"
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
gitdir: ../../.git/modules/demumble
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
name: Build and test
|
|
2
|
+
|
|
3
|
+
on: {push: { branches: [main] }, pull_request: {}}
|
|
4
|
+
|
|
5
|
+
jobs:
|
|
6
|
+
build:
|
|
7
|
+
runs-on: ${{ matrix.os }}
|
|
8
|
+
|
|
9
|
+
strategy:
|
|
10
|
+
matrix:
|
|
11
|
+
os: [macos-latest, ubuntu-latest, windows-latest]
|
|
12
|
+
|
|
13
|
+
steps:
|
|
14
|
+
- uses: actions/checkout@v3
|
|
15
|
+
|
|
16
|
+
- name: Set up Ninja
|
|
17
|
+
uses: ashutoshvarma/setup-ninja@v1.1
|
|
18
|
+
|
|
19
|
+
- uses: ilammy/msvc-dev-cmd@v1.12.1
|
|
20
|
+
|
|
21
|
+
- name: CMake
|
|
22
|
+
run: |
|
|
23
|
+
cmake -GNinja .
|
|
24
|
+
|
|
25
|
+
- name: Build
|
|
26
|
+
run: |
|
|
27
|
+
ninja
|
|
28
|
+
|
|
29
|
+
- name: Test
|
|
30
|
+
run: |
|
|
31
|
+
python3 demumble_test.py
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
.*.sw?
|
|
2
|
+
|
|
3
|
+
# dist.py outputs:
|
|
4
|
+
buildlinux/
|
|
5
|
+
buildmac/
|
|
6
|
+
buildwin/
|
|
7
|
+
demumble-linux.zip
|
|
8
|
+
demumble-mac.zip
|
|
9
|
+
demumble-win.zip
|
|
10
|
+
|
|
11
|
+
# build outputs when building as described in README.md:
|
|
12
|
+
.ninja_deps
|
|
13
|
+
.ninja_log
|
|
14
|
+
CMakeCache.txt
|
|
15
|
+
CMakeFiles/
|
|
16
|
+
build.ninja
|
|
17
|
+
cmake_install.cmake
|
|
18
|
+
demumble
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
cmake_minimum_required(VERSION 3.5.0 FATAL_ERROR)
|
|
2
|
+
project(demumble CXX)
|
|
3
|
+
|
|
4
|
+
if (UNIX)
|
|
5
|
+
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wall -fno-exceptions -fno-rtti")
|
|
6
|
+
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fvisibility=hidden")
|
|
7
|
+
if (${CMAKE_GENERATOR} STREQUAL "Ninja")
|
|
8
|
+
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fdiagnostics-color")
|
|
9
|
+
endif()
|
|
10
|
+
|
|
11
|
+
# 10.9 chosen somewhat arbitrary; it's the first target where clang defaults
|
|
12
|
+
# to libc++ and ld64 defaults to stripping __TEXT,__eh_frame.
|
|
13
|
+
if (APPLE)
|
|
14
|
+
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -mmacosx-version-min=10.9")
|
|
15
|
+
else()
|
|
16
|
+
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fno-PIC")
|
|
17
|
+
set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} -no-pie")
|
|
18
|
+
endif()
|
|
19
|
+
endif()
|
|
20
|
+
|
|
21
|
+
if (WIN32)
|
|
22
|
+
# https://gitlab.kitware.com/cmake/cmake/-/issues/20610
|
|
23
|
+
string(REGEX REPLACE "/GR" "" CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS}")
|
|
24
|
+
string(REGEX REPLACE "/EHsc" "" CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS}")
|
|
25
|
+
add_definitions(-D_HAS_EXCEPTIONS=0)
|
|
26
|
+
|
|
27
|
+
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} /Zc:inline /EHs-c- /GR-")
|
|
28
|
+
add_definitions(-D_CRT_SECURE_NO_WARNINGS) # The LLVM build sets this.
|
|
29
|
+
|
|
30
|
+
# Disable cl.exe warnings that LLVM disables as well.
|
|
31
|
+
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} /wd4244 /wd4267")
|
|
32
|
+
|
|
33
|
+
# This is apparently the simplest way to statically link the CRT in CMake:
|
|
34
|
+
string(TOUPPER "${CMAKE_BUILD_TYPE}" build)
|
|
35
|
+
set(flag_var "CMAKE_CXX_FLAGS_${build}")
|
|
36
|
+
if(${flag_var} MATCHES "/MD")
|
|
37
|
+
string(REGEX REPLACE "/MD" "/MT" ${flag_var} "${${flag_var}}")
|
|
38
|
+
endif()
|
|
39
|
+
endif()
|
|
40
|
+
|
|
41
|
+
include_directories(third_party/llvm/include)
|
|
42
|
+
include_directories(third_party/swift/include)
|
|
43
|
+
add_definitions(
|
|
44
|
+
-DLLVM_DISABLE_ABI_BREAKING_CHECKS_ENFORCING=1
|
|
45
|
+
-DSWIFT_SUPPORT_OLD_MANGLING=1
|
|
46
|
+
-DSWIFT_STDLIB_HAS_TYPE_PRINTING=1
|
|
47
|
+
)
|
|
48
|
+
add_executable(demumble
|
|
49
|
+
demumble.cc
|
|
50
|
+
third_party/llvm/lib/Demangle/Demangle.cpp
|
|
51
|
+
third_party/llvm/lib/Demangle/ItaniumDemangle.cpp
|
|
52
|
+
third_party/llvm/lib/Demangle/DLangDemangle.cpp
|
|
53
|
+
third_party/llvm/lib/Demangle/MicrosoftDemangle.cpp
|
|
54
|
+
third_party/llvm/lib/Demangle/MicrosoftDemangleNodes.cpp
|
|
55
|
+
third_party/llvm/lib/Demangle/RustDemangle.cpp
|
|
56
|
+
third_party/swift/lib/Demangling/Context.cpp
|
|
57
|
+
third_party/swift/lib/Demangling/CrashReporter.cpp
|
|
58
|
+
third_party/swift/lib/Demangling/Demangler.cpp
|
|
59
|
+
third_party/swift/lib/Demangling/Errors.cpp
|
|
60
|
+
third_party/swift/lib/Demangling/ManglingUtils.cpp
|
|
61
|
+
third_party/swift/lib/Demangling/NodeDumper.cpp
|
|
62
|
+
third_party/swift/lib/Demangling/NodePrinter.cpp
|
|
63
|
+
third_party/swift/lib/Demangling/OldDemangler.cpp
|
|
64
|
+
third_party/swift/lib/Demangling/OldRemangler.cpp
|
|
65
|
+
third_party/swift/lib/Demangling/Punycode.cpp
|
|
66
|
+
third_party/swift/lib/Demangling/Remangler.cpp
|
|
67
|
+
)
|
|
68
|
+
set_target_properties(demumble PROPERTIES CXX_STANDARD 17
|
|
69
|
+
CXX_STANDARD_REQUIRED ON)
|
|
@@ -0,0 +1,202 @@
|
|
|
1
|
+
|
|
2
|
+
Apache License
|
|
3
|
+
Version 2.0, January 2010
|
|
4
|
+
http://www.apache.org/licenses/
|
|
5
|
+
|
|
6
|
+
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
|
7
|
+
|
|
8
|
+
1. Definitions.
|
|
9
|
+
|
|
10
|
+
"License" shall mean the terms and conditions for use, reproduction,
|
|
11
|
+
and distribution as defined by Sections 1 through 9 of this document.
|
|
12
|
+
|
|
13
|
+
"Licensor" shall mean the copyright owner or entity authorized by
|
|
14
|
+
the copyright owner that is granting the License.
|
|
15
|
+
|
|
16
|
+
"Legal Entity" shall mean the union of the acting entity and all
|
|
17
|
+
other entities that control, are controlled by, or are under common
|
|
18
|
+
control with that entity. For the purposes of this definition,
|
|
19
|
+
"control" means (i) the power, direct or indirect, to cause the
|
|
20
|
+
direction or management of such entity, whether by contract or
|
|
21
|
+
otherwise, or (ii) ownership of fifty percent (50%) or more of the
|
|
22
|
+
outstanding shares, or (iii) beneficial ownership of such entity.
|
|
23
|
+
|
|
24
|
+
"You" (or "Your") shall mean an individual or Legal Entity
|
|
25
|
+
exercising permissions granted by this License.
|
|
26
|
+
|
|
27
|
+
"Source" form shall mean the preferred form for making modifications,
|
|
28
|
+
including but not limited to software source code, documentation
|
|
29
|
+
source, and configuration files.
|
|
30
|
+
|
|
31
|
+
"Object" form shall mean any form resulting from mechanical
|
|
32
|
+
transformation or translation of a Source form, including but
|
|
33
|
+
not limited to compiled object code, generated documentation,
|
|
34
|
+
and conversions to other media types.
|
|
35
|
+
|
|
36
|
+
"Work" shall mean the work of authorship, whether in Source or
|
|
37
|
+
Object form, made available under the License, as indicated by a
|
|
38
|
+
copyright notice that is included in or attached to the work
|
|
39
|
+
(an example is provided in the Appendix below).
|
|
40
|
+
|
|
41
|
+
"Derivative Works" shall mean any work, whether in Source or Object
|
|
42
|
+
form, that is based on (or derived from) the Work and for which the
|
|
43
|
+
editorial revisions, annotations, elaborations, or other modifications
|
|
44
|
+
represent, as a whole, an original work of authorship. For the purposes
|
|
45
|
+
of this License, Derivative Works shall not include works that remain
|
|
46
|
+
separable from, or merely link (or bind by name) to the interfaces of,
|
|
47
|
+
the Work and Derivative Works thereof.
|
|
48
|
+
|
|
49
|
+
"Contribution" shall mean any work of authorship, including
|
|
50
|
+
the original version of the Work and any modifications or additions
|
|
51
|
+
to that Work or Derivative Works thereof, that is intentionally
|
|
52
|
+
submitted to Licensor for inclusion in the Work by the copyright owner
|
|
53
|
+
or by an individual or Legal Entity authorized to submit on behalf of
|
|
54
|
+
the copyright owner. For the purposes of this definition, "submitted"
|
|
55
|
+
means any form of electronic, verbal, or written communication sent
|
|
56
|
+
to the Licensor or its representatives, including but not limited to
|
|
57
|
+
communication on electronic mailing lists, source code control systems,
|
|
58
|
+
and issue tracking systems that are managed by, or on behalf of, the
|
|
59
|
+
Licensor for the purpose of discussing and improving the Work, but
|
|
60
|
+
excluding communication that is conspicuously marked or otherwise
|
|
61
|
+
designated in writing by the copyright owner as "Not a Contribution."
|
|
62
|
+
|
|
63
|
+
"Contributor" shall mean Licensor and any individual or Legal Entity
|
|
64
|
+
on behalf of whom a Contribution has been received by Licensor and
|
|
65
|
+
subsequently incorporated within the Work.
|
|
66
|
+
|
|
67
|
+
2. Grant of Copyright License. Subject to the terms and conditions of
|
|
68
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
69
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
70
|
+
copyright license to reproduce, prepare Derivative Works of,
|
|
71
|
+
publicly display, publicly perform, sublicense, and distribute the
|
|
72
|
+
Work and such Derivative Works in Source or Object form.
|
|
73
|
+
|
|
74
|
+
3. Grant of Patent License. Subject to the terms and conditions of
|
|
75
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
76
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
77
|
+
(except as stated in this section) patent license to make, have made,
|
|
78
|
+
use, offer to sell, sell, import, and otherwise transfer the Work,
|
|
79
|
+
where such license applies only to those patent claims licensable
|
|
80
|
+
by such Contributor that are necessarily infringed by their
|
|
81
|
+
Contribution(s) alone or by combination of their Contribution(s)
|
|
82
|
+
with the Work to which such Contribution(s) was submitted. If You
|
|
83
|
+
institute patent litigation against any entity (including a
|
|
84
|
+
cross-claim or counterclaim in a lawsuit) alleging that the Work
|
|
85
|
+
or a Contribution incorporated within the Work constitutes direct
|
|
86
|
+
or contributory patent infringement, then any patent licenses
|
|
87
|
+
granted to You under this License for that Work shall terminate
|
|
88
|
+
as of the date such litigation is filed.
|
|
89
|
+
|
|
90
|
+
4. Redistribution. You may reproduce and distribute copies of the
|
|
91
|
+
Work or Derivative Works thereof in any medium, with or without
|
|
92
|
+
modifications, and in Source or Object form, provided that You
|
|
93
|
+
meet the following conditions:
|
|
94
|
+
|
|
95
|
+
(a) You must give any other recipients of the Work or
|
|
96
|
+
Derivative Works a copy of this License; and
|
|
97
|
+
|
|
98
|
+
(b) You must cause any modified files to carry prominent notices
|
|
99
|
+
stating that You changed the files; and
|
|
100
|
+
|
|
101
|
+
(c) You must retain, in the Source form of any Derivative Works
|
|
102
|
+
that You distribute, all copyright, patent, trademark, and
|
|
103
|
+
attribution notices from the Source form of the Work,
|
|
104
|
+
excluding those notices that do not pertain to any part of
|
|
105
|
+
the Derivative Works; and
|
|
106
|
+
|
|
107
|
+
(d) If the Work includes a "NOTICE" text file as part of its
|
|
108
|
+
distribution, then any Derivative Works that You distribute must
|
|
109
|
+
include a readable copy of the attribution notices contained
|
|
110
|
+
within such NOTICE file, excluding those notices that do not
|
|
111
|
+
pertain to any part of the Derivative Works, in at least one
|
|
112
|
+
of the following places: within a NOTICE text file distributed
|
|
113
|
+
as part of the Derivative Works; within the Source form or
|
|
114
|
+
documentation, if provided along with the Derivative Works; or,
|
|
115
|
+
within a display generated by the Derivative Works, if and
|
|
116
|
+
wherever such third-party notices normally appear. The contents
|
|
117
|
+
of the NOTICE file are for informational purposes only and
|
|
118
|
+
do not modify the License. You may add Your own attribution
|
|
119
|
+
notices within Derivative Works that You distribute, alongside
|
|
120
|
+
or as an addendum to the NOTICE text from the Work, provided
|
|
121
|
+
that such additional attribution notices cannot be construed
|
|
122
|
+
as modifying the License.
|
|
123
|
+
|
|
124
|
+
You may add Your own copyright statement to Your modifications and
|
|
125
|
+
may provide additional or different license terms and conditions
|
|
126
|
+
for use, reproduction, or distribution of Your modifications, or
|
|
127
|
+
for any such Derivative Works as a whole, provided Your use,
|
|
128
|
+
reproduction, and distribution of the Work otherwise complies with
|
|
129
|
+
the conditions stated in this License.
|
|
130
|
+
|
|
131
|
+
5. Submission of Contributions. Unless You explicitly state otherwise,
|
|
132
|
+
any Contribution intentionally submitted for inclusion in the Work
|
|
133
|
+
by You to the Licensor shall be under the terms and conditions of
|
|
134
|
+
this License, without any additional terms or conditions.
|
|
135
|
+
Notwithstanding the above, nothing herein shall supersede or modify
|
|
136
|
+
the terms of any separate license agreement you may have executed
|
|
137
|
+
with Licensor regarding such Contributions.
|
|
138
|
+
|
|
139
|
+
6. Trademarks. This License does not grant permission to use the trade
|
|
140
|
+
names, trademarks, service marks, or product names of the Licensor,
|
|
141
|
+
except as required for reasonable and customary use in describing the
|
|
142
|
+
origin of the Work and reproducing the content of the NOTICE file.
|
|
143
|
+
|
|
144
|
+
7. Disclaimer of Warranty. Unless required by applicable law or
|
|
145
|
+
agreed to in writing, Licensor provides the Work (and each
|
|
146
|
+
Contributor provides its Contributions) on an "AS IS" BASIS,
|
|
147
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
|
148
|
+
implied, including, without limitation, any warranties or conditions
|
|
149
|
+
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
|
|
150
|
+
PARTICULAR PURPOSE. You are solely responsible for determining the
|
|
151
|
+
appropriateness of using or redistributing the Work and assume any
|
|
152
|
+
risks associated with Your exercise of permissions under this License.
|
|
153
|
+
|
|
154
|
+
8. Limitation of Liability. In no event and under no legal theory,
|
|
155
|
+
whether in tort (including negligence), contract, or otherwise,
|
|
156
|
+
unless required by applicable law (such as deliberate and grossly
|
|
157
|
+
negligent acts) or agreed to in writing, shall any Contributor be
|
|
158
|
+
liable to You for damages, including any direct, indirect, special,
|
|
159
|
+
incidental, or consequential damages of any character arising as a
|
|
160
|
+
result of this License or out of the use or inability to use the
|
|
161
|
+
Work (including but not limited to damages for loss of goodwill,
|
|
162
|
+
work stoppage, computer failure or malfunction, or any and all
|
|
163
|
+
other commercial damages or losses), even if such Contributor
|
|
164
|
+
has been advised of the possibility of such damages.
|
|
165
|
+
|
|
166
|
+
9. Accepting Warranty or Additional Liability. While redistributing
|
|
167
|
+
the Work or Derivative Works thereof, You may choose to offer,
|
|
168
|
+
and charge a fee for, acceptance of support, warranty, indemnity,
|
|
169
|
+
or other liability obligations and/or rights consistent with this
|
|
170
|
+
License. However, in accepting such obligations, You may act only
|
|
171
|
+
on Your own behalf and on Your sole responsibility, not on behalf
|
|
172
|
+
of any other Contributor, and only if You agree to indemnify,
|
|
173
|
+
defend, and hold each Contributor harmless for any liability
|
|
174
|
+
incurred by, or claims asserted against, such Contributor by reason
|
|
175
|
+
of your accepting any such warranty or additional liability.
|
|
176
|
+
|
|
177
|
+
END OF TERMS AND CONDITIONS
|
|
178
|
+
|
|
179
|
+
APPENDIX: How to apply the Apache License to your work.
|
|
180
|
+
|
|
181
|
+
To apply the Apache License to your work, attach the following
|
|
182
|
+
boilerplate notice, with the fields enclosed by brackets "[]"
|
|
183
|
+
replaced with your own identifying information. (Don't include
|
|
184
|
+
the brackets!) The text should be enclosed in the appropriate
|
|
185
|
+
comment syntax for the file format. We also recommend that a
|
|
186
|
+
file or class name and description of purpose be included on the
|
|
187
|
+
same "printed page" as the copyright notice for easier
|
|
188
|
+
identification within third-party archives.
|
|
189
|
+
|
|
190
|
+
Copyright [yyyy] [name of copyright owner]
|
|
191
|
+
|
|
192
|
+
Licensed under the Apache License, Version 2.0 (the "License");
|
|
193
|
+
you may not use this file except in compliance with the License.
|
|
194
|
+
You may obtain a copy of the License at
|
|
195
|
+
|
|
196
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
|
197
|
+
|
|
198
|
+
Unless required by applicable law or agreed to in writing, software
|
|
199
|
+
distributed under the License is distributed on an "AS IS" BASIS,
|
|
200
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
201
|
+
See the License for the specific language governing permissions and
|
|
202
|
+
limitations under the License.
|
|
@@ -0,0 +1,88 @@
|
|
|
1
|
+
# demumble
|
|
2
|
+
|
|
3
|
+
`demumble` demangles both Itanium and Visual Studio symbols. It runs on
|
|
4
|
+
both POSIX and Windows.
|
|
5
|
+
|
|
6
|
+
$ demumble _Z4funcPci
|
|
7
|
+
func(char*, int)
|
|
8
|
+
$ demumble '?Fx_i@@YAHP6AHH@Z@Z'
|
|
9
|
+
int __cdecl Fx_i(int (__cdecl *)(int))
|
|
10
|
+
|
|
11
|
+
It can also demangle D, Rust, and Swift symbols.
|
|
12
|
+
|
|
13
|
+
## Download
|
|
14
|
+
|
|
15
|
+
There are prebuilt x64 binaries for Linux, Mac (10.9+), and Windows on the
|
|
16
|
+
[releases page](https://github.com/nico/demumble/releases).
|
|
17
|
+
|
|
18
|
+
## But why
|
|
19
|
+
|
|
20
|
+
It has several nice features that c++filt lacks (and lacks many of c++filt's
|
|
21
|
+
features I never use).
|
|
22
|
+
|
|
23
|
+
Smart about underscores: C++ symbols have an additional leading underscore on
|
|
24
|
+
macOS. `operator new` is mangled as `_Znw` on Linux but `__Znw` on Mac. macOS's
|
|
25
|
+
c++filt automatically strips one leading underscore, but Linux's c++filt
|
|
26
|
+
doesn't. So if you want to demangle a Linux symbol on macOS, you need to pass
|
|
27
|
+
`-n` to tell it to not strip the underscore, and if you want to demangle an OS
|
|
28
|
+
X symbol on Linux you likewise need to pass `-_`. demumble just does the right
|
|
29
|
+
thing:
|
|
30
|
+
|
|
31
|
+
$ c++filt _Znw
|
|
32
|
+
_Znw
|
|
33
|
+
$ c++filt __Znw
|
|
34
|
+
operator new
|
|
35
|
+
$ demumble _Znw
|
|
36
|
+
operator new
|
|
37
|
+
$ demumble __Znw
|
|
38
|
+
operator new
|
|
39
|
+
|
|
40
|
+
Smart about filtering: Both c++filt and demumble can work as a stdin filter.
|
|
41
|
+
demumble only demangles function symbols (which never look like other words),
|
|
42
|
+
while c++filt on macOS defaults to demangling type names too, which are likely
|
|
43
|
+
to look like regular words. demumble does demangle types when they're passed
|
|
44
|
+
as args without requiring the `--types` switch that c++filt needs on Linux:
|
|
45
|
+
|
|
46
|
+
# on macOS:
|
|
47
|
+
$ echo 'I like Pi and _Znw' | c++filt
|
|
48
|
+
I like int* and _Znw
|
|
49
|
+
$ echo 'I like Pi and _Znw' | demumble
|
|
50
|
+
I like Pi and operator new
|
|
51
|
+
$ c++filt Pi
|
|
52
|
+
int*
|
|
53
|
+
$ demumble Pi
|
|
54
|
+
int*
|
|
55
|
+
# on Linux:
|
|
56
|
+
$ c++filt Pi
|
|
57
|
+
Pi
|
|
58
|
+
|
|
59
|
+
Cross-platform: demumble runs on Windows. demumble can demangle Windows-style
|
|
60
|
+
symbols (also when running on non-Windows).
|
|
61
|
+
|
|
62
|
+
$ demumble '??2@YAPEAX_K@Z'
|
|
63
|
+
void * __cdecl operator new(unsigned __int64)
|
|
64
|
+
$ c++filt '??2@YAPEAX_K@Z'
|
|
65
|
+
??2@YAPEAX_K@Z
|
|
66
|
+
|
|
67
|
+
Optionally print _only_ demangled things: For example, print demangled names of
|
|
68
|
+
all functions defined in a bitcode file:
|
|
69
|
+
|
|
70
|
+
$ grep '^define' bitcode-win.ll | demumble -m | head -1
|
|
71
|
+
unsigned int __cdecl v8::RoundUpToPowerOfTwo32(unsigned int)
|
|
72
|
+
|
|
73
|
+
Optionally print both mangled and demangled names:
|
|
74
|
+
|
|
75
|
+
$ echo _ZN3fooC1Ev _ZN3fooC2Ev | ./demumble -b
|
|
76
|
+
"foo::foo()" (_ZN3fooC1Ev) "foo::foo()" (_ZN3fooC2Ev)
|
|
77
|
+
|
|
78
|
+
## Build instructions
|
|
79
|
+
|
|
80
|
+
Use cmake to build: `cmake -G Ninja . && ninja`
|
|
81
|
+
|
|
82
|
+
Run tests after building: `python demumble_test.py`
|
|
83
|
+
|
|
84
|
+
`cxa_demangle.cpp` needs more C++11 than Visual Studio 2013 supports, so
|
|
85
|
+
to build on Windows you need to use Visual Studio 2015 or use clang-cl
|
|
86
|
+
as C++ compiler like so:
|
|
87
|
+
|
|
88
|
+
cmake -G Ninja -DCMAKE_CXX_COMPILER=path/to/llvm-build/bin/clang-cl.exe
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
Push new release branch:
|
|
2
|
+
1. make sure branches 'main' and 'release' are synced up locally, check out main
|
|
3
|
+
2. update kDemumbleVersion in demumble.cc with new version (with ".git"), then
|
|
4
|
+
git commit -am 'mark this 1.0.0.git'
|
|
5
|
+
3. git checkout release; git merge main
|
|
6
|
+
4. fix version number in src/version.cc (it will conflict in the above)
|
|
7
|
+
5. commit, tag, push (don't forget to push --tags), build binaries
|
|
8
|
+
# on the 'release' branch
|
|
9
|
+
git commit -am v1.0.0; git push origin release
|
|
10
|
+
git tag v1.0.0; git push --tags
|
|
11
|
+
./dist.py
|
|
12
|
+
# Push the 1.0.0.git change on main too:
|
|
13
|
+
git checkout main; git push origin main
|
|
14
|
+
6. add demumble-{linux,mac,win}.zip to https://github.com/nico/demumble/releases
|