ladybird/Userland/Shell
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
..
Tests Shell: add type builtin 2021-04-13 00:02:46 +02:00
AST.cpp Shell: Place Pipe redirections at the beginning of the redirection list 2021-03-31 23:49:26 +02:00
AST.h Shell: Add support for indexing into variables 2021-03-22 13:15:08 +01:00
Builtin.cpp Shell: flush stderr and stdout when using builtins 2021-04-13 00:02:46 +02:00
CMakeLists.txt Shell: Add support for 'immediate' expressions as variable substitutions 2021-03-07 10:59:51 +01:00
Execution.h Shell: Move to Userland/Shell/ 2021-01-12 12:04:07 +01:00
Formatter.cpp Shell: Add support for indexing into variables 2021-03-22 13:15:08 +01:00
Formatter.h Shell: Add support for indexing into variables 2021-03-22 13:15:08 +01:00
Forward.h Shell: Add support for indexing into variables 2021-03-22 13:15:08 +01:00
ImmediateFunctions.cpp Shell: Add support for 'immediate' expressions as variable substitutions 2021-03-07 10:59:51 +01:00
Job.cpp Shell: Use existing job state when waitpid() returns 0 in jobs 2021-03-31 23:49:26 +02:00
Job.h Shell: Handle SIGCHLD after sending SIGCONT to job 2021-03-31 23:49:26 +02:00
main.cpp Everywhere: Remove klog(), dbg() and purge all LogStream usage :^) 2021-03-12 17:29:37 +01:00
NodeVisitor.cpp Shell: Add support for indexing into variables 2021-03-22 13:15:08 +01:00
NodeVisitor.h Everything: Add -Wnon-virtual-dtor flag 2021-04-15 20:57:13 +02:00
Parser.cpp Shell: Allow newlines between the function decl and its body 2021-04-08 10:46:39 +02:00
Parser.h Shell: Add support for indexing into variables 2021-03-22 13:15:08 +01:00
Shell.cpp Shell: Handle SIGCHLD after sending SIGCONT to job 2021-03-31 23:49:26 +02:00
Shell.h Shell: add type builtin 2021-04-13 00:02:46 +02:00
SyntaxHighlighter.cpp Everywhere: Remove klog(), dbg() and purge all LogStream usage :^) 2021-03-12 17:29:37 +01:00
SyntaxHighlighter.h LibSyntax: Make rehighlight() take Gfx::Palette as by const-reference 2021-02-11 23:52:39 +01:00