llvm-project/clang/test/CXX/temp/temp.spec/temp.explicit
Chandler Carruth c933221826 Factor out (some of) the checking for invalid forms of pointer
arithmetic into a couple of common routines. Use these to make the
messages more consistent in the various contexts, especially in terms of
consistently diagnosing binary operators with invalid types on both the
left- and right-hand side. Also, improve the grammar and wording of the
messages some, handling both two pointers and two (different) types.

The wording of function pointer arithmetic diagnostics still strikes me
as poorly phrased, and I worry this makes them slightly more awkward if
more consistent. I'm hoping to fix that with a follow-on patch and test
case that will also make them more helpful when a typedef or template
type parameter makes the type completely opaque.

Suggestions on better wording are very welcome, thanks to Richard Smith
for some initial help on that front.

llvm-svn: 133906
2011-06-27 08:02:19 +00:00
..
p1-0x.cpp Update tests to use %clang_cc1 instead of 'clang-cc' or 'clang -cc1'. 2009-12-15 20:14:24 +00:00
p1-emit.cpp Template static data members can have weak_odr linkage, not just 2011-04-12 01:46:54 +00:00
p1.cpp Improve the reporting of non-viable overload candidates by noting the reason 2010-01-13 00:25:19 +00:00
p2.cpp Downgrade the warning about the use of typedefs for class template 2011-06-07 02:21:18 +00:00
p3-0x.cpp Support explicit template specialization and instantiation for members 2011-03-07 16:54:27 +00:00
p3.cpp Support explicit instantiation of function templates and members of class 2010-08-25 08:27:02 +00:00
p4.cpp Only complain about explicit instantiations following explicit 2010-04-09 21:02:29 +00:00
p5.cpp The C++98/03 standard is disturbingly silent about out-of-scope 2010-05-11 17:39:34 +00:00
p6.cpp Do not require a complete type when checking for a pointer conversion 2010-02-22 17:06:41 +00:00
p7.cpp Factor out (some of) the checking for invalid forms of pointer 2011-06-27 08:02:19 +00:00
p8.cpp Update tests to use %clang_cc1 instead of 'clang-cc' or 'clang -cc1'. 2009-12-15 20:14:24 +00:00
p9-linkage.cpp Reinstate the optimization suppressing available_externally functions 2010-07-13 06:02:28 +00:00
p9.cpp Update tests to use %clang_cc1 instead of 'clang-cc' or 'clang -cc1'. 2009-12-15 20:14:24 +00:00
p10.cpp Switch file-scope assignment initialization over to InitializationSequence. 2009-12-22 02:10:53 +00:00
p11.cpp Partial fix for PR7267 based on comments by John McCall on an earlier patch. 2010-06-28 08:39:25 +00:00
p12.cpp remove curly quotes, patch by Dimitry Andric! 2010-09-06 17:52:29 +00:00