mirror of
https://github.com/SerenityOS/serenity.git
synced 2025-01-26 19:32:06 -05:00
c4ede38542
This flag warns on classes which have `virtual` functions but do not have a `virtual` destructor. This patch adds both the flag and missing destructors. The access level of the destructors was determined by a two rules of thumb: 1. A destructor should have a similar or lower access level to that of a constructor. 2. Having a `private` destructor implicitly deletes the default constructor, which is probably undesirable for "interface" types (classes with only virtual functions and no data). In short, most of the added destructors are `protected`, unless the compiler complained about access. |
||
---|---|---|
.. | ||
ACPI | ||
API | ||
Arch | ||
Devices | ||
FileSystem | ||
Heap | ||
Interrupts | ||
Modules | ||
Net | ||
PCI | ||
Storage | ||
Syscalls | ||
Tasks | ||
Time | ||
TTY | ||
VM | ||
.gitignore | ||
AddressSanitizer.cpp | ||
AddressSanitizer.h | ||
Assertions.h | ||
CMakeLists.txt | ||
CMOS.cpp | ||
CMOS.h | ||
CommandLine.cpp | ||
CommandLine.h | ||
Console.cpp | ||
Console.h | ||
CoreDump.cpp | ||
CoreDump.h | ||
Debug.h.in | ||
DMI.cpp | ||
DMI.h | ||
DoubleBuffer.cpp | ||
DoubleBuffer.h | ||
Forward.h | ||
FutexQueue.cpp | ||
FutexQueue.h | ||
init.cpp | ||
IO.h | ||
KBuffer.h | ||
KBufferBuilder.cpp | ||
KBufferBuilder.h | ||
kprintf.cpp | ||
KResult.h | ||
kstdio.h | ||
KSyms.cpp | ||
KSyms.h | ||
linker.ld | ||
Lock.cpp | ||
Lock.h | ||
LockMode.h | ||
mkmap.sh | ||
Module.h | ||
Multiboot.h | ||
Panic.cpp | ||
Panic.h | ||
PerformanceEventBuffer.cpp | ||
PerformanceEventBuffer.h | ||
PhysicalAddress.h | ||
Process.cpp | ||
Process.h | ||
ProcessGroup.cpp | ||
ProcessGroup.h | ||
Random.cpp | ||
Random.h | ||
RTC.cpp | ||
RTC.h | ||
Scheduler.cpp | ||
Scheduler.h | ||
SpinLock.h | ||
StdLib.cpp | ||
StdLib.h | ||
Syscall.cpp | ||
Thread.cpp | ||
Thread.h | ||
ThreadBlockers.cpp | ||
ThreadTracer.cpp | ||
ThreadTracer.h | ||
TimerQueue.cpp | ||
TimerQueue.h | ||
UBSanitizer.cpp | ||
UBSanitizer.h | ||
UnixTypes.h | ||
UnveilNode.h | ||
UserOrKernelBuffer.cpp | ||
UserOrKernelBuffer.h | ||
VirtualAddress.h | ||
WaitQueue.cpp | ||
WaitQueue.h | ||
WorkQueue.cpp | ||
WorkQueue.h |