summaryrefslogtreecommitdiffstats
path: root/clang/test/SemaCXX/microsoft-new-delete.cpp
Commit message (Collapse)AuthorAgeFilesLines
* DR1295 and cleanup for P0135R1: Make our initialization code more directlyRichard Smith2016-12-091-1/+1
| | | | | | | | | | | | | | | mirror the description in the standard. Per DR1295, this means that binding a const / rvalue reference to a bit-field no longer "binds directly", and per P0135R1, this means that we materialize a temporary in reference binding after adjusting cv-qualifiers and before performing a derived-to-base cast. In C++11 onwards, this should have fixed the last case where we would materialize a temporary of the wrong type (with a subobject adjustment inside the MaterializeTemporaryExpr instead of outside), but we still have to deal with that possibility in C++98, unless we want to start using xvalues to represent materialized temporaries there too. llvm-svn: 289250
* Improve the "braces around scalar init" warning to determine whether to warnRichard Smith2015-02-121-1/+1
| | | | | | | | based on whether "redundant" braces are ever reasonable as part of the initialization of the entity, rather than whether the initialization is "top-level". In passing, add a warning flag for it. llvm-svn: 228896
* PR19729: Delete a bunch of bogus code in Sema::FindAllocationOverload. ThisRichard Smith2014-05-131-2/+24
| | | | | | | | | caused us to perform copy-initialization for the parameters of an allocation function called by a new-expression multiple times, resulting in us rejecting allocations that passed non-copyable parameters (and much worse things in MSVC compat mode, where we potentially called this function multiple times). llvm-svn: 208724
* Switching the tests to use size_t instead of unsigned int to hopefully ↵Aaron Ballman2013-05-301-1/+3
| | | | | | appease the Linux x64 build bot (take 2, forgot this test case). llvm-svn: 182907
* Add support to fallback on operator new when a placement operator new[] is ↵Aaron Ballman2013-05-301-0/+10
called for which there is no valid declaration. This fallback only happens in Microsoft compatibility mode. This patch addresses PR13164, and improves support for the WDK. llvm-svn: 182905
OpenPOWER on IntegriCloud