summaryrefslogtreecommitdiffstats
path: root/clang/test/SemaCXX/for-range-no-std.cpp
Commit message (Collapse)AuthorAgeFilesLines
* Better diagnostics for range-based for loops with bad range types.Sam Panzer2012-08-211-2/+2
| | | | | | | | | | | | | The old error message stating that 'begin' was an undeclared identifier is replaced with a new message explaining that the error is in the range expression, along with which of the begin() and end() functions was problematic if relevant. Additionally, if the range was a pointer type or defines operator*, attempt to dereference the range, and offer a FixIt if the modified range works. llvm-svn: 162248
* Fix tentative parsing so it knows how to handle an ambiguous ↵Eli Friedman2011-12-201-0/+5
| | | | | | for-range-declaration. PR11601. llvm-svn: 146953
* Switch to the C++11 warning flags in tests. David Blaikie2011-10-181-1/+1
| | | | | | Patch by Ahmed Charles! llvm-svn: 142340
* Update all tests other than Driver/std.cpp to use -std=c++11 rather thanRichard Smith2011-10-131-1/+1
| | | | | | -std=c++0x. Patch by Ahmed Charles! llvm-svn: 141900
* Advertise support for cxx_range_for as an extension in C++98 mode. Patch by ↵Richard Smith2011-09-061-0/+1
| | | | | | | | Jean-Daniel Dupas! Also provide a modicum of test coverage for ranged for in C++98. llvm-svn: 139149
* Add support for C++0x's range-based for loops, as specified by the C++11 ↵Richard Smith2011-04-141-0/+37
draft standard (N3291). llvm-svn: 129541
OpenPOWER on IntegriCloud