diff options
author | bors[bot] <26634292+bors[bot]@users.noreply.github.com> | 2021-07-05 14:49:56 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-07-05 14:49:56 +0000 |
commit | 27b3d34428801397e562b7fcc5ca10b13961f3e1 (patch) | |
tree | c88d5c958ebb9f5a80d2ab7945d6cf0f29181553 /gcc/tree-dump.c | |
parent | 3c7c2f427c8cc69c67f53281391f954df212914a (diff) | |
parent | afe6eb7d16b1c2336381c74e7d416c57129e88c6 (diff) | |
download | gcc-27b3d34428801397e562b7fcc5ca10b13961f3e1.zip gcc-27b3d34428801397e562b7fcc5ca10b13961f3e1.tar.gz gcc-27b3d34428801397e562b7fcc5ca10b13961f3e1.tar.bz2 |
Merge #546
546: shebang handling r=philberty a=dkm
Mark Wielaard:
> Shebang handling, the first line starting with #! was not done fully
> correct and it isn't necessary to keep track of the shebang line in
> the AST or HIR Crate classes.
>
> Because an inner attribute also starts with #! the first line isn't
> regarded as a shebang line if the #! is followed by (optional)
> whitespace and comments and a [. In that case the #! is seen as the
> start of an inner attribute.
>
> I added various testcases that hopefully show the funny things you can
> get when the first line starts with #!.
Co-authored-by: Mark Wielaard <mark@klomp.org>
Diffstat (limited to 'gcc/tree-dump.c')
0 files changed, 0 insertions, 0 deletions