/cp
[official-gcc.git] / gcc / tree-browser.def
blobc19393965ae8da7f45aa049c0b277c8fd0d0f427
1 /* Definitions and documentation for the codes used by the Tree Browser.
2 Copyright (C) 2002-2015 Free Software Foundation, Inc.
3 Contributed by Sebastian Pop <s.pop@laposte.net>
5 This file is part of GCC.
7 GCC is free software; you can redistribute it and/or modify it under
8 the terms of the GNU General Public License as published by the Free
9 Software Foundation; either version 3, or (at your option) any later
10 version.
12 GCC is distributed in the hope that it will be useful, but WITHOUT ANY
13 WARRANTY; without even the implied warranty of MERCHANTABILITY or
14 FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
15 for more details.
17 You should have received a copy of the GNU General Public License
18 along with GCC; see the file COPYING3. If not see
19 <http://www.gnu.org/licenses/>. */
21 /* First field in the following declarations is the code of the command
22 used by the tree browser.
23 Second field is what is parsed in order to recognize a command.
24 Third field is used for printing the help message. */
27 /* Misc. commands. */
28 DEFTBCODE (TB_EXIT, "x", "Exits tree-browser.")
29 DEFTBCODE (TB_QUIT, "q", "Exits tree-browser.")
30 DEFTBCODE (TB_HELP, "h", "Prints this help message.")
31 DEFTBCODE (TB_UPDATE_UP, "update", "Update information about parent expressions.")
32 DEFTBCODE (TB_VERBOSE, "verbose", "Sets/unsets verbose mode (default is on).")
34 /* Walking commands. */
35 DEFTBCODE (TB_FUN, "fun", "Go to the current function declaration.")
36 DEFTBCODE (TB_NEXT, "nx", "Go to the next expression in a BIND_EXPR.")
37 DEFTBCODE (TB_PREV, "pr", "Go to the previous expression in a BIND_EXPR.")
38 DEFTBCODE (TB_UP, "up", "Go to the parent tree node.")
39 DEFTBCODE (TB_LAST, "last", "Go to the last expression in a BIND_EXPR.")
40 DEFTBCODE (TB_FIRST, "first","Go to the first expression in a BIND_EXPR.")
41 DEFTBCODE (TB_HPREV, "hpr", "Go to the previous visited node (history previous).")
43 /* Fields accessors. */
44 DEFTBCODE (TB_CHILD_0, "arg0", "Child 0.")
45 DEFTBCODE (TB_CHILD_1, "arg1", "Child 1.")
46 DEFTBCODE (TB_CHILD_2, "arg2", "Child 2.")
47 DEFTBCODE (TB_CHILD_3, "arg3", "Child 3.")
48 DEFTBCODE (TB_DECL_SAVED_TREE, "decl_saved_tree", "Body of a function.")
49 DEFTBCODE (TB_TYPE, "type", "Field accessor.")
50 DEFTBCODE (TB_SIZE, "size", "Field accessor.")
51 DEFTBCODE (TB_UNIT_SIZE, "unit_size", "Field accessor.")
52 DEFTBCODE (TB_OFFSET, "offset", "Field accessor.")
53 DEFTBCODE (TB_BIT_OFFSET, "bit_offset", "Field accessor.")
54 DEFTBCODE (TB_CONTEXT, "context", "Field accessor.")
55 DEFTBCODE (TB_ATTRIBUTES, "attributes", "Field accessor.")
56 DEFTBCODE (TB_ABSTRACT_ORIGIN, "abstract_origin", "Field accessor.")
57 DEFTBCODE (TB_ARGUMENTS, "arguments", "Field accessor.")
58 DEFTBCODE (TB_RESULT, "result", "Field accessor.")
59 DEFTBCODE (TB_INITIAL, "initial", "Field accessor.")
60 DEFTBCODE (TB_ARG_TYPE, "arg-type", "Field accessor.")
61 DEFTBCODE (TB_ARG_TYPE_AS_WRITTEN, "arg-type-as-written", "Field accessor.")
62 DEFTBCODE (TB_CHAIN, "chain", "Field accessor.")
63 DEFTBCODE (TB_VALUES, "values", "Field accessor.")
64 DEFTBCODE (TB_DOMAIN, "domain", "Field accessor.")
65 DEFTBCODE (TB_METHOD_BASE_TYPE, "method_basetype", "Field accessor.")
66 DEFTBCODE (TB_FIELDS, "fields", "Field accessor.")
67 DEFTBCODE (TB_ARG_TYPES, "arg-types", "Field accessor.")
68 DEFTBCODE (TB_BASETYPE, "basetype", "Field accessor.")
69 DEFTBCODE (TB_POINTER_TO_THIS, "pointer_to_this", "Field accessor.")
70 DEFTBCODE (TB_REFERENCE_TO_THIS,"reference_to_this", "Field accessor.")
71 DEFTBCODE (TB_VARS, "vars", "Field accessor.")
72 DEFTBCODE (TB_SUPERCONTEXT, "supercontext", "Field accessor.")
73 DEFTBCODE (TB_BODY, "body", "Field accessor.")
74 DEFTBCODE (TB_SUBBLOCKS, "subblocks", "Field accessor.")
75 DEFTBCODE (TB_BLOCK, "block", "Field accessor.")
76 DEFTBCODE (TB_REAL, "real", "Field accessor.")
77 DEFTBCODE (TB_IMAG, "imag", "Field accessor.")
78 DEFTBCODE (TB_PURPOSE, "purpose", "Field accessor.")
79 DEFTBCODE (TB_VALUE, "value", "Field accessor.")
80 DEFTBCODE (TB_ELT, "elt", "Field accessor.")
81 DEFTBCODE (TB_MIN, "min", "Field accessor.")
82 DEFTBCODE (TB_MAX, "max", "Field accessor.")
84 /* Searching commands. */
85 DEFTBCODE (TB_SEARCH_CODE, "sc", "Search a node having a TREE_CODE given as a parameter.")
86 DEFTBCODE (TB_SEARCH_NAME, "sn", "Search an identifier having a name given as a parameter.")
88 /* Printing commands. */
89 DEFTBCODE (TB_PRETTY_PRINT, "pp", "Pretty print current node.")
90 DEFTBCODE (TB_PRINT, "p", "Prints the current node.")
94 Local variables:
95 mode:c
96 End: