[0/7] Leftovers from parsers cleanup

Message ID 20261001203105.1379971-1-simon.marchi@efficios.com
Headers
Series Leftovers from parsers cleanup |

Message

Simon Marchi Oct. 1, 2026, 8:29 p.m. UTC
  Here are a few random patches that I wrote when doing the parser cleanup
I just merged.  I initially left them out because they were not
essential and the series was already long enough.

Simon Marchi (7):
  gdb: convert QUAL_* macros into an enum_flags
  gdb: convert INT_* macros into an enum_flags
  gdb: convert d_left and d_right macros into functions
  gdb: replace cp-name-parser.c macros with lambdas
  gdb: use std::string for f-exp-parser.c's tempbuf
  gdb: remove qsort kludge from ada-exp-parser.y
  gdb: make COMPLETE_CHAR a constexpr

 gdb/ada-exp-parser.h |   2 +-
 gdb/ada-exp-parser.y |   3 -
 gdb/ada-lex.l        |   4 +-
 gdb/cp-name-parser.c | 210 +++++++++++++++++++++++++------------------
 gdb/cp-name-parser.h |  59 ++++++++----
 gdb/cp-name-parser.y |  30 ++++---
 gdb/f-exp-parser.c   |  55 +++---------
 7 files changed, 199 insertions(+), 164 deletions(-)


base-commit: ad78106abfc1ab764f3cb7450493f14b1bd8e9a2
  

Comments

Tom Tromey Oct. 14, 2026, 12:54 p.m. UTC | #1
>>>>> "Simon" == Simon Marchi <simon.marchi@efficios.com> writes:

Simon> Here are a few random patches that I wrote when doing the parser cleanup
Simon> I just merged.  I initially left them out because they were not
Simon> essential and the series was already long enough.

Thanks, this looks good.
Approved-By: Tom Tromey <tom@tromey.com>

Tom
  
Simon Marchi Oct. 14, 2026, 1:13 p.m. UTC | #2
On 10/14/26 8:54 AM, Tom Tromey wrote:
>>>>>> "Simon" == Simon Marchi <simon.marchi@efficios.com> writes:
> 
> Simon> Here are a few random patches that I wrote when doing the parser cleanup
> Simon> I just merged.  I initially left them out because they were not
> Simon> essential and the series was already long enough.
> 
> Thanks, this looks good.
> Approved-By: Tom Tromey <tom@tromey.com>
> 
> Tom

Thanks, pushed.

Simon