ladybird/Userland
Lenny Maiorani e6f907a155 AK: Simplify constructors and conversions from nullptr_t
Problem:
- Many constructors are defined as `{}` rather than using the ` =
  default` compiler-provided constructor.
- Some types provide an implicit conversion operator from `nullptr_t`
  instead of requiring the caller to default construct. This violates
  the C++ Core Guidelines suggestion to declare single-argument
  constructors explicit
  (https://isocpp.github.io/CppCoreGuidelines/CppCoreGuidelines#c46-by-default-declare-single-argument-constructors-explicit).

Solution:
- Change default constructors to use the compiler-provided default
  constructor.
- Remove implicit conversion operators from `nullptr_t` and change
  usage to enforce type consistency without conversion.
2021-01-12 09:11:45 +01:00
..
DynamicLoader Everywhere: Replace a bundle of dbg with dbgln. 2021-01-09 21:11:09 +01:00
Tests Everywhere: Replace a bundle of dbg with dbgln. 2021-01-09 21:11:09 +01:00
adjtime.cpp Userland: Add an "adjtime" utility 2020-11-10 19:03:08 +01:00
allocate.cpp Everywhere: Switch from (void) to [[maybe_unused]] (#4473) 2020-12-21 00:09:48 +01:00
aplay.cpp Applications+Userland: Switch to new Audio::Loader API 2020-12-02 16:31:30 +01:00
arp.cpp Everywhere: Add missing <AK/ByteBuffer.h> includes 2020-11-15 13:11:21 +01:00
avol.cpp Userland: Use Core::ArgsParser for 'avol' 2020-08-06 20:41:13 +02:00
base64.cpp base64: Fix not outputting all decoded data 2020-11-22 16:07:00 +01:00
basename.cpp Userland: Use Core::ArgsParser for 'basename' 2020-08-06 20:41:13 +02:00
beep.cpp Userland: Add beep utility 2020-12-16 17:29:28 +01:00
cal.cpp LibC: Fix some incorrect printf usages 2020-12-26 10:05:50 +01:00
cat.cpp Userland: Write some '--help' descriptions where appropriate 2020-12-06 00:06:53 +01:00
checksum.cpp LibCore: Rename File::ShouldCloseFile{Description => Descriptor} 2020-10-25 13:59:41 +01:00
chgrp.cpp Userland: Write some '--help' descriptions where appropriate 2020-12-06 00:06:53 +01:00
chmod.cpp Everywhere: Fix more typos 2020-10-03 12:36:49 +02:00
chown.cpp chown: Don't allow "invalid" uid/gid specs (#2596) 2020-06-21 09:54:07 +02:00
chroot.cpp Userland: Write some '--help' descriptions where appropriate 2020-12-06 00:06:53 +01:00
clear.cpp clear: Use pledge() 2020-02-18 11:35:47 +01:00
CMakeLists.txt Userland: Add gml-format 2021-01-03 22:12:08 +01:00
copy.cpp Everywhere: Replace a bundle of dbg with dbgln. 2021-01-09 21:11:09 +01:00
cp.cpp Userland: Rename cp's "-r" flag to "-R" 2021-01-07 20:00:39 +01:00
crash.cpp Everywhere: Convert a bunch of dbgprintf() to dbgln() 2021-01-10 10:02:20 +01:00
cut.cpp cut: Accept input from stdin if no files are given 2020-07-03 19:30:13 +02:00
date.cpp date: Use ArgsParser and add ISO8601 / RFC3339 / RFC5322 output formats 2021-01-07 20:17:44 +01:00
ddate.cpp Userland: Add ddate utility 2021-01-08 09:42:43 +01:00
df.cpp Everywhere: Switch from (void) to [[maybe_unused]] (#4473) 2020-12-21 00:09:48 +01:00
dirname.cpp AK: Eradicate the uses of out(). 2020-10-24 12:56:25 +02:00
disasm.cpp AK: Make MappedFile heap-allocated and ref-counted 2021-01-10 16:49:13 +01:00
disk_benchmark.cpp Userland: Mark compilation-unit-only functions as static 2020-08-12 20:40:59 +02:00
dmesg.cpp Everywhere: Switch from (void) to [[maybe_unused]] (#4473) 2020-12-21 00:09:48 +01:00
du.cpp Userland: Write some '--help' descriptions where appropriate 2020-12-06 00:06:53 +01:00
echo.cpp Userland: Add support for the '-n' flag to 'echo' 2020-07-30 18:47:41 +02:00
env.cpp LibC: stdlib: Add clearenv() function 2020-12-17 19:39:56 +01:00
expr.cpp AK: Simplify constructors and conversions from nullptr_t 2021-01-12 09:11:45 +01:00
false.cpp Meta: Add license header to source files 2020-01-18 09:45:54 +01:00
fgrep.cpp Meta: Add license header to source files 2020-01-18 09:45:54 +01:00
find.cpp AK: Simplify constructors and conversions from nullptr_t 2021-01-12 09:11:45 +01:00
flock.cpp Everywhere: Replace some uses of fork/exec with posix_spawn 2020-06-29 12:04:27 +02:00
functrace.cpp Kernel: Add dedicated "ptrace" pledge promise 2021-01-11 22:32:59 +01:00
gml-format.cpp Userland: Add gml-format 2021-01-03 22:12:08 +01:00
grep.cpp Userland: Make grep exit after hitting EOF on stdin 2020-12-24 20:48:54 +01:00
gron.cpp Userland: Write some '--help' descriptions where appropriate 2020-12-06 00:06:53 +01:00
gunzip.cpp Everywhere: Fix incorrect uses of String::format and StringBuilder::appendf 2021-01-11 21:06:32 +01:00
head.cpp Userland: Write some '--help' descriptions where appropriate 2020-12-06 00:06:53 +01:00
hexdump.cpp LibCore: Rename identifiers that can clash with libc macros (#4127) 2020-12-22 23:37:11 +01:00
host.cpp Userland: Write some '--help' descriptions where appropriate 2020-12-06 00:06:53 +01:00
hostname.cpp Userland: Use Core::ArgsParser for 'hostname' 2020-08-06 20:41:13 +02:00
html.cpp Everywhere: Use GUI::CommonActions::make_about_action() 2021-01-04 23:51:49 +01:00
id.cpp Userland: Mark compilation-unit-only functions as static 2020-08-12 20:40:59 +02:00
ifconfig.cpp Userland: Write some '--help' descriptions where appropriate 2020-12-06 00:06:53 +01:00
ini.cpp Userland: Add "ini" command to read and write .ini config files 2020-07-11 23:56:33 +02:00
jp.cpp jp: Remove trailing comma at end of object/array to make output valid JSON 2020-12-14 20:25:01 +01:00
js.cpp LibJS: Remove hand-rolled Object is_foo() helpers in favor of RTTI 2021-01-01 17:46:39 +01:00
keymap.cpp keymap: Add copyright header 2020-06-18 23:00:19 +02:00
kill.cpp AK: Rename new_out to out and new_warn to warn. 2020-11-09 16:21:29 +01:00
killall.cpp LibCore: Report error condition when reading process statistics failed 2021-01-03 22:12:19 +01:00
ln.cpp ln: Make the 'path' argument optional 2020-12-16 23:26:35 +01:00
ls.cpp Userland: Include hard link count in "ls -l" output 2021-01-07 08:22:10 +01:00
lsirq.cpp Everywhere: Switch from (void) to [[maybe_unused]] (#4473) 2020-12-21 00:09:48 +01:00
lsof.cpp Everywhere: Replace a bundle of dbg with dbgln. 2021-01-09 21:11:09 +01:00
lspci.cpp Everywhere: Switch from (void) to [[maybe_unused]] (#4473) 2020-12-21 00:09:48 +01:00
man.cpp Everywhere: Replace a bundle of dbg with dbgln. 2021-01-09 21:11:09 +01:00
md.cpp Everywhere: Replace a bundle of dbg with dbgln. 2021-01-09 21:11:09 +01:00
misbehaving-application.cpp Everywhere: Replace a bundle of dbg with dbgln. 2021-01-09 21:11:09 +01:00
mkdir.cpp AK: Rename FileSystemPath -> LexicalPath 2020-05-26 14:35:10 +02:00
mkfifo.cpp Userland: add mkfifo(1) 2020-07-19 11:46:37 +02:00
mknod.cpp Everywhere: Redundant inline specifier on constexpr functions (#3807) 2020-10-20 18:08:13 +02:00
modload.cpp Userland: Use Core::ArgsParser for 'modload' 2020-08-06 20:41:13 +02:00
modunload.cpp Userland: Use Core::ArgsParser for 'modunload' 2020-08-06 20:41:13 +02:00
more.cpp Everywhere: Switch from (void) to [[maybe_unused]] (#4473) 2020-12-21 00:09:48 +01:00
mount.cpp Everywhere: Replace a bundle of dbg with dbgln. 2021-01-09 21:11:09 +01:00
mv.cpp Userland: Make mv capable of moving multiple files 2020-11-29 10:14:43 +01:00
nc.cpp Userland: Write some '--help' descriptions where appropriate 2020-12-06 00:06:53 +01:00
nl.cpp LibCore: Remove leading C from filenames 2020-02-06 15:04:03 +01:00
notify.cpp LibGUI: Make GUI::Application a Core::Object 2020-07-04 14:05:57 +02:00
ntpquery.cpp Everywhere: Re-format with clang-format-11 2020-12-31 21:51:00 +01:00
open.cpp open: Mention full URL in 'Failed to open' error message 2020-12-24 10:25:18 +01:00
pape.cpp LibGUI: Make GUI::Application a Core::Object 2020-07-04 14:05:57 +02:00
passwd.cpp LibCore: Use OSError in get_password() return type 2021-01-10 16:48:43 +01:00
paste.cpp paste: Don't read past clipboard data buffer size 2020-12-27 01:11:42 +01:00
pidof.cpp LibCore: Report error condition when reading process statistics failed 2021-01-03 22:12:19 +01:00
ping.cpp Userland: Basic statistics for ping 2020-11-10 12:06:04 +01:00
pmap.cpp Userland: Add pmap utility 2020-12-24 13:22:24 +01:00
printf.cpp AK: Remove custom %b format string specifier 2020-12-25 17:04:28 +01:00
pro.cpp Everywhere: Convert a bunch of dbgprintf() to dbgln() 2021-01-10 10:02:20 +01:00
profile.cpp Everywhere: Replace a bundle of dbg with dbgln. 2021-01-09 21:11:09 +01:00
ps.cpp LibCore: Report error condition when reading process statistics failed 2021-01-03 22:12:19 +01:00
purge.cpp Userland: Use Core::ArgsParser for 'purge' 2020-08-06 20:41:13 +02:00
readelf.cpp AK: Make MappedFile heap-allocated and ref-counted 2021-01-10 16:49:13 +01:00
readlink.cpp Userland: Add readlink(1) 2020-06-17 15:02:03 +02:00
realpath.cpp Userland: Write some '--help' descriptions where appropriate 2020-12-06 00:06:53 +01:00
reboot.cpp Meta+Userland: Make clang-format-10 clean 2020-09-25 21:18:17 +02:00
rm.cpp Userland: Add -v verbose flag to 'rm' 2020-11-17 09:40:03 +01:00
rmdir.cpp Userland: Use Core::ArgsParser for 'rmdir' 2020-08-06 20:41:13 +02:00
seq.cpp LibC: Fix some incorrect printf usages 2020-12-26 10:05:50 +01:00
shutdown.cpp LibCore: Remove leading C from filenames 2020-02-06 15:04:03 +01:00
sleep.cpp Userland: Fix a signal race condition 2020-09-10 16:00:11 +02:00
sort.cpp Everywhere: Switch from (void) to [[maybe_unused]] (#4473) 2020-12-21 00:09:48 +01:00
stat.cpp Kernel+LibC: Fix various build issues introduced by ssize_t 2020-05-23 15:27:33 +02:00
strace.cpp strace: Use pledge() 2021-01-11 22:36:09 +01:00
su.cpp LibCore: Use OSError in get_password() return type 2021-01-10 16:48:43 +01:00
sync.cpp Meta: Add license header to source files 2020-01-18 09:45:54 +01:00
syscall.cpp Kernel: Tidy up the syscalls list by reorganizing the enumerator macro 2020-08-04 18:17:16 +02:00
sysctl.cpp Userland: Write some '--help' descriptions where appropriate 2020-12-06 00:06:53 +01:00
tail.cpp Userland: Write some '--help' descriptions where appropriate 2020-12-06 00:06:53 +01:00
tar.cpp LibCore: Rename identifiers that can clash with libc macros (#4127) 2020-12-22 23:37:11 +01:00
tee.cpp AK: Make Vector use size_t for its size and capacity 2020-02-25 14:52:35 +01:00
test-bindtodevice.cpp Test: Mark compilation-unit-only functions as static 2020-08-12 20:40:59 +02:00
test-compress.cpp AK: Remove redundant compare() functions. 2021-01-02 01:37:22 +01:00
test-crypto.cpp Everywhere: Replace a bundle of dbg with dbgln. 2021-01-09 21:11:09 +01:00
test-gfx-font.cpp LibGfx: Introduce provisional font interface 2020-12-31 23:40:27 +01:00
test-js.cpp Everywhere: Replace a bundle of dbg with dbgln. 2021-01-09 21:11:09 +01:00
test-pthread.cpp LibThread: Improve semantics of Thread::join, and remove Thread::quit. 2021-01-01 23:01:48 +01:00
test-unveil.cpp Kernel: Implement unveil() as a prefix-tree 2020-12-26 11:54:54 +01:00
test-web.cpp Everywhere: Replace a bundle of dbg with dbgln. 2021-01-09 21:11:09 +01:00
test.cpp AK: Simplify constructors and conversions from nullptr_t 2021-01-12 09:11:45 +01:00
test_efault.cpp Meta+Userland: Make clang-format-10 clean 2020-09-25 21:18:17 +02:00
test_env.cpp LibC: Add tests for getenv, setenv, putenv 2020-08-01 16:46:04 +02:00
test_io.cpp AK: Eradicate calls to warn(). 2020-10-25 18:52:51 +01:00
top.cpp LibCore: Report error condition when reading process statistics failed 2021-01-03 22:12:19 +01:00
touch.cpp Userland: Write some '--help' descriptions where appropriate 2020-12-06 00:06:53 +01:00
tr.cpp Meta+Userland: Make clang-format-10 clean 2020-09-25 21:18:17 +02:00
tree.cpp AK: Rename new_out to out and new_warn to warn. 2020-11-09 16:21:29 +01:00
true.cpp Meta: Add license header to source files 2020-01-18 09:45:54 +01:00
truncate.cpp AK: Make string-to-number conversion helpers return Optional 2020-06-12 21:28:55 +02:00
tt.cpp LibPthread: Return errors as positive return values 2020-12-12 21:28:12 +01:00
tty.cpp Meta: Add license header to source files 2020-01-18 09:45:54 +01:00
umount.cpp LibCore: Remove leading C from filenames 2020-02-06 15:04:03 +01:00
uname.cpp Userland: Use Core::ArgsParser for 'uname' 2020-08-06 20:41:13 +02:00
uniq.cpp Userland/uniq: Add uniq utility 2020-10-25 14:37:39 +01:00
unzip.cpp AK: Make MappedFile heap-allocated and ref-counted 2021-01-10 16:49:13 +01:00
uptime.cpp uptime: Use pledge() 2020-02-18 13:29:54 +01:00
useradd.cpp useradd: Use pledge() 2021-01-12 08:58:59 +01:00
userdel.cpp userdel: Use pledge() and unveil() 2021-01-12 08:59:24 +01:00
utmpupdate.cpp Everywhere: Replace a bundle of dbg with dbgln. 2021-01-09 21:11:09 +01:00
w.cpp Everywhere: Fix incorrect uses of String::format and StringBuilder::appendf 2021-01-11 21:06:32 +01:00
watch.cpp Everywhere: Fix incorrect uses of String::format and StringBuilder::appendf 2021-01-11 21:06:32 +01:00
wc.cpp wc: Remove a memory leak. 2021-01-12 09:01:21 +01:00
which.cpp Userland: Use find_executable_in_path in which. 2020-09-16 19:39:17 +02:00
whoami.cpp whoami: Use pledge() and unveil() 2020-02-18 11:35:47 +01:00
xargs.cpp Userland: Write some '--help' descriptions where appropriate 2020-12-06 00:06:53 +01:00
yes.cpp Userland: Use Core::ArgsParser for 'yes' 2020-08-06 20:41:13 +02:00