diff options
author | Tom Tromey <tom@tromey.com> | 2024-04-19 20:22:11 -0600 |
---|---|---|
committer | Tom Tromey <tom@tromey.com> | 2024-05-14 13:28:40 -0600 |
commit | a4b7c5f5cda16795dd8be11494e8f1b5de21d69f (patch) | |
tree | 793808a959af265d3e86677a8334aff6f3cd3c98 /libctf | |
parent | 383a3d99c361ff66b9b5bceb28c0ab9485cd1789 (diff) | |
download | binutils-a4b7c5f5cda16795dd8be11494e8f1b5de21d69f.zip binutils-a4b7c5f5cda16795dd8be11494e8f1b5de21d69f.tar.gz binutils-a4b7c5f5cda16795dd8be11494e8f1b5de21d69f.tar.bz2 |
Implement C++14 numeric separators
C++14 allows the use of the apostrophe as a numeric separator; that
is, "23000" and "23'000" represent the same number. This patch
implements this for gdb's C++ parser and the C++ name canonicalizer.
I did this unconditionally for all C variants because I think it's
unambiguous.
For the name canonicalizer, there's at least one compiler that can
emit constants with this form, see bug 30845.
Bug: https://sourceware.org/bugzilla/show_bug.cgi?id=23457
Bug: https://sourceware.org/bugzilla/show_bug.cgi?id=30845
Approved-By: John Baldwin <jhb@FreeBSD.org>
Diffstat (limited to 'libctf')
0 files changed, 0 insertions, 0 deletions