r186348 - Fix a typo in the diagnostic note added in r186342.
Kaelyn Uhrain
rikka at google.com
Mon Jul 15 14:18:33 PDT 2013
Author: rikka
Date: Mon Jul 15 16:18:33 2013
New Revision: 186348
URL: http://llvm.org/viewvc/llvm-project?rev=186348&view=rev
Log:
Fix a typo in the diagnostic note added in r186342.
Modified:
cfe/trunk/include/clang/Basic/DiagnosticSemaKinds.td
cfe/trunk/test/SemaCXX/member-expr.cpp
Modified: cfe/trunk/include/clang/Basic/DiagnosticSemaKinds.td
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/include/clang/Basic/DiagnosticSemaKinds.td?rev=186348&r1=186347&r2=186348&view=diff
==============================================================================
--- cfe/trunk/include/clang/Basic/DiagnosticSemaKinds.td (original)
+++ cfe/trunk/include/clang/Basic/DiagnosticSemaKinds.td Mon Jul 15 16:18:33 2013
@@ -4242,7 +4242,7 @@ def err_typecheck_member_reference_arrow
def err_typecheck_member_reference_suggestion : Error<
"member reference type %0 is %select{a|not a}1 pointer; maybe you meant to use '%select{->|.}1'?">;
def note_typecheck_member_reference_suggestion : Note<
- "did you meant to use '.' instead?">;
+ "did you mean to use '.' instead?">;
def err_typecheck_member_reference_type : Error<
"cannot refer to type member %0 in %1 with '%select{.|->}2'">;
def err_typecheck_member_reference_unknown : Error<
Modified: cfe/trunk/test/SemaCXX/member-expr.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/SemaCXX/member-expr.cpp?rev=186348&r1=186347&r2=186348&view=diff
==============================================================================
--- cfe/trunk/test/SemaCXX/member-expr.cpp (original)
+++ cfe/trunk/test/SemaCXX/member-expr.cpp Mon Jul 15 16:18:33 2013
@@ -88,7 +88,7 @@ namespace test5 {
void test2(A &x) {
x->A::foo<int>(); // expected-error {{'test5::A' is not a pointer}} \
- // expected-note {{did you meant to use '.' instead?}}
+ // expected-note {{did you mean to use '.' instead?}}
}
}
@@ -183,6 +183,6 @@ namespace PR15045 {
int f() {
Cl0 c;
return c->a; // expected-error {{member reference type 'PR15045::Cl0' is not a pointer}} \
- // expected-note {{did you meant to use '.' instead?}}
+ // expected-note {{did you mean to use '.' instead?}}
}
}
More information about the cfe-commits
mailing list