summaryrefslogtreecommitdiffstats
path: root/clang/test/SemaCXX/storage-class.cpp
Commit message (Collapse)AuthorAgeFilesLines
* Added warning on structures/unions that are empty or contain onlySerge Pavlov2013-11-141-1/+1
| | | | | | | | | | bit fields of zero size. Warnings are generated in C++ mode and if only such type is defined inside extern "C" block. The patch fixed PR5065. Differential Revision: http://llvm-reviews.chandlerc.com/D2151 llvm-svn: 194653
* Add missing diagnostic for a nested-name-specifier on a free-standing type ↵Richard Smith2013-03-181-1/+1
| | | | | | definition. Bump some related diagnostics from warning to extension in C++, since they're errors there. Add some missing checks for function specifiers on non-function declarations. llvm-svn: 177335
* Don't warn about the 'extern' in 'extern "C"' on a tag decl. This isJohn McCall2011-03-261-0/+3
| | | | | | usually useless, but not always. llvm-svn: 128326
* When checking whether to diagnose an initialized "extern" variable,Douglas Gregor2010-04-221-0/+1
| | | | | | | look for the const on the base type rather than on the top-level type. Fixes PR6495 properly. llvm-svn: 102066
* Only suppress the "extern variable has an initializer" warning when the ↵Douglas Gregor2010-04-191-1/+2
| | | | | | extern entity being initialized is const. llvm-svn: 101821
* Disable the "'extern' variable has an initializer" warning in C++,Douglas Gregor2010-04-191-0/+2
since it makes sense there to have const extern variables. Fixes PR6495. llvm-svn: 101818
OpenPOWER on IntegriCloud