diff options
| author | Tom de Vries <tdevries@suse.de> | 2025-12-10 00:25:19 +0100 |
|---|---|---|
| committer | Tom de Vries <tdevries@suse.de> | 2025-12-10 00:25:19 +0100 |
| commit | 0f8fab2c906debb0169c9e09b7fcdd24c19db2a5 (patch) | |
| tree | 13a004f1195d2e5a1ddf70ac862c66cdfcf16175 /gdb/cp-name-parser.y | |
| parent | 10846fb73761134fb9f0e7c16f59a3e6196707c5 (diff) | |
| download | binutils-0f8fab2c906debb0169c9e09b7fcdd24c19db2a5.zip binutils-0f8fab2c906debb0169c9e09b7fcdd24c19db2a5.tar.gz binutils-0f8fab2c906debb0169c9e09b7fcdd24c19db2a5.tar.bz2 | |
[gdb] Fix whitespace in *.[ly]
Add indent-with-non-tab for *.[ly] in gdb/.gitattributes.
Fix whitespace in the *.[ly] files in gdb, and add these files to the clean
list in gdb/contrib/check-whitespace-pre-commit.py.
Tested on x86_64-linux.
Approved-By: Tom Tromey <tom@tromey.com>
Diffstat (limited to 'gdb/cp-name-parser.y')
| -rw-r--r-- | gdb/cp-name-parser.y | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/gdb/cp-name-parser.y b/gdb/cp-name-parser.y index 7221b78..f7b8828 100644 --- a/gdb/cp-name-parser.y +++ b/gdb/cp-name-parser.y @@ -946,7 +946,7 @@ declarator_1 : ptr_operator declarator_1 | direct_declarator_1 /* Function local variable or type. The typespec to - our left is the type of the containing function. + our left is the type of the containing function. This should be OK, because function local types can not be templates, so the return types of their members will not be mangled. If they are hopefully @@ -1163,7 +1163,7 @@ exp : exp '?' exp ':' exp %prec '?' state->fill_comp (DEMANGLE_COMPONENT_TRINARY_ARG2, $3, $5))); } ; - + exp : INT ; @@ -1180,7 +1180,7 @@ exp : SIZEOF '(' type ')' %prec UNARY ; /* C++. */ -exp : TRUEKEYWORD +exp : TRUEKEYWORD { struct demangle_component *i; i = state->make_name ("1", 1); $$ = state->fill_comp (DEMANGLE_COMPONENT_LITERAL, @@ -1189,7 +1189,7 @@ exp : TRUEKEYWORD } ; -exp : FALSEKEYWORD +exp : FALSEKEYWORD { struct demangle_component *i; i = state->make_name ("0", 1); $$ = state->fill_comp (DEMANGLE_COMPONENT_LITERAL, @@ -1364,10 +1364,10 @@ cpname_state::parse_number (const char *p, int len, int parsed_float, c = c_tolower (p[len - 1]); if (c == 'f') - { - len--; - type = make_builtin_type ("float"); - } + { + len--; + type = make_builtin_type ("float"); + } else if (c == 'l') { len--; @@ -1589,7 +1589,7 @@ cp_parse_escape (const char **string_ptr) state->lexptr += 2; \ lvalp->opname = string; \ return token; \ - } + } #define HANDLE_TOKEN3(string, token) \ if (state->lexptr[1] == string[1] && state->lexptr[2] == string[2]) \ @@ -1597,7 +1597,7 @@ cp_parse_escape (const char **string_ptr) state->lexptr += 3; \ lvalp->opname = string; \ return token; \ - } + } /* Read one token, getting characters through LEXPTR. */ |
