ladybird/Userland/Utilities
Nicholas-Baron c4ede38542 Everything: Add -Wnon-virtual-dtor flag
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.
2021-04-15 20:57:13 +02:00
..
adjtime.cpp Everywhere: Remove klog(), dbg() and purge all LogStream usage :^) 2021-03-12 17:29:37 +01:00
allocate.cpp
aplay.cpp
arp.cpp Everywhere: Rename ASSERT => VERIFY 2021-02-23 20:56:54 +01:00
avol.cpp
base64.cpp Everywhere: Remove klog(), dbg() and purge all LogStream usage :^) 2021-03-12 17:29:37 +01:00
basename.cpp Everywhere: Remove klog(), dbg() and purge all LogStream usage :^) 2021-03-12 17:29:37 +01:00
beep.cpp
bt.cpp bt: add source file number integration 2021-03-15 16:08:31 +01:00
cal.cpp
cat.cpp
checksum.cpp checksum: Use new format functions 2021-03-25 10:58:26 +01:00
chgrp.cpp
chmod.cpp Userland: Remove superfluous headers 2021-03-11 12:32:53 +01:00
chown.cpp
chres.cpp WindowServer: Add a "scale" parameter to the SetResolution message and plumb it through 2021-01-15 22:05:08 +01:00
chroot.cpp
clear.cpp
CMakeLists.txt Utilities: Remove the "html" program 2021-04-13 18:24:47 +02:00
copy.cpp Everywhere: Remove klog(), dbg() and purge all LogStream usage :^) 2021-03-12 17:29:37 +01:00
cp.cpp cp: Use Core::File::copy_file_or_directory 2021-02-21 18:14:29 +01:00
CppParserTest.cpp LibCpp: Store filename in ASTNodes 2021-02-20 15:53:37 +01:00
crash.cpp Everywhere: Remove klog(), dbg() and purge all LogStream usage :^) 2021-03-12 17:29:37 +01:00
cut.cpp Everywhere: Remove a bunch of redundant 'AK::' namespace prefixes 2021-02-26 16:59:56 +01:00
date.cpp Everywhere: Remove klog(), dbg() and purge all LogStream usage :^) 2021-03-12 17:29:37 +01:00
dd.cpp Utilites: Add dd 2021-03-29 11:02:02 +02:00
ddate.cpp Everywhere: Remove klog(), dbg() and purge all LogStream usage :^) 2021-03-12 17:29:37 +01:00
df.cpp df: Make 64 bit clean 2021-03-17 23:22:42 +01:00
dirname.cpp
disasm.cpp Everywhere: Remove klog(), dbg() and purge all LogStream usage :^) 2021-03-12 17:29:37 +01:00
disk_benchmark.cpp disk_benchmark: Modernize this code a little bit 2021-02-26 14:05:18 +01:00
dmesg.cpp
du.cpp Everywhere: Rename ASSERT => VERIFY 2021-02-23 20:56:54 +01:00
echo.cpp
env.cpp Userland: Add support for -S to env command 2021-04-12 14:06:24 +02:00
expr.cpp Everywhere: Remove klog(), dbg() and purge all LogStream usage :^) 2021-03-12 17:29:37 +01:00
false.cpp
fgrep.cpp Everywhere: Rename ASSERT => VERIFY 2021-02-23 20:56:54 +01:00
find.cpp Everywhere: Rename ASSERT => VERIFY 2021-02-23 20:56:54 +01:00
flock.cpp
fortune.cpp Everywhere: Remove klog(), dbg() and purge all LogStream usage :^) 2021-03-12 17:29:37 +01:00
functrace.cpp Everywhere: Remove klog(), dbg() and purge all LogStream usage :^) 2021-03-12 17:29:37 +01:00
gml-format.cpp Everywhere: Remove klog(), dbg() and purge all LogStream usage :^) 2021-03-12 17:29:37 +01:00
grep.cpp Everywhere: Rename ASSERT => VERIFY 2021-02-23 20:56:54 +01:00
gron.cpp Everywhere: Remove klog(), dbg() and purge all LogStream usage :^) 2021-03-12 17:29:37 +01:00
gunzip.cpp gunzip: Fail gracefully on bad input 2021-03-26 23:00:10 +01:00
gzip.cpp Utilities: Add gzip utility 2021-03-27 19:30:42 +01:00
head.cpp Everywhere: Remove klog(), dbg() and purge all LogStream usage :^) 2021-03-12 17:29:37 +01:00
hexdump.cpp Everywhere: Remove klog(), dbg() and purge all LogStream usage :^) 2021-03-12 17:29:37 +01:00
host.cpp Userland: Use INET_ADDRSTRLEN for inet_ntop() buffers 2021-02-09 22:58:19 +01:00
hostname.cpp
id.cpp
ifconfig.cpp Everywhere: Rename ASSERT => VERIFY 2021-02-23 20:56:54 +01:00
ini.cpp Everywhere: Remove klog(), dbg() and purge all LogStream usage :^) 2021-03-12 17:29:37 +01:00
jp.cpp jp: set input to stdin if there is no file specified and add 2021-03-24 20:34:26 +01:00
js.cpp LibJS: Make Errors fully spec compliant 2021-04-12 09:38:57 +02:00
keymap.cpp Base: Rename some keymaps to use xx-xx format where appropriate 2021-02-02 16:53:11 +01:00
kill.cpp
killall.cpp
ln.cpp
ls.cpp ls: ls will print directory name when listing multiple directories 2021-04-11 18:16:46 +02:00
lsirq.cpp Everywhere: Remove klog(), dbg() and purge all LogStream usage :^) 2021-03-12 17:29:37 +01:00
lsof.cpp Everywhere: Rename ASSERT => VERIFY 2021-02-23 20:56:54 +01:00
lspci.cpp Everywhere: Remove klog(), dbg() and purge all LogStream usage :^) 2021-03-12 17:29:37 +01:00
man.cpp Everywhere: Rename ASSERT => VERIFY 2021-02-23 20:56:54 +01:00
md.cpp
misbehaving-application.cpp Everywhere: Remove klog(), dbg() and purge all LogStream usage :^) 2021-03-12 17:29:37 +01:00
mkdir.cpp
mkfifo.cpp
mknod.cpp
mktemp.cpp LibC: Move S_* defines into <fcntl.h> 2021-04-11 09:51:20 +02:00
modload.cpp
modunload.cpp
more.cpp
mount.cpp Everywhere: Rename ASSERT => VERIFY 2021-02-23 20:56:54 +01:00
mv.cpp Everywhere: Remove klog(), dbg() and purge all LogStream usage :^) 2021-03-12 17:29:37 +01:00
nc.cpp Userland: Use uniform initialization instead of memset 2021-02-21 11:52:47 +01:00
nl.cpp
notify.cpp
nproc.cpp Userland: Add nproc utility 2021-04-12 14:06:24 +02:00
ntpquery.cpp Everywhere: Rename ASSERT => VERIFY 2021-02-23 20:56:54 +01:00
open.cpp open: Fix opening "." (again) 2021-03-07 17:39:58 +01:00
pape.cpp
passwd.cpp passwd: Drop "rpath" pledge after opening files 2021-01-22 19:39:44 +01:00
paste.cpp
pidof.cpp
ping.cpp LibC+ping: Move internet_checksum to serenity header 2021-03-31 23:42:24 +02:00
pmap.cpp Everywhere: Remove klog(), dbg() and purge all LogStream usage :^) 2021-03-12 17:29:37 +01:00
PreprocessorTest.cpp LanguageServers/Cpp: Support jumping to declaration of preprocessor 2021-03-13 10:17:02 +01:00
printf.cpp Everywhere: Rename ASSERT => VERIFY 2021-02-23 20:56:54 +01:00
pro.cpp pro: Use a rolling average for the download rate calculation 2021-01-30 14:12:14 +01:00
profile.cpp profile: Add -a option as an alias for "-p -1" (all processes) 2021-03-21 16:02:11 +01:00
ps.cpp
purge.cpp Userland: Add LibSystem and funnel all syscalls through it 2021-02-05 12:23:39 +01:00
readelf.cpp LibC: Move S_* defines into <fcntl.h> 2021-04-11 09:51:20 +02:00
readlink.cpp Everywhere: Remove klog(), dbg() and purge all LogStream usage :^) 2021-03-12 17:29:37 +01:00
realpath.cpp
reboot.cpp
rm.cpp rm: Use Core::File::remove 2021-02-21 18:14:29 +01:00
rmdir.cpp
seq.cpp
shot.cpp Utilities: Add a delay option to the "shot" utility 2021-03-27 19:24:01 +01:00
shuf.cpp Everywhere: Remove klog(), dbg() and purge all LogStream usage :^) 2021-03-12 17:29:37 +01:00
shutdown.cpp
sleep.cpp Utilities/sleep: Go back to sleep if not interrupted by SIGINT 2021-03-31 23:49:26 +02:00
sort.cpp Everywhere: Remove klog(), dbg() and purge all LogStream usage :^) 2021-03-12 17:29:37 +01:00
stat.cpp Userland: Fix printf specifiers with off_t 2021-03-17 23:22:42 +01:00
strace.cpp Everywhere: Remove klog(), dbg() and purge all LogStream usage :^) 2021-03-12 17:29:37 +01:00
su.cpp su: Drop "id" pledge after switching user 2021-01-22 19:40:30 +01:00
sync.cpp
syscall.cpp Everywhere: Remove klog(), dbg() and purge all LogStream usage :^) 2021-03-12 17:29:37 +01:00
sysctl.cpp Base: Add sysctl man page 2021-03-08 09:48:34 +01:00
tail.cpp
tar.cpp Libraries: Rename LibTar to LibArchive 2021-03-23 16:09:36 +01:00
tee.cpp LibC: Move S_* defines into <fcntl.h> 2021-04-11 09:51:20 +02:00
test_efault.cpp Everywhere: Remove klog(), dbg() and purge all LogStream usage :^) 2021-03-12 17:29:37 +01:00
test_env.cpp Everywhere: Rename ASSERT => VERIFY 2021-02-23 20:56:54 +01:00
test_io.cpp Everywhere: Remove klog(), dbg() and purge all LogStream usage :^) 2021-03-12 17:29:37 +01:00
test-bindtodevice.cpp Everywhere: Remove klog(), dbg() and purge all LogStream usage :^) 2021-03-12 17:29:37 +01:00
test-compress.cpp test-compress: Initialize byte buffer with random data 2021-03-14 21:37:29 +01:00
test-crypto.cpp Everywhere: Remove a bunch of redundant 'AK::' namespace prefixes 2021-02-26 16:59:56 +01:00
test-fuzz.cpp Utilities: Provide fuzzers as a utility in serenity 2021-02-21 22:34:09 +01:00
test-js.cpp Everything: Add -Wnon-virtual-dtor flag 2021-04-15 20:57:13 +02:00
test-pthread.cpp Everywhere: Remove klog(), dbg() and purge all LogStream usage :^) 2021-03-12 17:29:37 +01:00
test-unveil.cpp
test-web.cpp LibWeb: Set Cookie header on <script> resource requests 2021-04-15 09:46:49 +02:00
test.cpp Everywhere: Rename ASSERT => VERIFY 2021-02-23 20:56:54 +01:00
top.cpp
touch.cpp
tr.cpp
traceroute.cpp Utilities: Add simple traceroute utility 2021-03-31 23:42:24 +02:00
tree.cpp Everywhere: Remove klog(), dbg() and purge all LogStream usage :^) 2021-03-12 17:29:37 +01:00
true.cpp
truncate.cpp LibC: Move S_* defines into <fcntl.h> 2021-04-11 09:51:20 +02:00
tt.cpp
tty.cpp
umount.cpp
uname.cpp
uniq.cpp Everywhere: Remove klog(), dbg() and purge all LogStream usage :^) 2021-03-12 17:29:37 +01:00
unzip.cpp unzip: Use the new LibArchive Zip parser 2021-03-23 16:09:36 +01:00
uptime.cpp
useradd.cpp
userdel.cpp
utmpupdate.cpp Everywhere: Remove klog(), dbg() and purge all LogStream usage :^) 2021-03-12 17:29:37 +01:00
w.cpp
watch.cpp Everywhere: Rename ASSERT => VERIFY 2021-02-23 20:56:54 +01:00
wc.cpp Everywhere: Remove klog(), dbg() and purge all LogStream usage :^) 2021-03-12 17:29:37 +01:00
which.cpp Everywhere: Remove klog(), dbg() and purge all LogStream usage :^) 2021-03-12 17:29:37 +01:00
whoami.cpp
xargs.cpp Everywhere: Remove klog(), dbg() and purge all LogStream usage :^) 2021-03-12 17:29:37 +01:00
yes.cpp
zip.cpp Userland: Add simple zip utility 2021-03-23 16:09:36 +01:00