]> git.ipfire.org Git - thirdparty/gcc.git/commit
Add RAW_STRING_LITERAL
authoransh <anshmalik2002@gmail.com>
Mon, 24 Jun 2024 11:01:53 +0000 (04:01 -0700)
committerCohenArthur <arthur.cohen@embecosm.com>
Thu, 27 Jun 2024 11:25:11 +0000 (11:25 +0000)
commit9e5a4b410d026ac4a7d527edc4b6848524d281a3
tree88ceb168cca42f16fb8fc8300589221497437a41
parent40d52922469989d16626fd29d1943596af919d92
Add RAW_STRING_LITERAL

gcc/rust/ChangeLog:

* ast/rust-ast-collector.cc (TokenCollector::visit):
Handle case for RAW_STRING_LITERAL.
* ast/rust-ast.cc (AttributeParser::parse_meta_item_inner):
Likewise.
(AttributeParser::parse_literal): Likewise.
* ast/rust-ast.h: Likewise.
* hir/rust-ast-lower-base.cc (ASTLoweringBase::lower_literal):
Likewise.
* lex/rust-lex.cc (Lexer::parse_raw_string): Likewise.
* lex/rust-token.cc (Token::as_string): Likewise.
* lex/rust-token.h (enum PrimitiveCoreType): Likewise.
* parse/rust-parse-impl.h (Parser::parse_attr_input): Likewise.
(Parser::parse_literal_expr): Likewise.
(Parser::parse_pattern_no_alt): Likewise.

Signed-off-by: ansh <anshmalik2002@gmail.com>
gcc/rust/ast/rust-ast-collector.cc
gcc/rust/ast/rust-ast.cc
gcc/rust/ast/rust-ast.h
gcc/rust/hir/rust-ast-lower-base.cc
gcc/rust/lex/rust-lex.cc
gcc/rust/lex/rust-token.cc
gcc/rust/lex/rust-token.h
gcc/rust/parse/rust-parse-impl.h