summaryrefslogtreecommitdiff
path: root/test/SemaCXX/storage-class.cpp
Commit message (Collapse)AuthorAge
* Added warning on structures/unions that are empty or contain onlySerge Pavlov2013-11-14
| | | | | | | | | | | 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 git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@194653 91177308-0d34-0410-b5e6-96231b3b80d8
* Add missing diagnostic for a nested-name-specifier on a free-standing type ↵Richard Smith2013-03-18
| | | | | | 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. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@177335 91177308-0d34-0410-b5e6-96231b3b80d8
* Don't warn about the 'extern' in 'extern "C"' on a tag decl. This isJohn McCall2011-03-26
| | | | | | | | usually useless, but not always. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@128326 91177308-0d34-0410-b5e6-96231b3b80d8
* When checking whether to diagnose an initialized "extern" variable,Douglas Gregor2010-04-22
| | | | | | | | look for the const on the base type rather than on the top-level type. Fixes PR6495 properly. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@102066 91177308-0d34-0410-b5e6-96231b3b80d8
* Only suppress the "extern variable has an initializer" warning when the ↵Douglas Gregor2010-04-19
| | | | | | extern entity being initialized is const. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@101821 91177308-0d34-0410-b5e6-96231b3b80d8
* Disable the "'extern' variable has an initializer" warning in C++,Douglas Gregor2010-04-19
since it makes sense there to have const extern variables. Fixes PR6495. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@101818 91177308-0d34-0410-b5e6-96231b3b80d8