[PATCH] Warn on zero-sized structures inside extern "C" block (PR5065)
Serge Pavlov
sepavloff at gmail.com
Tue Nov 12 08:35:34 PST 2013
sepavloff added you to the CC list for the revision "Warn on zero-sized structures inside extern "C" block (PR5065)".
Hi rsmith,
This patch adds 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.
http://llvm-reviews.chandlerc.com/D2151
Files:
include/clang/AST/DeclBase.h
include/clang/Basic/DiagnosticGroups.td
include/clang/Basic/DiagnosticSemaKinds.td
lib/AST/Decl.cpp
lib/AST/DeclBase.cpp
lib/Sema/SemaDecl.cpp
test/CXX/basic/basic.lookup/basic.lookup.argdep/p2.cpp
test/SemaCXX/extern-c.cpp
test/SemaCXX/storage-class.cpp
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D2151.1.patch
Type: text/x-patch
Size: 9680 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20131112/698aff3d/attachment.bin>
More information about the cfe-commits
mailing list