hanchenye-llvm-project/clang/test
Douglas Gregor c68e140657 Improve diagnostics when we fail to convert from a source type to a
destination type for initialization, assignment, parameter-passing,
etc. The main issue fixed here is that we used rather confusing
wording for diagnostics such as

t.c:2:9: warning: initializing 'char const [2]' discards qualifiers,
      expected 'char *' [-pedantic]
  char *name = __func__;
        ^      ~~~~~~~~

We're not initializing a 'char const [2]', we're initializing a 'char
*' with an expression of type 'char const [2]'. Similar problems
existed for other diagnostics in this area, so I've normalized them all
with more precise descriptive text to say what we're
initializing/converting/assigning/etc. from and to. The warning for
the code above is now:

t.c:2:9: warning: initializing 'char *' from an expression of type
      'char const [2]' discards qualifiers [-pedantic]
  char *name = __func__;
        ^      ~~~~~~~~

Fixes <rdar://problem/7447179>.

llvm-svn: 100832
2010-04-09 00:35:39 +00:00
..
ASTMerge Instead of counting totally diagnostics, split the count into a count 2010-04-07 18:47:42 +00:00
Analysis Improve diagnostics when we fail to convert from a source type to a 2010-04-09 00:35:39 +00:00
CXX Improve diagnostics when we fail to convert from a source type to a 2010-04-09 00:35:39 +00:00
CodeCompletion When code completion produces an overload set as its results (e.g., 2010-04-06 20:19:47 +00:00
CodeGen @llvm.sqrt isn't really close enough to C's sqrt to justify emitting calls 2010-04-07 08:20:20 +00:00
CodeGenCXX Eliminate excessive PCH deserialization caused by the search for 2010-04-08 15:52:03 +00:00
CodeGenObjC Implement method type encoding in the presense 2010-04-08 21:29:11 +00:00
CodeGenObjCXX Update tests to use %clang_cc1 instead of 'clang-cc' or 'clang -cc1'. 2009-12-15 20:14:24 +00:00
Coverage Revert changes r97693, r97700, and r97718. 2010-03-04 04:29:44 +00:00
Driver XFAIL the -nostdinc++ test on Windows; it doesn't look like we even have the notion of separate C and C++ paths there 2010-03-24 20:45:20 +00:00
FixIt Improve diagnostics when we fail to convert from a source type to a 2010-04-09 00:35:39 +00:00
Frontend Fix PR5982, a refacto in checking for '=' in a -D argument. 2010-01-10 00:46:21 +00:00
Headers Make sure we don't include mm_malloc.h in this test, it includes errno.h which 2010-03-26 20:17:23 +00:00
Index Fix CIndex crash on invalid code reported in <rdar://problem/7833619>. 2010-04-07 00:27:13 +00:00
Lexer At sabre's request, drop the FP bounds diagnostics down to warnings and file 2010-02-26 23:35:57 +00:00
Misc Remove this test. It is causing problems has has relatively little value 2010-03-17 16:04:04 +00:00
PCH Improve diagnostics when we fail to convert from a source type to a 2010-04-09 00:35:39 +00:00
Parser Improve diagnostics when we fail to convert from a source type to a 2010-04-09 00:35:39 +00:00
Preprocessor convert to -verify mode. 2010-04-07 18:43:41 +00:00
Rewriter Instead of counting totally diagnostics, split the count into a count 2010-04-07 18:47:42 +00:00
Sema Improve diagnostics when we fail to convert from a source type to a 2010-04-09 00:35:39 +00:00
SemaCXX Improve diagnostics when we fail to convert from a source type to a 2010-04-09 00:35:39 +00:00
SemaObjC Improve diagnostics when we fail to convert from a source type to a 2010-04-09 00:35:39 +00:00
SemaObjCXX Improve diagnostics when we fail to convert from a source type to a 2010-04-09 00:35:39 +00:00
SemaTemplate Improve diagnostics when we fail to convert from a source type to a 2010-04-09 00:35:39 +00:00
CMakeLists.txt Add test cases for r98003 and r98006. 2010-03-08 23:38:27 +00:00
Makefile Print the errors when a clang test fails instead of just listing the 2010-04-05 21:20:38 +00:00
TestRunner.sh
cxx-sections.data
lit.cfg tests: Mangle '-vg' onto the end of the triple when running under valgrind, so 2010-03-20 21:13:08 +00:00
lit.site.cfg.in
make_test_dirs.pl