Hyphenate "argument-dependent".

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@132989 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Jay Foad 2011-06-14 12:59:25 +00:00
parent e1eed38733
commit 2a00b8347b
5 changed files with 11 additions and 11 deletions

View File

@ -2180,7 +2180,7 @@ def err_undeclared_var_use : Error<"use of undeclared identifier %0">;
def note_dependent_var_use : Note<"must qualify identifier to find this " def note_dependent_var_use : Note<"must qualify identifier to find this "
"declaration in dependent base class">; "declaration in dependent base class">;
def err_not_found_by_two_phase_lookup : Error<"call to function %0 that is neither " def err_not_found_by_two_phase_lookup : Error<"call to function %0 that is neither "
"visible in the template definition nor found by argument dependent lookup">; "visible in the template definition nor found by argument-dependent lookup">;
def note_not_found_by_two_phase_lookup : Note<"%0 should be declared prior to the " def note_not_found_by_two_phase_lookup : Note<"%0 should be declared prior to the "
"call site%select{| or in %2| or in an associated namespace of one of its arguments}1">; "call site%select{| or in %2| or in an associated namespace of one of its arguments}1">;
def err_undeclared_use : Error<"use of undeclared %0">; def err_undeclared_use : Error<"use of undeclared %0">;

View File

@ -11,7 +11,7 @@ namespace PR10053 {
template<typename T> struct A { template<typename T> struct A {
T t; T t;
A() { A() {
f(t); // expected-error {{call to function 'f' that is neither visible in the template definition nor found by argument dependent lookup}} f(t); // expected-error {{call to function 'f' that is neither visible in the template definition nor found by argument-dependent lookup}}
} }
}; };

View File

@ -148,7 +148,7 @@ namespace PR10053 {
template<typename T> struct A { template<typename T> struct A {
T t; T t;
A() { A() {
f(t); // expected-error {{call to function 'f' that is neither visible in the template definition nor found by argument dependent lookup}} f(t); // expected-error {{call to function 'f' that is neither visible in the template definition nor found by argument-dependent lookup}}
} }
}; };
@ -160,7 +160,7 @@ namespace PR10053 {
namespace N { namespace N {
namespace M { namespace M {
template<typename T> int g(T t) { template<typename T> int g(T t) {
f(t); // expected-error {{call to function 'f' that is neither visible in the template definition nor found by argument dependent lookup}} f(t); // expected-error {{call to function 'f' that is neither visible in the template definition nor found by argument-dependent lookup}}
}; };
} }
@ -187,7 +187,7 @@ namespace PR10053 {
// Example from www/compatibility.html // Example from www/compatibility.html
namespace my_file { namespace my_file {
template <typename T> T Squared(T x) { template <typename T> T Squared(T x) {
return Multiply(x, x); // expected-error {{neither visible in the template definition nor found by argument dependent lookup}} return Multiply(x, x); // expected-error {{neither visible in the template definition nor found by argument-dependent lookup}}
} }
int Multiply(int x, int y) { // expected-note {{should be declared prior to the call site}} int Multiply(int x, int y) { // expected-note {{should be declared prior to the call site}}
@ -203,7 +203,7 @@ namespace PR10053 {
namespace my_file2 { namespace my_file2 {
template<typename T> template<typename T>
void Dump(const T& value) { void Dump(const T& value) {
std::cout << value << "\n"; // expected-error {{neither visible in the template definition nor found by argument dependent lookup}} std::cout << value << "\n"; // expected-error {{neither visible in the template definition nor found by argument-dependent lookup}}
} }
namespace ns { namespace ns {
@ -222,7 +222,7 @@ namespace PR10053 {
namespace my_file2_a { namespace my_file2_a {
template<typename T> template<typename T>
void Dump(const T &value) { void Dump(const T &value) {
print(std::cout, value); // expected-error 4{{neither visible in the template definition nor found by argument dependent lookup}} print(std::cout, value); // expected-error 4{{neither visible in the template definition nor found by argument-dependent lookup}}
} }
namespace ns { namespace ns {
@ -248,7 +248,7 @@ namespace PR10053 {
namespace unary { namespace unary {
template<typename T> template<typename T>
T Negate(const T& value) { T Negate(const T& value) {
return !value; // expected-error {{call to function 'operator!' that is neither visible in the template definition nor found by argument dependent lookup}} return !value; // expected-error {{call to function 'operator!' that is neither visible in the template definition nor found by argument-dependent lookup}}
} }
namespace ns { namespace ns {

View File

@ -25,7 +25,7 @@ namespace N3 {
struct call_f0 { struct call_f0 {
void test_f0(T t) { void test_f0(T t) {
Result &result = f0(t); // expected-error {{undeclared identifier}} \ Result &result = f0(t); // expected-error {{undeclared identifier}} \
expected-error {{neither visible in the template definition nor found by argument dependent lookup}} expected-error {{neither visible in the template definition nor found by argument-dependent lookup}}
} }
}; };
} }

View File

@ -459,7 +459,7 @@ int main() {
<p>Clang complains: <p>Clang complains:
<pre> <b>my_file.cpp:2:10: <span class="error">error:</span> call to function 'Multiply' that is neither visible in the template definition nor found by argument dependent lookup</b> <pre> <b>my_file.cpp:2:10: <span class="error">error:</span> call to function 'Multiply' that is neither visible in the template definition nor found by argument-dependent lookup</b>
return Multiply(x, x); return Multiply(x, x);
<span class="caret"> ^</span> <span class="caret"> ^</span>
<b>my_file.cpp:10:3: <span class="note">note:</span> in instantiation of function template specialization 'Squared&lt;int&gt;' requested here</b> <b>my_file.cpp:10:3: <span class="note">note:</span> in instantiation of function template specialization 'Squared&lt;int&gt;' requested here</b>
@ -520,7 +520,7 @@ void Use() {
<p>Again, Clang complains:</p> <p>Again, Clang complains:</p>
<pre> <b>my_file2.cpp:5:13: <span class="error">error:</span> call to function 'operator&lt;&lt;' that is neither visible in the template definition nor found by argument dependent lookup</b> <pre> <b>my_file2.cpp:5:13: <span class="error">error:</span> call to function 'operator&lt;&lt;' that is neither visible in the template definition nor found by argument-dependent lookup</b>
std::cout &lt;&lt; value &lt;&lt; "\n"; std::cout &lt;&lt; value &lt;&lt; "\n";
<span class="caret"> ^</span> <span class="caret"> ^</span>
<b>my_file2.cpp:17:3: <span class="error">note:</span> in instantiation of function template specialization 'Dump&lt;ns::Data&gt;' requested here</b> <b>my_file2.cpp:17:3: <span class="error">note:</span> in instantiation of function template specialization 'Dump&lt;ns::Data&gt;' requested here</b>