-
Notifications
You must be signed in to change notification settings - Fork 38
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix namespacing of
hilti
IDs in Spicy-side diagnostic output.
We now show them with a `spicy` prefix, which makes more sense for users. Closes #1803.
- Loading branch information
Showing
8 changed files
with
64 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
10 changes: 10 additions & 0 deletions
10
tests/Baseline/spicy.tools.spicyc-hilti-free-output-2/output
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
### BTest baseline data generated by btest-diff. Do not edit. Use "btest -U/-u" to update. Requires BTest >= 0.63. | ||
module Test { | ||
|
||
import spicy; | ||
import hilti; | ||
import spicy_rt; | ||
|
||
hilti::print(b"xxx".decode(spicy::Charset::UTF8, hilti::DecodeErrorStrategy::REPLACE), True); | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
### BTest baseline data generated by btest-diff. Do not edit. Use "btest -U/-u" to update. Requires BTest >= 0.63. | ||
[error] <...>/spicyc-hilti-free-output.spicy:8:7-8:28: call does not match any method: <const bytes>.decode(<string>) | ||
[error] <...>/spicyc-hilti-free-output.spicy:8:7-8:28: candidates: | ||
[error] <...>/spicyc-hilti-free-output.spicy:8:7-8:28: - <bytes>.decode([charset: spicy::Charset = spicy::Charset::UTF8], [errors: spicy::DecodeErrorStrategy = spicy::DecodeErrorStrategy::REPLACE]) | ||
[error] spicyc: aborting after errors |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
# @TEST-EXEC: spicyc -p -d %INPUT >output 2>&1; true | ||
# @TEST-EXEC: btest-diff output | ||
# | ||
# @TEST-DOC: Checks that HILTI-level identifiers are not showing up in compiler errors, but do show up when printing generated HILTI code; regression test for #1803 | ||
|
||
module Test; | ||
|
||
print b"xxx".decode("utf-8"); | ||
|
||
# @TEST-START-NEXT | ||
|
||
module Test; | ||
|
||
import spicy; | ||
|
||
print b"xxx".decode(spicy::Charset::UTF8); |