summaryrefslogtreecommitdiffstats
path: root/clang/test/SemaCXX/virtual-base-used.cpp
Commit message (Collapse)AuthorAgeFilesLines
* Switch from using a DiagnosticTrap and a note for "while defining a specialRichard Smith2017-05-251-14/+8
| | | | | | | | | | | | | | | | | | | | | | | member function" context notes to registering an entry on the context stack. Also reorder the steps within defining special members to be consistent. This has a few benefits: if multiple diagnostics are produced while checking such a member, the note is now attached to the first such diagnostic rather than the last, this prepares us for persisting these diagnostics between the point at which we require the implicit instantiation of a template and the point at which that instantiation is actually performed, and this fixes some cases where we would fail to produce a full note stack leading back to user code in the case of such a diagnostic. The reordering exposed a case where we could recursively attempt to define a defaulted destructor while we're already defining one (and other such cases also appear to be possible, with or without this change), so this change also reuses the "willHaveBody" flag on function declarations to track that we're in the middle of synthesizing a body for the function and bails out if we try to define a function that we're already defining. llvm-svn: 303930
* Add context note to diagnostics that occur while declaring an implicit ↵Richard Smith2017-02-231-2/+3
| | | | | | special member function. llvm-svn: 296020
* [Lit Test] Make tests C++11 compatible - Microsoft diagnosticsCharles Li2017-02-061-31/+157
| | | | | | Differential Revision: https://reviews.llvm.org/D29520 llvm-svn: 294225
* Remove the -cxx-abi command-line flag.Hans Wennborg2014-01-141-2/+2
| | | | | | | | | | | | | | | This makes the C++ ABI depend entirely on the target: MS ABI for -win32 triples, Itanium otherwise. It's no longer possible to do weird combinations. To be able to run a test with a specific ABI without constraining it to a specific triple, new substitutions are added to lit: %itanium_abi_triple and %ms_abi_triple can be used to get the current target triple adjusted to the desired ABI. For example, if the test suite is running with the i686-pc-win32 target, %itanium_abi_triple will expand to i686-pc-mingw32. Differential Revision: http://llvm-reviews.chandlerc.com/D2545 llvm-svn: 199250
* Update tests in preparation for using the MS ABI for Win32 targetsHans Wennborg2014-01-131-1/+48
| | | | | | | | | | In preparation for making the Win32 triple imply MS ABI mode, make all tests pass in this mode, or make them use the Itanium mode explicitly. Differential Revision: http://llvm-reviews.chandlerc.com/D2401 llvm-svn: 199130
* Fix some confusing diagnostic wording. s/implicit default/implicit/ if we'reRichard Smith2013-06-131-4/+4
| | | | | | not actually talking about a default constructor. llvm-svn: 183885
* Make this test check a few more cases which didn't work correctly beforeEli Friedman2010-08-081-1/+27
| | | | | | r110526. llvm-svn: 110540
* PR7800: both virtual and non-virtual bases must be marked as used for VTTs.Eli Friedman2010-08-071-0/+16
llvm-svn: 110526
OpenPOWER on IntegriCloud