llvm-project/clang/test/CXX/stmt.stmt
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
..
stmt.dcl Properly implement C++0x [stmt.dcl]p3, which requires a scope to be 2011-06-15 03:23:34 +00:00
stmt.iter/stmt.ranged Factor out (some of) the checking for invalid forms of pointer 2011-06-27 08:02:19 +00:00
stmt.label Step #1/N of implementing support for __label__: split labels into 2011-02-17 07:39:24 +00:00
stmt.select add missing newlines at end of file. 2010-12-21 02:36:58 +00:00