[LLVMbugs] [Bug 12155] New: It would be useful to mark a virtual method as "must be overridden"
bugzilla-daemon at llvm.org
bugzilla-daemon at llvm.org
Thu Mar 1 10:44:17 PST 2012
http://llvm.org/bugs/show_bug.cgi?id=12155
Bug #: 12155
Summary: It would be useful to mark a virtual method as "must
be overridden"
Product: clang
Version: unspecified
Platform: PC
OS/Version: All
Status: NEW
Severity: enhancement
Priority: P
Component: C++
AssignedTo: unassignedclangbugs at nondot.org
ReportedBy: bzbarsky at mit.edu
CC: dgregor at apple.com, llvmbugs at cs.uiuc.edu
Classification: Unclassified
It's often useful to have a virtual method on a class that's not pure virtual
but that all subclasses need to override. A typical example would be a "how
much memory am I using?" method.
It would be nice to be able to annotate such methods so that clang warns when
they're not overridden by a subclass.
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
More information about the llvm-bugs
mailing list