summaryrefslogtreecommitdiffstats
path: root/clang/test/SemaCXX/for-range-examples.cpp
Commit message (Collapse)AuthorAgeFilesLines
* Improve the error message for attempting to build a for range loop using aRichard Trieu2013-10-111-0/+18
| | | | | | | | | function parameter that has array type. Such a parameter will be treated as a pointer type instead, resulting in a missing begin function error is a suggestion to dereference the pointer. This provides a different, more informative diagnostic as well as point to the parameter declaration. llvm-svn: 192512
* If we find an error in the range expression in a range-based for loop, and theRichard Smith2013-08-211-0/+11
| | | | | | | loop variable has a type containing 'auto', set the declaration to be invalid (because we couldn't deduce its type) to prevent follow-on errors. llvm-svn: 188853
* Started implementing variable templates. Top level declarations should be ↵Larisse Voufo2013-08-061-1/+1
| | | | | | fully supported, up to some limitations documented as FIXMEs or TODO. Static data member templates work very partially. Static data member templates of class templates need particular attention... llvm-svn: 187762
* Fix test better way.Fariborz Jahanian2012-09-191-5/+5
| | | | llvm-svn: 164234
* c: warn when an integer value comparison with anFariborz Jahanian2012-09-181-4/+4
| | | | | | | | integral expression have the obvious result. Patch reviewed by John McCall off line. // rdar://12202422 llvm-svn: 164143
* Don't assume that a valid expression for the first part of a for-statementRichard Smith2012-02-211-0/+11
| | | | | | is non-null when diagnosing a broken attempt to write a for-range-statement. llvm-svn: 151081
* A couple minor fixes to template instantiation for for-range loops.Eli Friedman2012-01-311-0/+11
| | | | llvm-svn: 149440
* Be sure to emit delayed diagnostics after parsing the declarationJohn McCall2012-01-271-0/+10
| | | | | | of a for-range variable. Fixes PR11793. llvm-svn: 149109
* 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
* Add support for C++0x's range-based for loops, as specified by the C++11 ↵Richard Smith2011-04-141-0/+150
draft standard (N3291). llvm-svn: 129541
OpenPOWER on IntegriCloud