aboutsummaryrefslogtreecommitdiff
path: root/gcc/d/dmd/canthrow.c
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/d/dmd/canthrow.c')
-rw-r--r--gcc/d/dmd/canthrow.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/gcc/d/dmd/canthrow.c b/gcc/d/dmd/canthrow.c
index 33d61ed..5d180f5 100644
--- a/gcc/d/dmd/canthrow.c
+++ b/gcc/d/dmd/canthrow.c
@@ -1,6 +1,6 @@
/* Compiler implementation of the D programming language
- * Copyright (C) 1999-2020 by The D Language Foundation, All Rights Reserved
+ * Copyright (C) 1999-2021 by The D Language Foundation, All Rights Reserved
* written by Walter Bright
* http://www.digitalmars.com
* Distributed under the Boost Software License, Version 1.0.
@@ -77,7 +77,7 @@ bool canThrow(Expression *e, FuncDeclaration *func, bool mustNotThrow)
{
if (ce->f)
{
- ce->error("%s '%s' is not nothrow",
+ ce->error("%s `%s` is not nothrow",
ce->f->kind(), ce->f->toPrettyChars());
}
else
@@ -85,7 +85,7 @@ bool canThrow(Expression *e, FuncDeclaration *func, bool mustNotThrow)
Expression *e1 = ce->e1;
if (e1->op == TOKstar) // print 'fp' if e1 is (*fp)
e1 = ((PtrExp *)e1)->e1;
- ce->error("'%s' is not nothrow", e1->toChars());
+ ce->error("`%s` is not nothrow", e1->toChars());
}
}
stop = true;
@@ -103,7 +103,7 @@ bool canThrow(Expression *e, FuncDeclaration *func, bool mustNotThrow)
{
if (mustNotThrow)
{
- ne->error("%s '%s' is not nothrow",
+ ne->error("%s `%s` is not nothrow",
ne->allocator->kind(), ne->allocator->toPrettyChars());
}
stop = true;
@@ -115,7 +115,7 @@ bool canThrow(Expression *e, FuncDeclaration *func, bool mustNotThrow)
{
if (mustNotThrow)
{
- ne->error("%s '%s' is not nothrow",
+ ne->error("%s `%s` is not nothrow",
ne->member->kind(), ne->member->toPrettyChars());
}
stop = true;
@@ -163,7 +163,7 @@ bool canThrow(Expression *e, FuncDeclaration *func, bool mustNotThrow)
{
if (mustNotThrow)
{
- de->error("%s '%s' is not nothrow",
+ de->error("%s `%s` is not nothrow",
ad->dtor->kind(), ad->dtor->toPrettyChars());
}
stop = true;
@@ -176,7 +176,7 @@ bool canThrow(Expression *e, FuncDeclaration *func, bool mustNotThrow)
{
if (mustNotThrow)
{
- de->error("%s '%s' is not nothrow",
+ de->error("%s `%s` is not nothrow",
ad->aggDelete->kind(), ad->aggDelete->toPrettyChars());
}
stop = true;
@@ -217,7 +217,7 @@ bool canThrow(Expression *e, FuncDeclaration *func, bool mustNotThrow)
{
if (mustNotThrow)
{
- ae->error("%s '%s' is not nothrow",
+ ae->error("%s `%s` is not nothrow",
sd->postblit->kind(), sd->postblit->toPrettyChars());
}
stop = true;