summaryrefslogtreecommitdiffstats
path: root/clang/test/Parser/cxx0x-decl.cpp
Commit message (Collapse)AuthorAgeFilesLines
* PR5066: If a declarator cannot have an identifier, and cannot possibly beRichard Smith2013-07-111-0/+7
| | | | | | | | | followed by an identifier, then diagnose an identifier as being a bogus part of the declarator instead of tripping over it. Improves diagnostics for cases like std::vector<const int *p> my_vec; llvm-svn: 186061
* The 'constexpr implies const' rule for non-static member functions is gone inRichard Smith2013-04-211-1/+1
| | | | | | | | | C++1y, so stop adding the 'const' there. Provide a compatibility warning for code relying on this in C++11, with a fix-it hint. Update our lazily-written tests to add the const, except for those ones which were testing our implementation of this rule. llvm-svn: 179969
* Give this test a triple so that its use of thread_local doesn't make it fail ↵Richard Smith2013-04-131-1/+1
| | | | | | on the MSVC bot. llvm-svn: 179432
* Parsing support for thread_local and _Thread_local. We give them the sameRichard Smith2013-04-121-2/+1
| | | | | | semantics as __thread for now. llvm-svn: 179424
* Fix five more cases of tokens which can legally follow a type specifier.Richard Smith2013-01-191-0/+25
| | | | llvm-svn: 172886
* *this is const in a trailing-return-type for a constexpr member function.Richard Smith2013-01-141-0/+8
| | | | llvm-svn: 172375
* PR14855: don't silently swallow a nested-name-specifier after a type name.Richard Smith2013-01-081-0/+2
| | | | llvm-svn: 171908
* PR9903: Recover from a member functon declared with the 'typedef' specifier byRichard Smith2012-11-151-0/+5
| | | | | | | dropping the specifier, just like we do for non-member functions and function templates declared 'typedef'. Patch by Brian Brooks! llvm-svn: 168108
* DR1528: C++11 doesn't allow repeated cv-qualifiers in declarators after all.Richard Smith2012-10-171-6/+8
| | | | llvm-svn: 166152
* Recover properly after a parse error in a static_assert declaration.Richard Smith2012-09-131-0/+2
| | | | llvm-svn: 163826
* Splitting the duplicated decl spec extension warning into two: one is an ↵Aaron Ballman2012-08-281-1/+3
| | | | | | ExtWarn and the other a vanilla warning. This addresses PR13705, where const char const * wouldn't warn unless -pedantic was specified under the right conditions. llvm-svn: 162793
* Pedantic -pedantic correction. Duplicate cv-qualifiers are permitted in C++11Richard Smith2012-07-241-0/+3
| | | | | | unless they appear in a decl-specifier-seq. llvm-svn: 160688
* Add diagnostics for comma at end of enum and for extra semicolon at namespaceRichard Smith2012-07-231-2/+11
| | | | | | | | scope to -Wc++11-extensions. Move extra semicolon after member function definition diagnostic out of -pedantic, since C++ allows a single semicolon there. Keep it in -Wextra-semi, though, since it's still questionable. llvm-svn: 160618
* Fix parsing of trailing-return-type. Types are syntactically prohibited fromRichard Smith2012-03-121-0/+10
| | | | | | | | being defined here: [] () -> struct S {} does not define struct S. In passing, implement DR1318 (syntactic disambiguation of 'final'). llvm-svn: 152551
* Improve the diagnostic when a comma ends up at the end of a declarator groupRichard Smith2011-10-191-0/+8
instead of a semicolon (as sometimes happens during refactorings). When such a comma is seen at the end of a line, and is followed by something which can't possibly be a declarator (or even something which might be a plausible typo for a declarator), suggest that a semicolon was intended. llvm-svn: 142544
OpenPOWER on IntegriCloud