summaryrefslogtreecommitdiffstats
path: root/clang/test/Parser/cxx-reference.cpp
Commit message (Collapse)AuthorAgeFilesLines
* [Lit Test] Updated 20 Lit tests to be C++11 compatible.Charles Li2015-12-101-1/+6
| | | | | | | | This is the 5th Lit test patch. Expanded expected diagnostics to vary by C++ dialect. Expanded RUN line to: default, C++98/03 and C++11. llvm-svn: 255196
* PR13110: Add a -Wignored-qualifiers warning when ignoring a const, volatile, orRichard Smith2014-02-191-1/+1
| | | | | | _Atomic qualifier applied to a reference type. llvm-svn: 201620
* Switch diagnostic text from "C++0x" over to "C++11".Douglas Gregor2011-10-121-1/+1
| | | | | | | | We'd also like for "C++11" or "c++11" to be used for the warning groups, but without removing the old warning flags. Patches welcome; I've run out of time to work on this today. llvm-svn: 141801
* Downgrade the error about rvalue references to an extension warningDouglas Gregor2011-01-251-1/+1
| | | | | | | | and turn on __has_feature(cxx_rvalue_references). The core rvalue references proposal seems to be fully implemented now, pending lots more testing. llvm-svn: 124169
* Update tests to use %clang_cc1 instead of 'clang-cc' or 'clang -cc1'.Daniel Dunbar2009-12-151-1/+1
| | | | | | | | | - This is designed to make it obvious that %clang_cc1 is a "test variable" which is substituted. It is '%clang_cc1' instead of '%clang -cc1' because it can be useful to redefine what gets run as 'clang -cc1' (for example, to set a default target). llvm-svn: 91446
* Rename clang to clang-cc.Daniel Dunbar2009-03-241-1/+1
| | | | | | Tests and drivers updated, still need to shuffle dirs. llvm-svn: 67602
* Recognize rvalue references in C++03, but complain about them. This leads to ↵Sebastian Redl2009-03-231-0/+2
| | | | | | far better error recovery. llvm-svn: 67495
* Almost complete implementation of rvalue references. One bug, and a few ↵Sebastian Redl2009-03-161-6/+1
| | | | | | unclear areas. Maybe Doug can shed some light on some of the fixmes. llvm-svn: 67059
* Parser support for rvalue references.Sebastian Redl2009-03-151-1/+6
| | | | llvm-svn: 67033
* Implement initialization of a reference (C++ [dcl.init.ref]) as partDouglas Gregor2008-10-291-3/+5
| | | | | | | | | | | | | | | | | | | of copy initialization. Other pieces of the puzzle: - Try/Perform-ImplicitConversion now handles implicit conversions that don't involve references. - Try/Perform-CopyInitialization uses CheckSingleAssignmentConstraints for C. PerformCopyInitialization is now used for all argument passing and returning values from a function. - Diagnose errors with declaring references and const values without an initializer. (Uses a new Action callback, ActOnUninitializedDecl). We do not yet have implicit conversion sequences for reference binding, which means that we don't have any overloading support for reference parameters yet. llvm-svn: 58353
* rename -parse-ast-print to -ast-printChris Lattner2007-10-111-1/+1
| | | | | | | rename -parse-ast-dump to -ast-dump remove -parse-ast, which is redundant with -fsyntax-only llvm-svn: 42852
* Removed option "-parse-ast-check" from clang driver. This is now implementedTed Kremenek2007-09-261-1/+1
| | | | | | | | | | | | using "-parse-ast -verify". Updated all test cases (using a sed script) that invoked -parse-ast-check to now use -parse-ast -verify. Fixed a bug where using "-verify" instead of "-parse-ast-check" would not correctly create the DiagClient needed to accumulate diagnostics. llvm-svn: 42365
* Submitted by: Bill WendlingBill Wendling2007-06-291-2/+1
| | | | | | - The && at the end was causing this to fail. Removed. llvm-svn: 39709
* Submitted by: Bill WendlingBill Wendling2007-06-271-7/+6
| | | | | | - Converted to use the -parse-ast-check flag. llvm-svn: 39681
* this testcase has errors, we expect clang to reject itChris Lattner2007-06-081-1/+1
| | | | llvm-svn: 39613
* Add const/volatile badnessBill Wendling2007-06-031-1/+14
| | | | llvm-svn: 39579
* Bug #:Bill Wendling2007-05-271-0/+6
Submitted by: Bill Wendling Reviewed by: C++ references testcase. llvm-svn: 39497
OpenPOWER on IntegriCloud