[c++20] Implement P1009R2: allow omitting the array bound in an array
authorRichard Smith <richard-llvm@metafoo.co.uk>
Mon, 6 May 2019 03:47:15 +0000 (03:47 +0000)
committerRichard Smith <richard-llvm@metafoo.co.uk>
Mon, 6 May 2019 03:47:15 +0000 (03:47 +0000)
commitb9fb121a62de69686dc193d32cba680a1a645277
tree5ae91995df8eb4264fd2fa71fe3ef48a8e95d160
parent9dd6537b3acf98c942cdb020c6ea26d9af309eb3
[c++20] Implement P1009R2: allow omitting the array bound in an array
new expression.

This was voted into C++20 as a defect report resolution, so we
retroactively apply it to all prior language modes (though it can never
actually be used before C++11 mode).

llvm-svn: 360006
19 files changed:
clang/include/clang/AST/ExprCXX.h
clang/include/clang/AST/Stmt.h
clang/include/clang/ASTMatchers/ASTMatchers.h
clang/include/clang/Basic/DiagnosticSemaKinds.td
clang/include/clang/Sema/Sema.h
clang/lib/AST/ASTImporter.cpp
clang/lib/AST/ExprCXX.cpp
clang/lib/AST/StmtPrinter.cpp
clang/lib/Analysis/CFG.cpp
clang/lib/CodeGen/CGExprCXX.cpp
clang/lib/Parse/ParseExprCXX.cpp
clang/lib/Sema/SemaExprCXX.cpp
clang/lib/Sema/TreeTransform.h
clang/lib/StaticAnalyzer/Checkers/MallocChecker.cpp
clang/test/CodeGenCXX/new-array-init.cpp
clang/test/PCH/cxx-exprs.cpp
clang/test/SemaCXX/new-delete.cpp
clang/tools/libclang/CIndex.cpp
clang/www/cxx_status.html