forked from sampsyo/bril
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request sampsyo#172 from sampsyo/brilck-pos
brilck: Report source positions
- Loading branch information
Showing
17 changed files
with
119 additions
and
70 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
b has type bool, but arg 1 for add should have type int | ||
2:3: b has type bool, but arg 1 for add should have type int |
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 |
---|---|---|
@@ -1,9 +1,9 @@ | ||
returning value in function without a return type | ||
missing return value in function with return type | ||
function @foo undefined | ||
@nothing should have no result type | ||
call should have one function, not 2 | ||
result type of @retint should be int, but found bool | ||
b has type bool, but arg 0 for @argint should have type int | ||
@argint expects 1 args, not 0 | ||
@argint expects 1 args, not 2 | ||
14:3: returning value in function without a return type | ||
18:3: missing return value in function with return type | ||
22:3: function @foo undefined | ||
23:3: @nothing should have no result type | ||
24:3: call should have one function, not 2 | ||
25:3: result type of @retint should be int, but found bool | ||
26:3: b has type bool, but arg 0 for @argint should have type int | ||
27:3: @argint expects 1 args, not 0 | ||
28:3: @argint expects 1 args, not 2 |
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 |
---|---|---|
@@ -1,4 +1,4 @@ | ||
const value 4 does not match type bool | ||
const value true does not match type int | ||
const of non-primitive type ptr<int> | ||
unknown const type blah | ||
2:3: const value 4 does not match type bool | ||
3:3: const value true does not match type int | ||
4:3: const of non-primitive type ptr<int> | ||
5:3: unknown const type blah |
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 |
---|---|---|
@@ -1,3 +1,3 @@ | ||
a has type int, but arg 0 for id should have type bool | ||
missing result type T for id | ||
id expects 1 args, not 0 | ||
2:3: a has type int, but arg 0 for id should have type bool | ||
3:3: missing result type T for id | ||
4:3: id expects 1 args, not 0 |
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 |
---|---|---|
@@ -1,10 +1,10 @@ | ||
f has type float, but arg 0 for alloc should have type int | ||
result type of alloc should be ptr<T>, but found int | ||
f has type float, but arg 1 for store should have type int | ||
i has type int, but arg 0 for store should have type ptr<T> | ||
p has type ptr<int>, but arg 0 for load should have type ptr<float> | ||
i has type int, but arg 0 for load should have type ptr<int> | ||
p has type ptr<int>, but arg 0 for ptradd should have type ptr<float> | ||
i has type int, but arg 0 for ptradd should have type ptr<int> | ||
p has type ptr<int>, but arg 1 for ptradd should have type int | ||
i has type int, but arg 0 for free should have type ptr<T> | ||
2:3: f has type float, but arg 0 for alloc should have type int | ||
3:3: result type of alloc should be ptr<T>, but found int | ||
5:3: f has type float, but arg 1 for store should have type int | ||
6:3: i has type int, but arg 0 for store should have type ptr<T> | ||
8:3: p has type ptr<int>, but arg 0 for load should have type ptr<float> | ||
9:3: i has type int, but arg 0 for load should have type ptr<int> | ||
11:3: p has type ptr<int>, but arg 0 for ptradd should have type ptr<float> | ||
12:3: i has type int, but arg 0 for ptradd should have type ptr<int> | ||
12:3: p has type ptr<int>, but arg 1 for ptradd should have type int | ||
14:3: i has type int, but arg 0 for free should have type ptr<T> |
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 |
---|---|---|
@@ -1 +1 @@ | ||
add expects 2 args, not 3 | ||
2:3: add expects 2 args, not 3 |
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 |
---|---|---|
@@ -1,5 +1,5 @@ | ||
multiply defined label .bar | ||
label .bad undefined | ||
br needs 2 labels; found 1 | ||
br needs 2 labels; found 3 | ||
not needs 0 labels; found 1 | ||
8:1: multiply defined label .bar | ||
2:3: label .bad undefined | ||
3:3: br needs 2 labels; found 1 | ||
4:3: br needs 2 labels; found 3 | ||
5:3: not needs 0 labels; found 1 |
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 |
---|---|---|
@@ -1 +1 @@ | ||
add expects 2 args, not 1 | ||
2:3: add expects 2 args, not 1 |
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 |
---|---|---|
@@ -1 +1 @@ | ||
missing result type int for add | ||
2:3: missing result type int for add |
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 |
---|---|---|
@@ -1 +1 @@ | ||
print should have no result type | ||
2:3: print should have no result type |
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 |
---|---|---|
@@ -1 +1 @@ | ||
a has type ptr<int>, but arg 0 for id should have type ptr<float> | ||
3:3: a has type ptr<int>, but arg 0 for id should have type ptr<float> |
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 |
---|---|---|
@@ -1 +1 @@ | ||
new type int for a conflicts with old type bool | ||
3:3: new type int for a conflicts with old type bool |
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 |
---|---|---|
@@ -1 +1 @@ | ||
a (arg 0) undefined | ||
2:3: a (arg 0) undefined |