llvm-project/clang/test/Misc
Chandler Carruth d517395248 Apply patch from Richard Trieu to fix PR9548:
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
2011-07-11 17:49:21 +00:00
..
Inputs Change the include stack of "instantiated from" notes to fall under the control of f/fno-diagnostics-show-note-include-stack flags. This should help with reducing diagnostic spew from macros instantiations. 2011-05-26 20:49:16 +00:00
caret-diags-macros.c Switch the token-paste source locations inside of function style macro 2011-07-08 01:04:21 +00:00
caret-diags-scratch-buffer.c Update tests to use %clang_cc1 instead of 'clang-cc' or 'clang -cc1'. 2009-12-15 20:14:24 +00:00
diag-aka-types.cpp Apply patch from Richard Trieu to fix PR9548: 2011-07-11 17:49:21 +00:00
diag-format.c Introduce the -fdiagnostics-format=xxx option to control how Clang 2011-05-21 17:07:29 +00:00
diag-mapping.c Update tests to use %clang_cc1 instead of 'clang-cc' or 'clang -cc1'. 2009-12-15 20:14:24 +00:00
diag-mapping2.c Update tests to use %clang_cc1 instead of 'clang-cc' or 'clang -cc1'. 2009-12-15 20:14:24 +00:00
emit-html-insert.c Update tests to use %clang_cc1 instead of 'clang-cc' or 'clang -cc1'. 2009-12-15 20:14:24 +00:00
emit-html.c Update tests to use %clang_cc1 instead of 'clang-cc' or 'clang -cc1'. 2009-12-15 20:14:24 +00:00
include-stack-for-note-flag.cpp Change the include stack of "instantiated from" notes to fall under the control of f/fno-diagnostics-show-note-include-stack flags. This should help with reducing diagnostic spew from macros instantiations. 2011-05-26 20:49:16 +00:00
macro-backtrace-limit.c tests: Use %clangxx when using driver for C++, in case C++ support is disabled. 2010-06-29 16:52:24 +00:00
message-length.c Fix a bug in caret-line-pruning logic that only happens when we have a 2010-04-16 00:23:51 +00:00
predefines.c tests: Use -ffreestanding when including stdint.h, to avoid platform dependencies. 2010-09-07 22:54:28 +00:00
remap-file.c Update tests to use %clang_cc1 instead of 'clang-cc' or 'clang -cc1'. 2009-12-15 20:14:24 +00:00
tabstop.c When diagnosing suspicious precedence or assignments, move the fix-it 2010-04-14 16:09:52 +00:00
verify.c add regex support for -verify mode. You can now do things like 2010-04-28 20:02:30 +00:00
warn-in-system-header.c Don't hide #warnings in a system header, same as gcc. Fixes rdar://8495837. 2011-04-21 23:08:23 +00:00
warn-in-system-header.h Don't hide #warnings in a system header, same as gcc. Fixes rdar://8495837. 2011-04-21 23:08:23 +00:00
working-directory.c Implement -working-directory. 2010-11-03 22:45:23 +00:00