GDB (xrefs)
|
#include "defs.h"
#include <unistd.h>
#include "gdbsupport/gdb-safe-ctype.h"
#include "demangle.h"
#include "cp-support.h"
#include "c-support.h"
#include "parser-defs.h"
#include "yy-remap.h"
#include <limits.h>
Go to the source code of this file.
Classes | |
struct | demangle_info |
union | cp_name_parser_YYSTYPE |
struct | cp_name_parser_YYSTYPE::nested |
struct | cpname_state |
union | cp_name_parser_yyalloc |
Macros | |
#define | YYBISON 30802 |
#define | YYBISON_VERSION "3.8.2" |
#define | YYSKELETON_NAME "yacc.c" |
#define | YYPURE 1 |
#define | YYPUSH 0 |
#define | YYPULL 1 |
#define | GDB_YY_REMAP_PREFIX cpname |
#define | ALLOC_CHUNK 100 |
#define | YY_CAST(Type, Val) ((Type) (Val)) |
#define | YY_REINTERPRET_CAST(Type, Val) ((Type) (Val)) |
#define | YY_NULLPTRPTR ((void*)0) |
#define | YYTOKENTYPE |
#define | YYEMPTY -2 |
#define | YYEOF 0 |
#define | YYerror 256 |
#define | YYUNDEF 257 |
#define | INT 258 |
#define | FLOAT 259 |
#define | NAME 260 |
#define | STRUCT 261 |
#define | CLASS 262 |
#define | UNION 263 |
#define | ENUM 264 |
#define | SIZEOF 265 |
#define | UNSIGNED 266 |
#define | COLONCOLON 267 |
#define | TEMPLATE 268 |
#define | ERROR 269 |
#define | NEW 270 |
#define | DELETE 271 |
#define | OPERATOR 272 |
#define | STATIC_CAST 273 |
#define | REINTERPRET_CAST 274 |
#define | DYNAMIC_CAST 275 |
#define | SIGNED_KEYWORD 276 |
#define | LONG 277 |
#define | SHORT 278 |
#define | INT_KEYWORD 279 |
#define | CONST_KEYWORD 280 |
#define | VOLATILE_KEYWORD 281 |
#define | DOUBLE_KEYWORD 282 |
#define | BOOL 283 |
#define | ELLIPSIS 284 |
#define | RESTRICT 285 |
#define | VOID 286 |
#define | FLOAT_KEYWORD 287 |
#define | CHAR 288 |
#define | WCHAR_T 289 |
#define | ASSIGN_MODIFY 290 |
#define | TRUEKEYWORD 291 |
#define | FALSEKEYWORD 292 |
#define | DEMANGLER_SPECIAL 293 |
#define | CONSTRUCTION_VTABLE 294 |
#define | CONSTRUCTION_IN 295 |
#define | OROR 296 |
#define | ANDAND 297 |
#define | EQUAL 298 |
#define | NOTEQUAL 299 |
#define | LEQ 300 |
#define | GEQ 301 |
#define | LSH 302 |
#define | RSH 303 |
#define | UNARY 304 |
#define | INCREMENT 305 |
#define | DECREMENT 306 |
#define | ARROW 307 |
#define | cp_name_parser_YYSTYPE_IS_TRIVIAL 1 |
#define | cp_name_parser_YYSTYPE_IS_DECLARED 1 |
#define | QUAL_CONST 1 |
#define | QUAL_RESTRICT 2 |
#define | QUAL_VOLATILE 4 |
#define | INT_CHAR (1 << 0) |
#define | INT_SHORT (1 << 1) |
#define | INT_LONG (1 << 2) |
#define | INT_LLONG (1 << 3) |
#define | INT_SIGNED (1 << 4) |
#define | INT_UNSIGNED (1 << 5) |
#define | d_left(dc) (dc)->u.s_binary.left |
#define | d_right(dc) (dc)->u.s_binary.right |
#define | YYPTRDIFF_T long |
#define | YYPTRDIFF_MAXIMUM LONG_MAX |
#define | YYSIZE_T unsigned |
#define | YYSIZE_MAXIMUM |
#define | YYSIZEOF(X) YY_CAST (YYPTRDIFF_T, sizeof (X)) |
#define | YY_(Msgid) Msgid |
#define | YY_ATTRIBUTE_PURE |
#define | YY_ATTRIBUTE_UNUSED |
#define | YY_USE(E) ((void) (E)) |
#define | YY_INITIAL_VALUE(Value) Value |
#define | YY_IGNORE_MAYBE_UNINITIALIZED_BEGIN |
#define | YY_IGNORE_MAYBE_UNINITIALIZED_END |
#define | YY_IGNORE_USELESS_CAST_BEGIN |
#define | YY_IGNORE_USELESS_CAST_END |
#define | YY_ASSERT(E) ((void) (0 && (E))) |
#define | YYSTACK_ALLOC YYMALLOC |
#define | YYSTACK_FREE YYFREE |
#define | YYSTACK_ALLOC_MAXIMUM YYSIZE_MAXIMUM |
#define | YYMALLOC xmalloc |
#define | YYFREE xfree |
#define | YYSTACK_GAP_MAXIMUM (YYSIZEOF (union cp_name_parser_yyalloc) - 1) |
#define | YYSTACK_BYTES(N) |
#define | YYCOPY_NEEDED 1 |
#define | YYSTACK_RELOCATE(Stack_alloc, Stack) |
#define | YYCOPY(Dst, Src, Count) |
#define | YYFINAL 84 |
#define | YYLAST 1137 |
#define | YYNTOKENS 75 |
#define | YYNNTS 40 |
#define | YYNRULES 195 |
#define | YYNSTATES 325 |
#define | YYMAXUTOK 307 |
#define | YYTRANSLATE(YYX) |
#define | YY_ACCESSING_SYMBOL(State) YY_CAST (cp_name_parser_yysymbol_kind_t, yystos[State]) |
#define | YYPACT_NINF (-187) |
#define | yypact_value_is_default(Yyn) ((Yyn) == YYPACT_NINF) |
#define | YYTABLE_NINF (-1) |
#define | yytable_value_is_error(Yyn) 0 |
#define | yyerrok (yyerrstatus = 0) |
#define | yyclearin (yychar = YYEMPTY) |
#define | YYACCEPT goto yyacceptlab |
#define | YYABORT goto yyabortlab |
#define | YYERROR goto yyerrorlab |
#define | YYNOMEM goto yyexhaustedlab |
#define | YYRECOVERING() (!!yyerrstatus) |
#define | YYBACKUP(Token, Value) |
#define | YYERRCODE YYUNDEF |
#define | YYDPRINTF(Args) |
#define | YY_SYMBOL_PRINT(Title, Kind, Value, Location) |
#define | YY_STACK_PRINT(Bottom, Top) |
#define | YY_REDUCE_PRINT(Rule) |
#define | YYINITDEPTH 200 |
#define | YYMAXDEPTH 10000 |
#define | YYPOPSTACK(N) (yyvsp -= (N), yyssp -= (N)) |
#define | HANDLE_QUAL(TYPE, MTYPE, QUAL) |
#define | HANDLE_SPECIAL(string, comp) |
#define | HANDLE_TOKEN2(string, token) |
#define | HANDLE_TOKEN3(string, token) |
Typedefs | |
typedef enum yytokentype | yytoken_kind_t |
typedef union cp_name_parser_YYSTYPE | cp_name_parser_YYSTYPE |
typedef enum cp_name_parser_yysymbol_kind_t | cp_name_parser_yysymbol_kind_t |
typedef signed char | yytype_int8 |
typedef short | yytype_int16 |
typedef unsigned char | yytype_uint8 |
typedef unsigned short | yytype_uint16 |
typedef yytype_int16 | yy_state_t |
typedef int | yy_state_fast_t |
Functions | |
int | yyparse (struct cpname_state *state) |
static int | yylex (cp_name_parser_YYSTYPE *, cpname_state *) |
static void | yyerror (cpname_state *, const char *) |
void * | xmalloc (YYSIZE_T) |
void | xfree (void *) |
static const char * | yysymbol_name (cp_name_parser_yysymbol_kind_t yysymbol) YY_ATTRIBUTE_UNUSED |
static void | yy_symbol_value_print (FILE *yyo, cp_name_parser_yysymbol_kind_t yykind, cp_name_parser_YYSTYPE const *const yyvaluep, struct cpname_state *state) |
static void | yy_symbol_print (FILE *yyo, cp_name_parser_yysymbol_kind_t yykind, cp_name_parser_YYSTYPE const *const yyvaluep, struct cpname_state *state) |
static void | yy_stack_print (yy_state_t *yybottom, yy_state_t *yytop) |
static void | yy_reduce_print (yy_state_t *yyssp, cp_name_parser_YYSTYPE *yyvsp, int yyrule, struct cpname_state *state) |
static void | yydestruct (const char *yymsg, cp_name_parser_yysymbol_kind_t yykind, cp_name_parser_YYSTYPE *yyvaluep, struct cpname_state *state) |
static const char * | symbol_end (const char *lexptr) |
static int | c_parse_backslash (int host_char, int *target_char) |
static int | cp_parse_escape (const char **string_ptr) |
static struct demangle_info * | allocate_info (void) |
gdb::unique_xmalloc_ptr< char > | cp_comp_to_string (struct demangle_component *result, int estimated_len) |
void | cp_merge_demangle_parse_infos (struct demangle_parse_info *dest, struct demangle_component *target, struct demangle_parse_info *src) |
struct std::unique_ptr< demangle_parse_info > | cp_demangled_name_to_comp (const char *demangled_name, std::string *errmsg) |
Variables | |
int | yydebug |
static const yytype_int8 | yytranslate [] |
static const yytype_int16 | yyrline [] |
static const char *const | yytname [] |
static const yytype_int16 | yypact [] |
static const yytype_uint8 | yydefact [] |
static const yytype_int16 | yypgoto [] |
static const yytype_int16 | yydefgoto [] |
static const yytype_int16 | yytable [] |
static const yytype_int16 | yycheck [] |
static const yytype_int8 | yystos [] |
static const yytype_int8 | yyr1 [] |
static const yytype_int8 | yyr2 [] |
static const char | backslashable [] = "abefnrtv" |
static const char | represented [] = "\a\b\e\f\n\r\t\v" |
#define ALLOC_CHUNK 100 |
Definition at line 88 of file cp-name-parser.c.
Referenced by cpname_state::d_grab().
#define ANDAND 297 |
Definition at line 235 of file cp-name-parser.c.
Referenced by yylex().
#define ARROW 307 |
Definition at line 245 of file cp-name-parser.c.
Referenced by yylex().
#define ASSIGN_MODIFY 290 |
Definition at line 228 of file cp-name-parser.c.
Referenced by yylex().
#define BOOL 283 |
Definition at line 221 of file cp-name-parser.c.
Referenced by windows_nat_target::attach(), windows_nat_target::create_inferior(), windows_nat::create_process_wrapper(), display_selector(), pipe_avail(), windows_nat::windows_thread_info::thread_name(), windows_nat::wait_for_debug_event(), windows_nat_target::windows_continue(), windows_xfer_memory(), and yylex().
#define CHAR 288 |
Definition at line 226 of file cp-name-parser.c.
Referenced by yylex().
#define CLASS 262 |
Definition at line 200 of file cp-name-parser.c.
Referenced by yylex().
#define COLONCOLON 267 |
Definition at line 205 of file cp-name-parser.c.
Referenced by yylex().
#define CONST_KEYWORD 280 |
Definition at line 218 of file cp-name-parser.c.
Referenced by yylex().
#define CONSTRUCTION_IN 295 |
Definition at line 233 of file cp-name-parser.c.
Referenced by yylex().
#define CONSTRUCTION_VTABLE 294 |
Definition at line 232 of file cp-name-parser.c.
Referenced by yylex().
#define cp_name_parser_YYSTYPE_IS_DECLARED 1 |
Definition at line 276 of file cp-name-parser.c.
#define cp_name_parser_YYSTYPE_IS_TRIVIAL 1 |
Definition at line 275 of file cp-name-parser.c.
#define d_left | ( | dc | ) | (dc)->u.s_binary.left |
Definition at line 572 of file cp-name-parser.c.
Referenced by yyparse().
#define d_right | ( | dc | ) | (dc)->u.s_binary.right |
Definition at line 573 of file cp-name-parser.c.
Referenced by yyparse().
#define DECREMENT 306 |
Definition at line 244 of file cp-name-parser.c.
Referenced by yylex().
#define DELETE 271 |
Definition at line 209 of file cp-name-parser.c.
Referenced by yylex().
#define DEMANGLER_SPECIAL 293 |
Definition at line 231 of file cp-name-parser.c.
Referenced by yylex().
#define DOUBLE_KEYWORD 282 |
Definition at line 220 of file cp-name-parser.c.
Referenced by yylex().
#define DYNAMIC_CAST 275 |
Definition at line 213 of file cp-name-parser.c.
Referenced by yylex().
#define ELLIPSIS 284 |
Definition at line 222 of file cp-name-parser.c.
Referenced by yylex().
#define ENUM 264 |
Definition at line 202 of file cp-name-parser.c.
Referenced by yylex().
#define EQUAL 298 |
Definition at line 236 of file cp-name-parser.c.
Referenced by yylex().
#define ERROR 269 |
Definition at line 207 of file cp-name-parser.c.
Referenced by cpname_state::parse_number(), and yylex().
#define FALSEKEYWORD 292 |
Definition at line 230 of file cp-name-parser.c.
Referenced by yylex().
#define FLOAT 259 |
Definition at line 197 of file cp-name-parser.c.
Referenced by cpname_state::parse_number().
#define FLOAT_KEYWORD 287 |
Definition at line 225 of file cp-name-parser.c.
Referenced by yylex().
#define GDB_YY_REMAP_PREFIX cpname |
Definition at line 82 of file cp-name-parser.c.
#define GEQ 301 |
Definition at line 239 of file cp-name-parser.c.
Referenced by yylex().
#define HANDLE_QUAL | ( | TYPE, | |
MTYPE, | |||
QUAL ) |
#define HANDLE_SPECIAL | ( | string, | |
comp ) |
Definition at line 3699 of file cp-name-parser.c.
Referenced by yylex().
#define HANDLE_TOKEN2 | ( | string, | |
token ) |
Definition at line 3707 of file cp-name-parser.c.
Referenced by yylex().
#define HANDLE_TOKEN3 | ( | string, | |
token ) |
Definition at line 3715 of file cp-name-parser.c.
Referenced by yylex().
#define INCREMENT 305 |
Definition at line 243 of file cp-name-parser.c.
Referenced by yylex().
#define INT 258 |
Definition at line 196 of file cp-name-parser.c.
Referenced by cpname_state::parse_number(), and yylex().
#define INT_CHAR (1 << 0) |
Definition at line 493 of file cp-name-parser.c.
Referenced by cpname_state::d_int_type(), and yyparse().
#define INT_KEYWORD 279 |
Definition at line 217 of file cp-name-parser.c.
Referenced by yylex().
#define INT_LLONG (1 << 3) |
Definition at line 496 of file cp-name-parser.c.
Referenced by cpname_state::d_int_type(), and yyparse().
#define INT_LONG (1 << 2) |
Definition at line 495 of file cp-name-parser.c.
Referenced by cpname_state::d_int_type(), and yyparse().
#define INT_SHORT (1 << 1) |
Definition at line 494 of file cp-name-parser.c.
Referenced by cpname_state::d_int_type(), and yyparse().
#define INT_SIGNED (1 << 4) |
Definition at line 498 of file cp-name-parser.c.
Referenced by cpname_state::d_int_type(), and yyparse().
#define INT_UNSIGNED (1 << 5) |
Definition at line 499 of file cp-name-parser.c.
Referenced by cpname_state::d_int_type(), and yyparse().
#define LEQ 300 |
Definition at line 238 of file cp-name-parser.c.
Referenced by yylex().
#define LONG 277 |
Definition at line 215 of file cp-name-parser.c.
Referenced by yylex().
#define LSH 302 |
Definition at line 240 of file cp-name-parser.c.
Referenced by yylex().
#define NAME 260 |
Definition at line 198 of file cp-name-parser.c.
Referenced by yylex().
#define NEW 270 |
Definition at line 208 of file cp-name-parser.c.
Referenced by yylex().
#define NOTEQUAL 299 |
Definition at line 237 of file cp-name-parser.c.
Referenced by yylex().
#define OPERATOR 272 |
Definition at line 210 of file cp-name-parser.c.
Referenced by yylex().
#define OROR 296 |
Definition at line 234 of file cp-name-parser.c.
Referenced by yylex().
#define QUAL_CONST 1 |
Definition at line 487 of file cp-name-parser.c.
Referenced by cpname_state::d_qualify(), and yyparse().
#define QUAL_RESTRICT 2 |
Definition at line 488 of file cp-name-parser.c.
Referenced by cpname_state::d_qualify(), and yyparse().
#define QUAL_VOLATILE 4 |
Definition at line 489 of file cp-name-parser.c.
Referenced by cpname_state::d_qualify(), and yyparse().
#define REINTERPRET_CAST 274 |
Definition at line 212 of file cp-name-parser.c.
Referenced by yylex().
#define RESTRICT 285 |
Definition at line 223 of file cp-name-parser.c.
Referenced by yylex().
#define RSH 303 |
Definition at line 241 of file cp-name-parser.c.
Referenced by yylex().
#define SHORT 278 |
Definition at line 216 of file cp-name-parser.c.
Referenced by yylex().
#define SIGNED_KEYWORD 276 |
Definition at line 214 of file cp-name-parser.c.
Referenced by yylex().
#define SIZEOF 265 |
Definition at line 203 of file cp-name-parser.c.
Referenced by yylex().
#define STATIC_CAST 273 |
Definition at line 211 of file cp-name-parser.c.
Referenced by yylex().
#define STRUCT 261 |
Definition at line 199 of file cp-name-parser.c.
Referenced by yylex().
#define TEMPLATE 268 |
Definition at line 206 of file cp-name-parser.c.
Referenced by yylex().
#define TRUEKEYWORD 291 |
Definition at line 229 of file cp-name-parser.c.
Referenced by yylex().
#define UNARY 304 |
Definition at line 242 of file cp-name-parser.c.
#define UNION 263 |
Definition at line 201 of file cp-name-parser.c.
Referenced by yylex().
#define UNSIGNED 266 |
Definition at line 204 of file cp-name-parser.c.
Referenced by yylex().
#define VOID 286 |
Definition at line 224 of file cp-name-parser.c.
Referenced by yylex().
#define VOLATILE_KEYWORD 281 |
Definition at line 219 of file cp-name-parser.c.
Referenced by yylex().
#define WCHAR_T 289 |
Definition at line 227 of file cp-name-parser.c.
Referenced by yylex().
#define YY_ | ( | Msgid | ) | Msgid |
Definition at line 704 of file cp-name-parser.c.
Referenced by yyparse().
#define YY_ACCESSING_SYMBOL | ( | State | ) | YY_CAST (cp_name_parser_yysymbol_kind_t, yystos[State]) |
Accessing symbol of state STATE.
Definition at line 988 of file cp-name-parser.c.
Referenced by yy_reduce_print(), and yyparse().
#define YY_ASSERT | ( | E | ) | ((void) (0 && (E))) |
Definition at line 770 of file cp-name-parser.c.
Referenced by yyparse().
#define YY_ATTRIBUTE_PURE |
Definition at line 713 of file cp-name-parser.c.
#define YY_ATTRIBUTE_UNUSED |
Definition at line 721 of file cp-name-parser.c.
#define YY_CAST | ( | Type, | |
Val ) ((Type) (Val)) |
Definition at line 104 of file cp-name-parser.c.
Referenced by yyparse().
#define YY_IGNORE_MAYBE_UNINITIALIZED_BEGIN |
Definition at line 750 of file cp-name-parser.c.
Referenced by yy_symbol_value_print(), yydestruct(), and yyparse().
#define YY_IGNORE_MAYBE_UNINITIALIZED_END |
Definition at line 751 of file cp-name-parser.c.
Referenced by yy_symbol_value_print(), yydestruct(), and yyparse().
#define YY_IGNORE_USELESS_CAST_BEGIN |
Definition at line 765 of file cp-name-parser.c.
Referenced by yyparse().
#define YY_IGNORE_USELESS_CAST_END |
Definition at line 766 of file cp-name-parser.c.
Referenced by yyparse().
#define YY_INITIAL_VALUE | ( | Value | ) | Value |
Definition at line 747 of file cp-name-parser.c.
Referenced by yyparse().
#define YY_NULLPTRPTR ((void*)0) |
Definition at line 116 of file cp-name-parser.c.
#define YY_REDUCE_PRINT | ( | Rule | ) |
Definition at line 1612 of file cp-name-parser.c.
Referenced by yyparse().
#define YY_REINTERPRET_CAST | ( | Type, | |
Val ) ((Type) (Val)) |
Definition at line 105 of file cp-name-parser.c.
#define YY_STACK_PRINT | ( | Bottom, | |
Top ) |
Definition at line 1581 of file cp-name-parser.c.
Referenced by yyparse().
#define YY_SYMBOL_PRINT | ( | Title, | |
Kind, | |||
Value, | |||
Location ) |
Definition at line 1518 of file cp-name-parser.c.
Referenced by yydestruct(), and yyparse().
#define YY_USE | ( | E | ) | ((void) (E)) |
Definition at line 727 of file cp-name-parser.c.
Referenced by yy_symbol_value_print(), and yydestruct().
#define YYABORT goto yyabortlab |
Definition at line 1472 of file cp-name-parser.c.
Referenced by yyparse().
#define YYACCEPT goto yyacceptlab |
Definition at line 1471 of file cp-name-parser.c.
Referenced by yyparse().
#define YYBACKUP | ( | Token, | |
Value ) |
#define YYBISON 30802 |
Definition at line 49 of file cp-name-parser.c.
#define YYBISON_VERSION "3.8.2" |
Definition at line 52 of file cp-name-parser.c.
Definition at line 1469 of file cp-name-parser.c.
#define YYCOPY | ( | Dst, | |
Src, | |||
Count ) |
Definition at line 886 of file cp-name-parser.c.
#define YYCOPY_NEEDED 1 |
Definition at line 858 of file cp-name-parser.c.
#define YYDPRINTF | ( | Args | ) |
Definition at line 1509 of file cp-name-parser.c.
Referenced by yyparse().
#define YYEMPTY -2 |
Definition at line 192 of file cp-name-parser.c.
Referenced by yyparse().
#define YYEOF 0 |
Definition at line 193 of file cp-name-parser.c.
Referenced by yyparse().
#define YYERRCODE YYUNDEF |
Definition at line 1498 of file cp-name-parser.c.
#define yyerrok (yyerrstatus = 0) |
Definition at line 1468 of file cp-name-parser.c.
#define YYerror 256 |
Definition at line 194 of file cp-name-parser.c.
Referenced by yyparse().
#define YYERROR goto yyerrorlab |
Definition at line 1473 of file cp-name-parser.c.
Referenced by yyparse().
#define YYFINAL 84 |
Definition at line 899 of file cp-name-parser.c.
Referenced by yyparse().
#define YYFREE xfree |
Definition at line 830 of file cp-name-parser.c.
#define YYINITDEPTH 200 |
Definition at line 1631 of file cp-name-parser.c.
Referenced by yyparse().
#define YYLAST 1137 |
Definition at line 901 of file cp-name-parser.c.
Referenced by yyparse().
#define YYMALLOC xmalloc |
Definition at line 824 of file cp-name-parser.c.
#define YYMAXDEPTH 10000 |
Definition at line 1642 of file cp-name-parser.c.
Referenced by yyparse().
#define YYMAXUTOK 307 |
Definition at line 913 of file cp-name-parser.c.
#define YYNNTS 40 |
Definition at line 906 of file cp-name-parser.c.
#define YYNOMEM goto yyexhaustedlab |
Definition at line 1474 of file cp-name-parser.c.
Referenced by yyparse().
#define YYNRULES 195 |
Definition at line 908 of file cp-name-parser.c.
#define YYNSTATES 325 |
Definition at line 910 of file cp-name-parser.c.
Referenced by yyparse().
#define YYNTOKENS 75 |
Definition at line 904 of file cp-name-parser.c.
Referenced by yy_symbol_print(), and yyparse().
#define YYPACT_NINF (-187) |
Definition at line 1030 of file cp-name-parser.c.
#define yypact_value_is_default | ( | Yyn | ) | ((Yyn) == YYPACT_NINF) |
Definition at line 1032 of file cp-name-parser.c.
Referenced by yyparse().
#define YYPTRDIFF_MAXIMUM LONG_MAX |
Definition at line 664 of file cp-name-parser.c.
#define YYPTRDIFF_T long |
Definition at line 663 of file cp-name-parser.c.
Referenced by yyparse().
#define YYPULL 1 |
Definition at line 64 of file cp-name-parser.c.
#define YYPURE 1 |
Definition at line 58 of file cp-name-parser.c.
#define YYPUSH 0 |
Definition at line 61 of file cp-name-parser.c.
#define YYRECOVERING | ( | ) | (!!yyerrstatus) |
Definition at line 1477 of file cp-name-parser.c.
#define YYSIZE_MAXIMUM |
Definition at line 681 of file cp-name-parser.c.
#define YYSIZE_T unsigned |
Definition at line 677 of file cp-name-parser.c.
Referenced by yyparse().
#define YYSIZEOF | ( | X | ) | YY_CAST (YYPTRDIFF_T, sizeof (X)) |
Definition at line 687 of file cp-name-parser.c.
Referenced by yyparse().
#define YYSKELETON_NAME "yacc.c" |
Definition at line 55 of file cp-name-parser.c.
#define YYSTACK_ALLOC YYMALLOC |
Definition at line 810 of file cp-name-parser.c.
Referenced by yyparse().
#define YYSTACK_ALLOC_MAXIMUM YYSIZE_MAXIMUM |
Definition at line 813 of file cp-name-parser.c.
#define YYSTACK_BYTES | ( | N | ) |
Definition at line 854 of file cp-name-parser.c.
Referenced by yyparse().
#define YYSTACK_FREE YYFREE |
Definition at line 811 of file cp-name-parser.c.
Referenced by yyparse().
#define YYSTACK_GAP_MAXIMUM (YYSIZEOF (union cp_name_parser_yyalloc) - 1) |
Definition at line 850 of file cp-name-parser.c.
#define YYSTACK_RELOCATE | ( | Stack_alloc, | |
Stack ) |
Definition at line 865 of file cp-name-parser.c.
Referenced by yyparse().
#define YYTABLE_NINF (-1) |
Definition at line 1035 of file cp-name-parser.c.
#define yytable_value_is_error | ( | Yyn | ) | 0 |
Definition at line 1037 of file cp-name-parser.c.
Referenced by yyparse().
#define YYTOKENTYPE |
Definition at line 131 of file cp-name-parser.c.
#define YYTRANSLATE | ( | YYX | ) |
Definition at line 918 of file cp-name-parser.c.
Referenced by yyparse().
#define YYUNDEF 257 |
Definition at line 195 of file cp-name-parser.c.
Referenced by yyparse().
typedef union cp_name_parser_YYSTYPE cp_name_parser_YYSTYPE |
Definition at line 274 of file cp-name-parser.c.
Definition at line 406 of file cp-name-parser.c.
typedef int yy_state_fast_t |
Definition at line 694 of file cp-name-parser.c.
typedef yytype_int16 yy_state_t |
Definition at line 691 of file cp-name-parser.c.
typedef enum yytokentype yytoken_kind_t |
Definition at line 189 of file cp-name-parser.c.
typedef short yytype_int16 |
Definition at line 615 of file cp-name-parser.c.
typedef signed char yytype_int8 |
Definition at line 607 of file cp-name-parser.c.
typedef unsigned short yytype_uint16 |
Definition at line 647 of file cp-name-parser.c.
typedef unsigned char yytype_uint8 |
Definition at line 636 of file cp-name-parser.c.
anonymous enum |
Enumerator | |
---|---|
YYENOMEM |
Definition at line 1466 of file cp-name-parser.c.
Definition at line 287 of file cp-name-parser.c.
enum yytokentype |
Definition at line 132 of file cp-name-parser.c.
|
static |
Definition at line 4128 of file cp-name-parser.c.
Referenced by cp_demangled_name_to_comp().
|
static |
Definition at line 3608 of file cp-name-parser.c.
References backslashable, and represented.
Referenced by cp_parse_escape().
gdb::unique_xmalloc_ptr< char > cp_comp_to_string | ( | struct demangle_component * | result, |
int | estimated_len ) |
Definition at line 4140 of file cp-name-parser.c.
References err, and gdb_cplus_demangle_print().
Referenced by cp_canonicalize_string(), cp_canonicalize_string_full(), cp_class_name_from_physname(), cp_func_name(), cp_remove_params_1(), method_name_from_physname(), replace_typedefs(), replace_typedefs_qualified_name(), replace_typedefs_template(), and typy_lookup_type().
struct std::unique_ptr< demangle_parse_info > cp_demangled_name_to_comp | ( | const char * | demangled_name, |
std::string * | errmsg ) |
Definition at line 4211 of file cp-name-parser.c.
References allocate_info(), cpname_state::demangle_info, cpname_state::error_lexptr, cpname_state::global_errmsg, cpname_state::global_result, cpname_state::lexptr, cpname_state::prev_lexptr, and yyparse.
Referenced by cp_canonicalize_string(), cp_canonicalize_string_full(), cp_func_name(), cp_remove_params_1(), inspect_type(), mangled_name_to_comp(), and typy_legacy_template_argument().
void cp_merge_demangle_parse_infos | ( | struct demangle_parse_info * | dest, |
struct demangle_component * | target, | ||
struct demangle_parse_info * | src ) |
Definition at line 4186 of file cp-name-parser.c.
References demangle_parse_info::info, demangle_info::next, and demangle_parse_info::tree.
Referenced by inspect_type().
|
static |
Definition at line 3635 of file cp-name-parser.c.
References c_parse_backslash(), and cp_parse_escape().
Referenced by cp_parse_escape(), and yylex().
|
static |
Definition at line 3483 of file cp-name-parser.c.
References c_ident_is_alnum().
Referenced by yylex().
void xfree | ( | void * | ) |
void * xmalloc | ( | YYSIZE_T | ) |
|
static |
Definition at line 1593 of file cp-name-parser.c.
References YY_ACCESSING_SYMBOL, yy_symbol_print(), YYFPRINTF, yyr2, yyrline, yyrule, yyssp, and yyvsp.
|
static |
Definition at line 1570 of file cp-name-parser.c.
References YYFPRINTF.
|
static |
Definition at line 1554 of file cp-name-parser.c.
References yy_symbol_value_print(), YYFPRINTF, YYNTOKENS, and yysymbol_name().
Referenced by yy_reduce_print().
|
static |
Definition at line 1535 of file cp-name-parser.c.
References YY_IGNORE_MAYBE_UNINITIALIZED_BEGIN, YY_IGNORE_MAYBE_UNINITIALIZED_END, and YY_USE.
Referenced by yy_symbol_print().
|
static |
Definition at line 1655 of file cp-name-parser.c.
References YY_IGNORE_MAYBE_UNINITIALIZED_BEGIN, YY_IGNORE_MAYBE_UNINITIALIZED_END, YY_SYMBOL_PRINT, and YY_USE.
Referenced by yyparse().
|
static |
Definition at line 4114 of file cp-name-parser.c.
References cpname_state::error_lexptr, cpname_state::global_errmsg, and cpname_state::prev_lexptr.
|
static |
Definition at line 3726 of file cp-name-parser.c.
References ANDAND, ARROW, ASSIGN_MODIFY, BOOL, c_ident_is_alnum(), c_ident_is_alpha(), CHAR, CLASS, COLONCOLON, cp_name_parser_YYSTYPE::comp, CONST_KEYWORD, CONSTRUCTION_IN, CONSTRUCTION_VTABLE, cp_parse_escape(), DECREMENT, DELETE, DEMANGLER_SPECIAL, DOUBLE_KEYWORD, DYNAMIC_CAST, ELLIPSIS, ENUM, EQUAL, ERROR, FALSEKEYWORD, cpname_state::fill_comp(), FLOAT_KEYWORD, GEQ, HANDLE_SPECIAL, HANDLE_TOKEN2, HANDLE_TOKEN3, INCREMENT, INT, INT_KEYWORD, LEQ, cpname_state::lexptr, LONG, LSH, cp_name_parser_YYSTYPE::lval, cpname_state::make_builtin_type(), cpname_state::make_name(), NAME, NEW, NOTEQUAL, OPERATOR, OROR, cpname_state::parse_number(), cpname_state::prev_lexptr, REINTERPRET_CAST, RESTRICT, RSH, SHORT, SIGNED_KEYWORD, SIZEOF, STATIC_CAST, STRUCT, symbol_end(), TEMPLATE, TRUEKEYWORD, UNION, UNSIGNED, VOID, VOLATILE_KEYWORD, WCHAR_T, and yyerror.
int yyparse | ( | struct cpname_state * | state | ) |
Definition at line 1679 of file cp-name-parser.c.
References cpname_state::d_binary(), cpname_state::d_int_type(), d_left, cpname_state::d_qualify(), d_right, cpname_state::d_unary(), cpname_state::fill_comp(), cpname_state::global_result, INT_CHAR, INT_LLONG, INT_LONG, INT_SHORT, INT_SIGNED, INT_UNSIGNED, cpname_state::make_builtin_type(), cpname_state::make_dtor(), cpname_state::make_name(), cpname_state::make_operator(), QUAL_CONST, QUAL_RESTRICT, QUAL_VOLATILE, YY_, YY_ACCESSING_SYMBOL, YY_ASSERT, YY_CAST, YY_IGNORE_MAYBE_UNINITIALIZED_BEGIN, YY_IGNORE_MAYBE_UNINITIALIZED_END, YY_IGNORE_USELESS_CAST_BEGIN, YY_IGNORE_USELESS_CAST_END, YY_INITIAL_VALUE, YY_REDUCE_PRINT, YY_STACK_PRINT, YY_SYMBOL_PRINT, YYABORT, YYACCEPT, yychar, yycheck, yydefact, yydefgoto, yydestruct(), YYDPRINTF, YYEMPTY, YYEOF, YYerror, YYERROR, yyerror, YYFINAL, YYINITDEPTH, YYLAST, yylen, yylex, yylhs, yylloc, yylval, YYMAXDEPTH, yynerrs, YYNOMEM, YYNSTATES, YYNTOKENS, yypact, yypact_value_is_default, yypgoto, YYPOPSTACK, YYPTRDIFF_T, yyr1, yyr2, YYSIZE_T, YYSIZEOF, yyss, cp_name_parser_yyalloc::yyss_alloc, yyssp, YYSTACK_ALLOC, YYSTACK_BYTES, YYSTACK_FREE, YYSTACK_RELOCATE, yystacksize, yystate, YYSYMBOL_YYEMPTY, YYSYMBOL_YYEOF, YYSYMBOL_YYerror, yytable, yytable_value_is_error, YYTRANSLATE, YYUNDEF, yyval, yyvs, cp_name_parser_yyalloc::yyvs_alloc, and yyvsp.
|
static |
Definition at line 1024 of file cp-name-parser.c.
References yytname.
Referenced by yy_symbol_print().
|
static |
Definition at line 3603 of file cp-name-parser.c.
Referenced by c_parse_backslash().
|
static |
Definition at line 3604 of file cp-name-parser.c.
Referenced by c_parse_backslash().
|
static |
Definition at line 1258 of file cp-name-parser.c.
Referenced by yyparse().
int yydebug |
Definition at line 1620 of file cp-name-parser.c.
|
static |
Definition at line 1082 of file cp-name-parser.c.
Referenced by yyparse().
|
static |
Definition at line 1129 of file cp-name-parser.c.
Referenced by yyparse().
|
static |
Definition at line 1042 of file cp-name-parser.c.
Referenced by yyparse().
|
static |
Definition at line 1120 of file cp-name-parser.c.
Referenced by yyparse().
|
static |
Definition at line 1416 of file cp-name-parser.c.
Referenced by yyparse().
|
static |
Definition at line 1441 of file cp-name-parser.c.
Referenced by yy_reduce_print(), and yyparse().
|
static |
Definition at line 962 of file cp-name-parser.c.
Referenced by yy_reduce_print().
|
static |
Definition at line 1378 of file cp-name-parser.c.
|
static |
Definition at line 1140 of file cp-name-parser.c.
Referenced by yyparse().
|
static |
Definition at line 997 of file cp-name-parser.c.
Referenced by yysymbol_name().
|
static |
Definition at line 925 of file cp-name-parser.c.