Serge Pavlov
|
142ab06ffb
|
Added warning on structures/unions that are empty or contain only
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
|
2013-11-14 02:13:03 +00:00 |
Richard Smith
|
c7f811638f
|
Add missing diagnostic for a nested-name-specifier on a free-standing type 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
|
2013-03-18 22:52:47 +00:00 |
John McCall
|
379246d29b
|
Don't warn about the 'extern' in 'extern "C"' on a tag decl. This is
usually useless, but not always.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@128326 91177308-0d34-0410-b5e6-96231b3b80d8
|
2011-03-26 02:09:52 +00:00 |
Douglas Gregor
|
66dd939499
|
When checking whether to diagnose an initialized "extern" variable,
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
|
2010-04-22 14:36:26 +00:00 |
Douglas Gregor
|
63c323d758
|
Only suppress the "extern variable has an initializer" warning when the extern entity being initialized is const.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@101821 91177308-0d34-0410-b5e6-96231b3b80d8
|
2010-04-19 22:34:40 +00:00 |
Douglas Gregor
|
41b1d6ba40
|
Disable the "'extern' variable has an initializer" warning in C++,
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
|
2010-04-19 21:31:25 +00:00 |