summaryrefslogtreecommitdiffstats
path: root/clang/test/SemaCXX/cxx0x-compat.cpp
Commit message (Collapse)AuthorAgeFilesLines
* Add missing -Wc++11-compat / -Wc++14-compat warnings for:Richard Smith2018-08-301-58/+0
| | | | | | | | * generic lambdas * return type deduction * class template argument deduction llvm-svn: 341098
* Fix backwards warning for use of C++17 ↵Richard Smith2017-10-141-2/+5
| | | | | | attributes-on-namespaces-and-enumerators feature. llvm-svn: 315784
* Replace remaining user-visible mentions of C++1z with C++17.Richard Smith2017-08-131-4/+4
| | | | llvm-svn: 310804
* [c++1z] N4295: fold-expressions.Richard Smith2014-11-081-0/+6
| | | | | | | | | | | | | | | | This is a new form of expression of the form: (expr op ... op expr) where one of the exprs is a parameter pack. It expands into (expr1 op (expr2onwards op ... op expr)) (and likewise if the pack is on the right). The non-pack operand can be omitted; in that case, an empty pack gives a fallback value or an error, depending on the operator. llvm-svn: 221573
* C++1y is now C++14!Aaron Ballman2014-08-191-1/+1
| | | | | | Changes diagnostic options, language standard options, diagnostic identifiers, diagnostic wording to use c++14 instead of c++1y. It also modifies related test cases to use the updated diagnostic wording. llvm-svn: 215982
* [C++1z] Implement N3928: message in static_assert is optional.Richard Smith2014-06-201-1/+2
| | | | llvm-svn: 211394
* Add compat/extension warnings for init captures.Richard Smith2013-09-281-0/+9
| | | | llvm-svn: 191609
* Implement C++11 [lex.ext]p10 for string and character literals: a ud-suffix notRichard Smith2012-03-081-3/+3
| | | | | | | | | | | | | | | | | | starting with an underscore is ill-formed. Since this rule rejects programs that were using <inttypes.h>'s macros, recover from this error by treating the ud-suffix as a separate preprocessing-token, with a DefaultError ExtWarn. The approach of treating such cases as two tokens is under discussion for standardization, but is in any case a conforming extension and allows existing codebases to keep building while the committee makes up its mind. Reword the warning on the definition of literal operators not starting with underscores (which are, strangely, legal) to more explicitly state that such operators can't be called by literals. Remove the special-case diagnostic for hexfloats, since it was both triggering in the wrong cases and incorrect. llvm-svn: 152287
* Add -Wc++11-compat warning for string and character literals followed byRichard Smith2012-03-071-0/+10
| | | | | | | identifiers, in cases where those identifiers would be treated as user-defined literal suffixes in C++11. llvm-svn: 152198
* Switch to the C++11 warning flags in tests. David Blaikie2011-10-181-1/+1
| | | | | | Patch by Ahmed Charles! llvm-svn: 142340
* Add -Wc++11-compat warning for an inline specifier on an explicit instantiation.Richard Smith2011-10-181-0/+2
| | | | llvm-svn: 142333
* Refactor the checking for explicit template instantiations being performed inRichard Smith2011-10-181-5/+8
| | | | | | | | | the right namespace in C++11 mode. Teach the code to prefer the 'must be in precisely this namespace' diagnostic whenever that's true, and fix a defect which resulted in the -Wc++11-compat warning in C++98 mode sometimes being omitted. llvm-svn: 142329
* Switch diagnostic text from "C++0x" over to "C++11".Douglas Gregor2011-10-121-3/+3
| | | | | | | | 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
* Add more testing for -Wc++0x-compat warnings.Richard Smith2011-10-111-0/+24
llvm-svn: 141685
OpenPOWER on IntegriCloud