[LLVMbugs] [Bug 21119] New: [RFE] Provide warning for C++ class without anchor method
bugzilla-daemon at llvm.org
bugzilla-daemon at llvm.org
Wed Oct 1 12:18:57 PDT 2014
http://llvm.org/bugs/show_bug.cgi?id=21119
Bug ID: 21119
Summary: [RFE] Provide warning for C++ class without anchor
method
Product: clang
Version: trunk
Hardware: All
OS: All
Status: NEW
Severity: enhancement
Priority: P
Component: C++
Assignee: unassignedclangbugs at nondot.org
Reporter: daniel at zuster.org
CC: dgregor at apple.com, llvmbugs at cs.uiuc.edu
Classification: Unclassified
LLVM's style guide requires classes with vtables to have an out-of-line anchor
method (even it requires defining an unused synthetic one).
It would be nice if Clang had a warning to identify C++ classes without a
vtable anchor. To reduce noise, it might make sense to limit this to classes
with at least one out-of-line method, and then only fire the diagnostic when an
implementation of that method is seen.
--
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20141001/25b98a40/attachment.html>
More information about the llvm-bugs
mailing list