diff options
author | Pierre-Emmanuel Patry <pierre-emmanuel.patry@embecosm.com> | 2023-07-10 13:47:37 +0200 |
---|---|---|
committer | Arthur Cohen <arthur.cohen@embecosm.com> | 2024-01-16 18:49:36 +0100 |
commit | 0830ce0813e8fcac793b210ce2715712b109ce2c (patch) | |
tree | d7b7e7973c6203c034980de59f68952dad99d8df /gcc/obstack-utils.h | |
parent | ded9de82c10f8783a4f2ec52d2930bad07b32468 (diff) | |
download | gcc-0830ce0813e8fcac793b210ce2715712b109ce2c.zip gcc-0830ce0813e8fcac793b210ce2715712b109ce2c.tar.gz gcc-0830ce0813e8fcac793b210ce2715712b109ce2c.tar.bz2 |
gccrs: dump: Output escaped character values
Output escaped character values instead of their raw values in string.
gcc/rust/ChangeLog:
* lex/rust-token.cc (escape_special_chars): Add a function that
escape a given string.
(Token::as_string): Add call to escape function for string/char
representations.
Signed-off-by: Pierre-Emmanuel Patry <pierre-emmanuel.patry@embecosm.com>
Diffstat (limited to 'gcc/obstack-utils.h')
0 files changed, 0 insertions, 0 deletions