[cxx2a] P0614R1: Support init-statements in range-based for loops.
authorRichard Smith <richard-llvm@metafoo.co.uk>
Fri, 28 Sep 2018 18:44:09 +0000 (18:44 +0000)
committerRichard Smith <richard-llvm@metafoo.co.uk>
Fri, 28 Sep 2018 18:44:09 +0000 (18:44 +0000)
commit8baa50013c86c34a58d8327c5d1a043898b86398
treec3e17acda6afd5e69242ee9dd6d330796f1c3670
parent8e90bad63d3a448ed680616b393a47d25280fd87
[cxx2a] P0614R1: Support init-statements in range-based for loops.

We don't yet support this for the case where a range-based for loop is
implicitly rewritten to an ObjC for..in statement.

llvm-svn: 343350
33 files changed:
clang/include/clang/AST/RecursiveASTVisitor.h
clang/include/clang/AST/StmtCXX.h
clang/include/clang/Basic/DiagnosticParseKinds.td
clang/include/clang/Basic/DiagnosticSemaKinds.td
clang/include/clang/Parse/Parser.h
clang/include/clang/Sema/Sema.h
clang/lib/AST/ASTImporter.cpp
clang/lib/AST/ExprConstant.cpp
clang/lib/AST/StmtCXX.cpp
clang/lib/AST/StmtPrinter.cpp
clang/lib/Analysis/CFG.cpp
clang/lib/CodeGen/CGStmt.cpp
clang/lib/CodeGen/CodeGenPGO.cpp
clang/lib/CodeGen/CoverageMappingGen.cpp
clang/lib/Parse/ParseExprCXX.cpp
clang/lib/Parse/ParseStmt.cpp
clang/lib/Parse/ParseTentative.cpp
clang/lib/Sema/SemaStmt.cpp
clang/lib/Sema/TreeTransform.h
clang/lib/Serialization/ASTReaderStmt.cpp
clang/lib/Serialization/ASTWriterStmt.cpp
clang/test/Analysis/Inputs/expected-plists/cxx-for-range.cpp.plist
clang/test/Analysis/cxx-for-range.cpp
clang/test/Analysis/scopes-cfg-output.cpp
clang/test/CodeGenCXX/cxx2a-init-statement.cpp [new file with mode: 0644]
clang/test/Import/cxx-for-range/Inputs/F.cpp
clang/test/Import/cxx-for-range/test.cpp
clang/test/PCH/cxx2a-for-init-statement.cpp [new file with mode: 0644]
clang/test/Parser/cxx2a-init-statement.cpp [new file with mode: 0644]
clang/test/SemaCXX/constant-expression-cxx2a.cpp
clang/test/SemaCXX/cxx17-compat.cpp
clang/test/SemaObjCXX/foreach.mm
clang/www/cxx_status.html