forked from OSchip/llvm-project
d517395248
When two different types has the same text representation in the same diagnostic message, print an a.k.a. after the type if the a.k.a. gives extra information about the type. class versa_string; typedef versa_string string; namespace std {template <typename T> class vector;} using std::vector; void f(vector<string> v); namespace std { class basic_string; typedef basic_string string; template <typename T> class vector {}; void g() { vector<string> v; f(v); } } Old message: ---------------- test.cc:15:3: error: no matching function for call to 'f' f(&v); ^ test.cc:7:6: note: candidate function not viable: no known conversion from 'vector<string>' to 'vector<string>' for 1st argument void f(vector<string> v); ^ 1 error generated. New message: --------------- test.cc:15:3: error: no matching function for call to 'f' f(v); ^ test.cc:7:6: note: candidate function not viable: no known conversion from 'vector<string>' (aka 'std::vector<std::basic_string>') to 'vector<string>' (aka 'std::vector<versa_string>') for 1st argument void f(vector<string> v); ^ 1 error generated. llvm-svn: 134904 |
||
---|---|---|
.. | ||
Inputs | ||
caret-diags-macros.c | ||
caret-diags-scratch-buffer.c | ||
diag-aka-types.cpp | ||
diag-format.c | ||
diag-mapping.c | ||
diag-mapping2.c | ||
emit-html-insert.c | ||
emit-html.c | ||
include-stack-for-note-flag.cpp | ||
macro-backtrace-limit.c | ||
message-length.c | ||
predefines.c | ||
remap-file.c | ||
tabstop.c | ||
verify.c | ||
warn-in-system-header.c | ||
warn-in-system-header.h | ||
working-directory.c |