mirror of
https://github.com/ldc-developers/ldc.git
synced 2025-04-30 15:10:59 +03:00
Revise all LDC-specific errors/warnings/deprecs and insert backticks
For DMD's new syntax highlighting. I grepped in all .{h,cpp} files only.
This commit is contained in:
parent
58ef63417f
commit
2616261fd2
33 changed files with 224 additions and 219 deletions
|
@ -1266,7 +1266,7 @@ DValue *DtoCastArray(Loc &loc, DValue *u, Type *to) {
|
|||
Type *totype = to->toBasetype();
|
||||
Type *fromtype = u->type->toBasetype();
|
||||
if (fromtype->ty != Tarray && fromtype->ty != Tsarray) {
|
||||
error(loc, "can't cast %s to %s", u->type->toChars(), to->toChars());
|
||||
error(loc, "can't cast `%s` to `%s`", u->type->toChars(), to->toChars());
|
||||
fatal();
|
||||
}
|
||||
|
||||
|
@ -1297,7 +1297,7 @@ DValue *DtoCastArray(Loc &loc, DValue *u, Type *to) {
|
|||
totype->nextOf()->size() !=
|
||||
0) {
|
||||
error(loc,
|
||||
"invalid cast from '%s' to '%s', the element sizes don't line up",
|
||||
"invalid cast from `%s` to `%s`, the element sizes don't line up",
|
||||
fromtype->toChars(), totype->toChars());
|
||||
fatal();
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue