|
LLVM
5.0.0
|
#include "llvm/Demangle/Demangle.h"#include <algorithm>#include <cctype>#include <cstdlib>#include <cstring>#include <numeric>#include <string>#include <vector>Go to the source code of this file.
Enumerations | |
| enum | { unknown_error = -4, invalid_args = -3, invalid_mangled_name, memory_alloc_failure, success } |
| enum | { CV_const = (1 << 0), CV_volatile = (1 << 1), CV_restrict = (1 << 2) } |
Functions | |
| template<class C > | |
| static const char * | parse_type (const char *first, const char *last, C &db) |
| template<class C > | |
| static const char * | parse_encoding (const char *first, const char *last, C &db) |
| template<class C > | |
| static const char * | parse_name (const char *first, const char *last, C &db, bool *ends_with_template_args=0) |
| template<class C > | |
| static const char * | parse_expression (const char *first, const char *last, C &db) |
| template<class C > | |
| static const char * | parse_template_args (const char *first, const char *last, C &db) |
| template<class C > | |
| static const char * | parse_operator_name (const char *first, const char *last, C &db) |
| template<class C > | |
| static const char * | parse_unqualified_name (const char *first, const char *last, C &db) |
| template<class C > | |
| static const char * | parse_decltype (const char *first, const char *last, C &db) |
| static const char * | parse_number (const char *first, const char *last) |
| template<class Float , class C > | |
| static const char * | parse_floating_number (const char *first, const char *last, C &db) |
| template<class C > | |
| static const char * | parse_source_name (const char *first, const char *last, C &db) |
| template<class C > | |
| static const char * | parse_substitution (const char *first, const char *last, C &db) |
| template<class C > | |
| static const char * | parse_builtin_type (const char *first, const char *last, C &db) |
| static const char * | parse_cv_qualifiers (const char *first, const char *last, unsigned &cv) |
| template<class C > | |
| static const char * | parse_template_param (const char *first, const char *last, C &db) |
| template<class C > | |
| static const char * | parse_const_cast_expr (const char *first, const char *last, C &db) |
| template<class C > | |
| static const char * | parse_dynamic_cast_expr (const char *first, const char *last, C &db) |
| template<class C > | |
| static const char * | parse_reinterpret_cast_expr (const char *first, const char *last, C &db) |
| template<class C > | |
| static const char * | parse_static_cast_expr (const char *first, const char *last, C &db) |
| template<class C > | |
| static const char * | parse_pack_expansion (const char *first, const char *last, C &db) |
| template<class C > | |
| static const char * | parse_sizeof_type_expr (const char *first, const char *last, C &db) |
| template<class C > | |
| static const char * | parse_sizeof_expr_expr (const char *first, const char *last, C &db) |
| template<class C > | |
| static const char * | parse_sizeof_param_pack_expr (const char *first, const char *last, C &db) |
| template<class C > | |
| static const char * | parse_function_param (const char *first, const char *last, C &db) |
| template<class C > | |
| static const char * | parse_sizeof_function_param_pack_expr (const char *first, const char *last, C &db) |
| template<class C > | |
| static const char * | parse_typeid_expr (const char *first, const char *last, C &db) |
| template<class C > | |
| static const char * | parse_throw_expr (const char *first, const char *last, C &db) |
| template<class C > | |
| static const char * | parse_dot_star_expr (const char *first, const char *last, C &db) |
| template<class C > | |
| static const char * | parse_simple_id (const char *first, const char *last, C &db) |
| template<class C > | |
| static const char * | parse_unresolved_type (const char *first, const char *last, C &db) |
| template<class C > | |
| static const char * | parse_destructor_name (const char *first, const char *last, C &db) |
| template<class C > | |
| static const char * | parse_base_unresolved_name (const char *first, const char *last, C &db) |
| template<class C > | |
| static const char * | parse_unresolved_qualifier_level (const char *first, const char *last, C &db) |
| template<class C > | |
| static const char * | parse_unresolved_name (const char *first, const char *last, C &db) |
| template<class C > | |
| static const char * | parse_dot_expr (const char *first, const char *last, C &db) |
| template<class C > | |
| static const char * | parse_call_expr (const char *first, const char *last, C &db) |
| template<class C > | |
| static const char * | parse_new_expr (const char *first, const char *last, C &db) |
| template<class C > | |
| static const char * | parse_conversion_expr (const char *first, const char *last, C &db) |
| template<class C > | |
| static const char * | parse_arrow_expr (const char *first, const char *last, C &db) |
| template<class C > | |
| static const char * | parse_function_type (const char *first, const char *last, C &db) |
| template<class C > | |
| static const char * | parse_pointer_to_member_type (const char *first, const char *last, C &db) |
| template<class C > | |
| static const char * | parse_array_type (const char *first, const char *last, C &db) |
| template<class C > | |
| static const char * | parse_vector_type (const char *first, const char *last, C &db) |
| template<class C > | |
| static const char * | parse_integer_literal (const char *first, const char *last, const std::string &lit, C &db) |
| template<class C > | |
| static const char * | parse_expr_primary (const char *first, const char *last, C &db) |
| static std::string | base_name (std::string &s) |
| template<class C > | |
| static const char * | parse_ctor_dtor_name (const char *first, const char *last, C &db) |
| template<class C > | |
| static const char * | parse_unnamed_type_name (const char *first, const char *last, C &db) |
| template<class C > | |
| static const char * | parse_unscoped_name (const char *first, const char *last, C &db) |
| template<class C > | |
| static const char * | parse_alignof_type (const char *first, const char *last, C &db) |
| template<class C > | |
| static const char * | parse_alignof_expr (const char *first, const char *last, C &db) |
| template<class C > | |
| static const char * | parse_noexcept_expression (const char *first, const char *last, C &db) |
| template<class C > | |
| static const char * | parse_prefix_expression (const char *first, const char *last, const std::string &op, C &db) |
| template<class C > | |
| static const char * | parse_binary_expression (const char *first, const char *last, const std::string &op, C &db) |
| template<class C > | |
| static const char * | parse_template_arg (const char *first, const char *last, C &db) |
| template<class C > | |
| static const char * | parse_nested_name (const char *first, const char *last, C &db, bool *ends_with_template_args) |
| static const char * | parse_discriminator (const char *first, const char *last) |
| template<class C > | |
| static const char * | parse_local_name (const char *first, const char *last, C &db, bool *ends_with_template_args) |
| static const char * | parse_call_offset (const char *first, const char *last) |
| template<class C > | |
| static const char * | parse_special_name (const char *first, const char *last, C &db) |
| template<class C > | |
| static const char * | parse_block_invoke (const char *first, const char *last, C &db) |
| template<class C > | |
| static const char * | parse_dot_suffix (const char *first, const char *last, C &db) |
| template<class C > | |
| static void | demangle (const char *first, const char *last, C &db, int &status) |
| anonymous enum |
| Enumerator | |
|---|---|
| unknown_error | |
| invalid_args | |
| invalid_mangled_name | |
| memory_alloc_failure | |
| success | |
Definition at line 31 of file ItaniumDemangle.cpp.
| anonymous enum |
| Enumerator | |
|---|---|
| CV_const | |
| CV_volatile | |
| CV_restrict | |
Definition at line 39 of file ItaniumDemangle.cpp.
|
static |
Definition at line 2484 of file ItaniumDemangle.cpp.
Referenced by parse_ctor_dtor_name().
|
static |
Definition at line 4198 of file ItaniumDemangle.cpp.
References invalid_mangled_name, parse_block_invoke(), parse_dot_suffix(), parse_encoding(), parse_type(), success, and t.
Referenced by llvm::itaniumDemangle().
|
static |
Definition at line 2785 of file ItaniumDemangle.cpp.
References first, parse_expression(), and t.
Referenced by parse_expression().
|
static |
Definition at line 2767 of file ItaniumDemangle.cpp.
References first, parse_type(), and t.
Referenced by parse_expression().
|
static |
Definition at line 1496 of file ItaniumDemangle.cpp.
References first, parse_expression(), parse_number(), parse_type(), and t.
Referenced by parse_type().
|
static |
Definition at line 1362 of file ItaniumDemangle.cpp.
References first, parse_expression(), and t.
Referenced by parse_expression().
|
static |
Definition at line 919 of file ItaniumDemangle.cpp.
References first, parse_destructor_name(), parse_operator_name(), parse_simple_id(), parse_template_args(), and t.
Referenced by parse_unresolved_name().
|
static |
Definition at line 2827 of file ItaniumDemangle.cpp.
References first, and parse_expression().
Referenced by parse_expression().
|
static |
Definition at line 4148 of file ItaniumDemangle.cpp.
Referenced by demangle().
|
static |
Definition at line 298 of file ItaniumDemangle.cpp.
References first, parse_source_name(), and t.
Referenced by parse_type().
|
static |
Definition at line 1144 of file ItaniumDemangle.cpp.
References first, parse_expression(), and t.
Referenced by parse_expression().
Definition at line 3814 of file ItaniumDemangle.cpp.
References first, parse_number(), and t.
Referenced by parse_special_name().
|
static |
Definition at line 509 of file ItaniumDemangle.cpp.
References first, parse_expression(), parse_type(), and t.
Referenced by parse_expression().
|
static |
Definition at line 1305 of file ItaniumDemangle.cpp.
References first, parse_expression(), parse_type(), and t.
Referenced by parse_expression().
|
static |
Definition at line 2545 of file ItaniumDemangle.cpp.
References base_name(), and first.
Referenced by parse_unqualified_name().
|
static |
Definition at line 440 of file ItaniumDemangle.cpp.
References CV_const, CV_restrict, CV_volatile, and first.
Referenced by parse_function_param(), parse_nested_name(), and parse_type().
|
static |
Definition at line 1551 of file ItaniumDemangle.cpp.
References first, parse_expression(), and t.
Referenced by parse_nested_name(), parse_type(), and parse_unresolved_type().
|
static |
Definition at line 885 of file ItaniumDemangle.cpp.
References first, parse_simple_id(), parse_unresolved_type(), and t.
Referenced by parse_base_unresolved_name().
Definition at line 3638 of file ItaniumDemangle.cpp.
References first.
Referenced by parse_local_name().
|
static |
Definition at line 1121 of file ItaniumDemangle.cpp.
References first, name, parse_expression(), parse_unresolved_name(), and t.
Referenced by parse_expression().
|
static |
Definition at line 784 of file ItaniumDemangle.cpp.
References first, parse_expression(), and t.
Referenced by parse_expression().
|
static |
Definition at line 535 of file ItaniumDemangle.cpp.
References first, parse_expression(), parse_type(), and t.
Referenced by parse_expression().
|
static |
Definition at line 4035 of file ItaniumDemangle.cpp.
References CV_const, CV_restrict, CV_volatile, first, llvm::hashing::detail::k0, llvm::hashing::detail::k1, parse_name(), parse_special_name(), parse_type(), and t.
Referenced by demangle(), parse_expr_primary(), parse_local_name(), parse_special_name(), and parse_template_arg().
|
static |
Definition at line 2340 of file ItaniumDemangle.cpp.
References llvm::ARM_AM::db, first, parse_encoding(), parse_integer_literal(), parse_type(), and t.
Referenced by parse_expression(), and parse_template_arg().
|
static |
Definition at line 2934 of file ItaniumDemangle.cpp.
References first, parse_alignof_expr(), parse_alignof_type(), parse_arrow_expr(), parse_binary_expression(), parse_call_expr(), parse_const_cast_expr(), parse_conversion_expr(), parse_dot_expr(), parse_dot_star_expr(), parse_dynamic_cast_expr(), parse_expr_primary(), parse_function_param(), parse_new_expr(), parse_noexcept_expression(), parse_pack_expansion(), parse_prefix_expression(), parse_reinterpret_cast_expr(), parse_sizeof_expr_expr(), parse_sizeof_function_param_pack_expr(), parse_sizeof_param_pack_expr(), parse_sizeof_type_expr(), parse_static_cast_expr(), parse_template_param(), parse_throw_expr(), parse_typeid_expr(), parse_unresolved_name(), and t.
Referenced by parse_alignof_expr(), parse_array_type(), parse_arrow_expr(), parse_binary_expression(), parse_call_expr(), parse_const_cast_expr(), parse_conversion_expr(), parse_decltype(), parse_dot_expr(), parse_dot_star_expr(), parse_dynamic_cast_expr(), parse_new_expr(), parse_noexcept_expression(), parse_pack_expansion(), parse_prefix_expression(), parse_reinterpret_cast_expr(), parse_sizeof_expr_expr(), parse_static_cast_expr(), parse_template_arg(), parse_throw_expr(), parse_typeid_expr(), and parse_vector_type().
|
static |
Definition at line 122 of file ItaniumDemangle.cpp.
References first, llvm::NVPTX::PTXLdStInstCode::Float, N, llvm::reverse(), and t.
|
static |
Definition at line 693 of file ItaniumDemangle.cpp.
References first, parse_cv_qualifiers(), parse_number(), t, and t0.
Referenced by parse_expression(), and parse_sizeof_function_param_pack_expr().
|
static |
Definition at line 1388 of file ItaniumDemangle.cpp.
References first, llvm::hashing::detail::k0, llvm::hashing::detail::k1, parse_type(), and t.
Referenced by parse_type().
|
static |
Definition at line 2306 of file ItaniumDemangle.cpp.
References first, parse_number(), and t.
Referenced by parse_expr_primary().
|
static |
Definition at line 3670 of file ItaniumDemangle.cpp.
References first, name, parse_discriminator(), parse_encoding(), parse_name(), parse_number(), and t.
Referenced by parse_name().
|
static |
Definition at line 3734 of file ItaniumDemangle.cpp.
References first, parse_local_name(), parse_nested_name(), parse_substitution(), parse_template_args(), parse_unscoped_name(), and t0.
Referenced by parse_encoding(), parse_local_name(), parse_special_name(), and parse_type().
|
static |
Definition at line 3502 of file ItaniumDemangle.cpp.
References first, name, parse_cv_qualifiers(), parse_decltype(), parse_substitution(), parse_template_args(), parse_template_param(), parse_unqualified_name(), and t0.
Referenced by parse_name().
|
static |
Definition at line 1195 of file ItaniumDemangle.cpp.
References first, parse_expression(), parse_type(), and t.
Referenced by parse_expression().
|
static |
Definition at line 2800 of file ItaniumDemangle.cpp.
References first, and parse_expression().
Referenced by parse_expression().
Definition at line 68 of file ItaniumDemangle.cpp.
Referenced by parse_array_type(), parse_call_offset(), parse_function_param(), parse_integer_literal(), parse_local_name(), parse_special_name(), and parse_vector_type().
|
static |
Definition at line 2030 of file ItaniumDemangle.cpp.
References first, parse_source_name(), parse_type(), and t.
Referenced by parse_base_unresolved_name(), and parse_unqualified_name().
|
static |
Definition at line 610 of file ItaniumDemangle.cpp.
References first, parse_expression(), and t.
Referenced by parse_expression().
|
static |
Definition at line 1464 of file ItaniumDemangle.cpp.
References first, parse_type(), and t.
Referenced by parse_type().
|
static |
Definition at line 2813 of file ItaniumDemangle.cpp.
References first, and parse_expression().
Referenced by parse_expression().
|
static |
Definition at line 561 of file ItaniumDemangle.cpp.
References first, parse_expression(), parse_type(), and t.
Referenced by parse_expression().
|
static |
Definition at line 806 of file ItaniumDemangle.cpp.
References first, parse_source_name(), parse_template_args(), and t.
Referenced by parse_base_unresolved_name(), parse_destructor_name(), and parse_unresolved_qualifier_level().
|
static |
Definition at line 640 of file ItaniumDemangle.cpp.
References first, parse_expression(), and t.
Referenced by parse_expression().
|
static |
Definition at line 725 of file ItaniumDemangle.cpp.
References first, parse_function_param(), and t.
Referenced by parse_expression().
|
static |
Definition at line 658 of file ItaniumDemangle.cpp.
References first, llvm::hashing::detail::k0, llvm::hashing::detail::k1, parse_template_param(), and t.
Referenced by parse_expression().
|
static |
Definition at line 623 of file ItaniumDemangle.cpp.
References first, parse_type(), and t.
Referenced by parse_expression().
|
static |
Definition at line 161 of file ItaniumDemangle.cpp.
Referenced by parse_builtin_type(), parse_operator_name(), parse_simple_id(), parse_type(), and parse_unqualified_name().
|
static |
Definition at line 3855 of file ItaniumDemangle.cpp.
References first, parse_call_offset(), parse_encoding(), parse_name(), parse_number(), parse_type(), t, and t0.
Referenced by parse_encoding().
|
static |
Definition at line 587 of file ItaniumDemangle.cpp.
References first, parse_expression(), parse_type(), and t.
Referenced by parse_expression().
|
static |
Definition at line 198 of file ItaniumDemangle.cpp.
References first, llvm::ARM_AM::sub, and t.
Referenced by parse_name(), parse_nested_name(), parse_type(), and parse_unresolved_type().
|
static |
Definition at line 3395 of file ItaniumDemangle.cpp.
References first, parse_encoding(), parse_expr_primary(), parse_expression(), parse_type(), and t.
Referenced by parse_template_args().
|
static |
Definition at line 3441 of file ItaniumDemangle.cpp.
References first, llvm::hashing::detail::k0, llvm::hashing::detail::k1, parse_template_arg(), and t.
Referenced by parse_base_unresolved_name(), parse_name(), parse_nested_name(), parse_simple_id(), parse_type(), and parse_unresolved_name().
|
static |
Definition at line 464 of file ItaniumDemangle.cpp.
References first, llvm::ARM_AM::sub, and t.
Referenced by parse_expression(), parse_nested_name(), parse_sizeof_param_pack_expr(), parse_type(), and parse_unresolved_type().
|
static |
Definition at line 767 of file ItaniumDemangle.cpp.
References first, parse_expression(), and t.
Referenced by parse_expression().
|
static |
Definition at line 1654 of file ItaniumDemangle.cpp.
References CV_const, CV_restrict, CV_volatile, llvm::ARM_AM::db, first, llvm::hashing::detail::k0, llvm::hashing::detail::k1, name, parse_array_type(), parse_builtin_type(), parse_cv_qualifiers(), parse_decltype(), parse_function_type(), parse_name(), parse_pointer_to_member_type(), parse_source_name(), parse_substitution(), parse_template_args(), parse_template_param(), parse_vector_type(), and t.
Referenced by demangle(), parse_alignof_type(), parse_array_type(), parse_const_cast_expr(), parse_conversion_expr(), parse_dynamic_cast_expr(), parse_encoding(), parse_expr_primary(), parse_function_type(), parse_new_expr(), parse_operator_name(), parse_pointer_to_member_type(), parse_reinterpret_cast_expr(), parse_sizeof_type_expr(), parse_special_name(), parse_static_cast_expr(), parse_template_arg(), parse_typeid_expr(), parse_unnamed_type_name(), and parse_vector_type().
|
static |
Definition at line 745 of file ItaniumDemangle.cpp.
References first, parse_expression(), parse_type(), and t.
Referenced by parse_expression().
|
static |
Definition at line 2591 of file ItaniumDemangle.cpp.
References first, llvm::parallel::for_each(), llvm::hashing::detail::k0, llvm::hashing::detail::k1, parse_type(), and t0.
Referenced by parse_unqualified_name().
|
static |
Definition at line 2696 of file ItaniumDemangle.cpp.
References first, parse_ctor_dtor_name(), parse_operator_name(), parse_source_name(), parse_unnamed_type_name(), and t.
Referenced by parse_nested_name(), parse_unresolved_type(), and parse_unscoped_name().
|
static |
Definition at line 994 of file ItaniumDemangle.cpp.
References first, parse_base_unresolved_name(), parse_template_args(), parse_unresolved_qualifier_level(), parse_unresolved_type(), and t.
Referenced by parse_dot_expr(), and parse_expression().
|
static |
Definition at line 964 of file ItaniumDemangle.cpp.
References parse_simple_id().
Referenced by parse_unresolved_name().
|
static |
Definition at line 830 of file ItaniumDemangle.cpp.
References first, llvm::hashing::detail::k0, llvm::hashing::detail::k1, parse_decltype(), parse_substitution(), parse_template_param(), parse_unqualified_name(), and t.
Referenced by parse_destructor_name(), and parse_unresolved_name().
|
static |
Definition at line 2740 of file ItaniumDemangle.cpp.
References first, parse_unqualified_name(), and t0.
Referenced by parse_name().
|
static |
Definition at line 1577 of file ItaniumDemangle.cpp.
References first, parse_expression(), parse_number(), parse_type(), and t.
Referenced by parse_type().
1.8.6