aboutsummaryrefslogtreecommitdiff
path: root/gcc/rust/parse/rust-parse.cc
diff options
context:
space:
mode:
authorbors[bot] <26634292+bors[bot]@users.noreply.github.com>2022-03-24 16:54:54 +0000
committerGitHub <noreply@github.com>2022-03-24 16:54:54 +0000
commit0fa882160df40cee56b5cdd0a2953b4abb4b9d18 (patch)
tree1bcc946dd8269d4e16c46ef980866140db20d139 /gcc/rust/parse/rust-parse.cc
parent3a90596517a785aa7832198a9f400f519d3420da (diff)
parent261c753e56c245aadd6f842d29a7bdb5c5d11489 (diff)
parent5651331236d39ce685e1de3396463fd88c3a83d2 (diff)
downloadgcc-0fa882160df40cee56b5cdd0a2953b4abb4b9d18.zip
gcc-0fa882160df40cee56b5cdd0a2953b4abb4b9d18.tar.gz
gcc-0fa882160df40cee56b5cdd0a2953b4abb4b9d18.tar.bz2
Merge #1043 #1064
1043: implement include_bytes! and include_str! macros r=CohenArthur a=dafaust Implement the include_bytes! and include_str! builtin macros. Addresses: #927 1064: Handle :tt fragments properly r=CohenArthur a=CohenArthur :tt fragments stand for token trees, and are composed of either a token, or a delimited token tree, which is a token tree surrounded by delimiters (parentheses, curly brackets or square brackets). This should allow us to handle a lot more macros, including extremely powerful macro patterns such as TT munchers Co-authored-by: David Faust <david.faust@oracle.com> Co-authored-by: Arthur Cohen <arthur.cohen@embecosm.com>