forked from OSchip/llvm-project
clang: Fix minor grammar-o in diag added in c354b2e3b
This commit is contained in:
parent
4225e7fa34
commit
82057e3f39
|
@ -2006,7 +2006,7 @@ def err_init_conversion_failed : Error<
|
|||
"|: different qualifiers (%5 vs %6)"
|
||||
"|: different exception specifications}4">;
|
||||
def note_forward_class_conversion : Note<"%0 is not defined, but forward "
|
||||
"declared here; conversion would be valid if it's derived from %1">;
|
||||
"declared here; conversion would be valid if it was derived from %1">;
|
||||
|
||||
def err_lvalue_to_rvalue_ref : Error<"rvalue reference %diff{to type $ cannot "
|
||||
"bind to lvalue of type $|cannot bind to incompatible lvalue}0,1">;
|
||||
|
|
|
@ -78,8 +78,8 @@ void testAnonymousNotMerged() {
|
|||
|
||||
// expected-note@Inputs/namespaces-right.h:60 {{passing argument to parameter here}}
|
||||
// expected-note@Inputs/namespaces-right.h:67 {{passing argument to parameter here}}
|
||||
// expected-note@Inputs/namespaces-left.h:63 {{'N11::(anonymous namespace)::Foo' is not defined, but forward declared here; conversion would be valid if it's derived from 'N11::(anonymous namespace)::Foo'}}
|
||||
// expected-note@Inputs/namespaces-left.h:70 {{'N12::(anonymous namespace)::Foo' is not defined, but forward declared here; conversion would be valid if it's derived from 'N12::(anonymous namespace)::Foo'}}
|
||||
// expected-note@Inputs/namespaces-left.h:63 {{'N11::(anonymous namespace)::Foo' is not defined, but forward declared here; conversion would be valid if it was derived from 'N11::(anonymous namespace)::Foo'}}
|
||||
// expected-note@Inputs/namespaces-left.h:70 {{'N12::(anonymous namespace)::Foo' is not defined, but forward declared here; conversion would be valid if it was derived from 'N12::(anonymous namespace)::Foo'}}
|
||||
// Test that bringing in one name from an overload set does not hide the rest.
|
||||
void testPartialImportOfOverloadSet() {
|
||||
void (*p)() = N13::p;
|
||||
|
|
|
@ -26,7 +26,7 @@ namespace NS {
|
|||
}
|
||||
|
||||
void test_X_elab(NS::X x) {
|
||||
struct S4 *s4 = 0; // expected-note{{'S4' is not defined, but forward declared here; conversion would be valid if it's derived from 'NS::S4'}}
|
||||
struct S4 *s4 = 0; // expected-note{{'S4' is not defined, but forward declared here; conversion would be valid if it was derived from 'NS::S4'}}
|
||||
x.test_elab2(s4); // expected-error{{cannot initialize a parameter of type 'NS::S4 *' with an lvalue of type 'struct S4 *'}}
|
||||
}
|
||||
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
// RUN: %clang_cc1 -fsyntax-only -verify %s
|
||||
|
||||
class A1 {};
|
||||
class B1; // expected-note{{'B1' is not defined, but forward declared here; conversion would be valid if it's derived from 'A1'}}
|
||||
class B1; // expected-note{{'B1' is not defined, but forward declared here; conversion would be valid if it was derived from 'A1'}}
|
||||
B1 *b1;
|
||||
A1 *a1 = b1; // expected-error{{cannot initialize a variable of type 'A1 *' with an lvalue of type 'B1 *'}}
|
||||
|
||||
|
|
Loading…
Reference in New Issue