clang/test/CXX/temp
Chandler Carruth 13b21be065 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.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@133906 91177308-0d34-0410-b5e6-96231b3b80d8
2011-06-27 08:02:19 +00:00
..
temp.arg Implement C++0x [temp.arg.template]p3, which allows slightly fuzzy 2011-01-13 00:08:50 +00:00
temp.decls Diagnose unexpanded parameter packs in return statements. This 2011-05-20 15:32:55 +00:00
temp.fct.spec Accept no-return stripping conversions for pointer type arguments after 2011-06-18 01:19:03 +00:00
temp.names Reinstate r104117, Chandler Carruth's change that "[provides] a naming 2010-05-20 20:58:56 +00:00
temp.param When checking the instantiation of a default template argument against 2011-06-03 02:59:40 +00:00
temp.res Implement support for C++0x alias templates. 2011-05-05 21:57:07 +00:00
temp.spec Factor out (some of) the checking for invalid forms of pointer 2011-06-27 08:02:19 +00:00
temp.type Implement support for C++0x alias templates. 2011-05-05 21:57:07 +00:00