ladybird/Userland/Utilities
Itamar 402483ec1f LibCpp: Generalize ASTNode::dump() to support redirecting its output
Previously, ASTNode::dump() used outln() for output, which meant it
always wrote its output to stdout.

After this commit, ASTNode::dump() receives an 'output' argument (which
is stdout by default). This enables writing the output to somewhere
else.

This will be useful for testing the LibCpp Parser with the output of
ASTNode::dump.
2021-05-19 23:19:07 +02:00
..
adjtime.cpp Everything: Move to SPDX license identifiers in all files. 2021-04-22 11:22:27 +02:00
allocate.cpp Everything: Move to SPDX license identifiers in all files. 2021-04-22 11:22:27 +02:00
aplay.cpp Everything: Move to SPDX license identifiers in all files. 2021-04-22 11:22:27 +02:00
arp.cpp Utilities: Correct non-standard assert macros includes 2021-05-17 18:14:05 +01:00
avol.cpp Everything: Move to SPDX license identifiers in all files. 2021-04-22 11:22:27 +02:00
base64.cpp Utilities: Correct non-standard assert macros includes 2021-05-17 18:14:05 +01:00
basename.cpp Everything: Move to SPDX license identifiers in all files. 2021-04-22 11:22:27 +02:00
beep.cpp Everything: Move to SPDX license identifiers in all files. 2021-04-22 11:22:27 +02:00
bt.cpp Userland: Remove no-longer-needed unveil()'s of /tmp/rpc 2021-05-13 23:28:40 +02:00
cal.cpp Everything: Move to SPDX license identifiers in all files. 2021-04-22 11:22:27 +02:00
cat.cpp Utilities: Use Vector<String> positional arguments in some places 2021-04-29 11:28:01 +02:00
checksum.cpp LibCore+Everywhere: Move OpenMode out of IODevice 2021-05-12 11:00:45 +01:00
chgrp.cpp Everything: Move to SPDX license identifiers in all files. 2021-04-22 11:22:27 +02:00
chmod.cpp Everything: Move to SPDX license identifiers in all files. 2021-04-22 11:22:27 +02:00
chown.cpp Everything: Move to SPDX license identifiers in all files. 2021-04-22 11:22:27 +02:00
chres.cpp Userland: Update IPC calls to use proxies 2021-05-03 21:14:40 +02:00
chroot.cpp Everything: Move to SPDX license identifiers in all files. 2021-04-22 11:22:27 +02:00
cksum.cpp LibCore+Everywhere: Move OpenMode out of IODevice 2021-05-12 11:00:45 +01:00
clear.cpp Everything: Move to SPDX license identifiers in all files. 2021-04-22 11:22:27 +02:00
CMakeLists.txt Utilities: Rename CppParserTest => cpp-parser 2021-05-19 23:19:07 +02:00
copy.cpp Utilities: Correct non-standard assert macros includes 2021-05-17 18:14:05 +01:00
cp.cpp Everything: Move to SPDX license identifiers in all files. 2021-04-22 11:22:27 +02:00
cpp-parser.cpp LibCpp: Generalize ASTNode::dump() to support redirecting its output 2021-05-19 23:19:07 +02:00
crash.cpp Utilities: Correct non-standard assert macros includes 2021-05-17 18:14:05 +01:00
cut.cpp Everywhere: "indexes" => "indices" 2021-04-29 22:23:52 +02:00
date.cpp Userland: Fix 64-bit portability issues 2021-05-03 08:42:39 +02:00
dd.cpp dd: Add ability to use k, M, & G suffixes for block sizes 2021-05-08 10:03:31 +01:00
ddate.cpp Everything: Move to SPDX license identifiers in all files. 2021-04-22 11:22:27 +02:00
df.cpp Utilities: Correct non-standard assert macros includes 2021-05-17 18:14:05 +01:00
dirname.cpp Everything: Move to SPDX license identifiers in all files. 2021-04-22 11:22:27 +02:00
disasm.cpp Everywhere: Add missing includes for <AK/OwnPtr.h> 2021-05-19 21:36:57 +02:00
disk_benchmark.cpp Everything: Move to SPDX license identifiers in all files. 2021-04-22 11:22:27 +02:00
dmesg.cpp LibCore+Everywhere: Move OpenMode out of IODevice 2021-05-12 11:00:45 +01:00
du.cpp Utilities: Correct non-standard assert macros includes 2021-05-17 18:14:05 +01:00
echo.cpp Everything: Move to SPDX license identifiers in all files. 2021-04-22 11:22:27 +02:00
env.cpp Everything: Move to SPDX license identifiers in all files. 2021-04-22 11:22:27 +02:00
errno.cpp Utilities: Add errno utility 2021-05-15 23:51:50 +01:00
expr.cpp Utilities: Correct non-standard assert macros includes 2021-05-17 18:14:05 +01:00
false.cpp Everything: Move to SPDX license identifiers in all files. 2021-04-22 11:22:27 +02:00
fgrep.cpp Everything: Move to SPDX license identifiers in all files. 2021-04-22 11:22:27 +02:00
file.cpp LibCore+Userland: Add two more detectable formats 2021-05-18 19:57:53 +01:00
find.cpp Utilites: Make find respect lack of -L when iterating over directories 2021-05-18 08:11:42 +02:00
flock.cpp LibC: Do not include errno.h inside unistd.h 2021-05-14 22:24:02 +02:00
fortune.cpp Userland: Migrate from arc4random_uniform() to get_random_uniform() 2021-05-14 22:24:02 +02:00
functrace.cpp Userland: Fix 64-bit portability issues 2021-05-03 08:42:39 +02:00
gml-format.cpp LibCore+Everywhere: Move OpenMode out of IODevice 2021-05-12 11:00:45 +01:00
grep.cpp Utilities: Correct non-standard assert macros includes 2021-05-17 18:14:05 +01:00
gron.cpp Utilities: Correct non-standard assert macros includes 2021-05-17 18:14:05 +01:00
groups.cpp Userland: Add groups program 2021-05-05 15:12:30 +01:00
gunzip.cpp Utilities: Use Vector<String> positional arguments in some places 2021-04-29 11:28:01 +02:00
gzip.cpp Utilities: Use Vector<String> positional arguments in some places 2021-04-29 11:28:01 +02:00
head.cpp Userland: Refactor head(1) to not use stdio 2021-05-04 22:36:58 +02:00
hexdump.cpp LibCore+Everywhere: Move OpenMode out of IODevice 2021-05-12 11:00:45 +01:00
host.cpp Everything: Move to SPDX license identifiers in all files. 2021-04-22 11:22:27 +02:00
hostname.cpp Userland: Move HOST_NAME_MAX to limits.h 2021-04-27 23:06:16 +02:00
id.cpp Everywhere: Remove empty line after function body opening curly brace 2021-04-25 20:20:00 +02:00
ifconfig.cpp Utilities: Correct non-standard assert macros includes 2021-05-17 18:14:05 +01:00
ini.cpp Everywhere: Use linusg@serenityos.org for my copyright headers 2021-04-22 22:51:19 +02:00
jp.cpp Utilities: Correct non-standard assert macros includes 2021-05-17 18:14:05 +01:00
js.cpp Utilities: Correct non-standard assert macros includes 2021-05-17 18:14:05 +01:00
keymap.cpp Userland: Preserve keyboard mapping preference on reboot (#6955) 2021-05-09 15:56:03 +02:00
kill.cpp Everything: Move to SPDX license identifiers in all files. 2021-04-22 11:22:27 +02:00
killall.cpp Everything: Move to SPDX license identifiers in all files. 2021-04-22 11:22:27 +02:00
ln.cpp Everything: Move to SPDX license identifiers in all files. 2021-04-22 11:22:27 +02:00
ls.cpp Utilities: Correct non-standard assert macros includes 2021-05-17 18:14:05 +01:00
lsirq.cpp Utilities: Correct non-standard assert macros includes 2021-05-17 18:14:05 +01:00
lsof.cpp Utilities: Allow for white spaces in lsof name parsing 2021-05-19 09:13:12 +02:00
lspci.cpp LibCore+Everywhere: Move OpenMode out of IODevice 2021-05-12 11:00:45 +01:00
man.cpp Utilities: Correct non-standard assert macros includes 2021-05-17 18:14:05 +01:00
md.cpp LibCore+Everywhere: Move OpenMode out of IODevice 2021-05-12 11:00:45 +01:00
misbehaving-application.cpp Everything: Move to SPDX license identifiers in all files. 2021-04-22 11:22:27 +02:00
mkdir.cpp LibC: Do not include errno.h inside unistd.h 2021-05-14 22:24:02 +02:00
mkfifo.cpp Everything: Move to SPDX license identifiers in all files. 2021-04-22 11:22:27 +02:00
mknod.cpp Everything: Move to SPDX license identifiers in all files. 2021-04-22 11:22:27 +02:00
mktemp.cpp LibC: Remove static from function local constexpr variable 2021-05-18 08:07:21 +02:00
modload.cpp Everything: Move to SPDX license identifiers in all files. 2021-04-22 11:22:27 +02:00
modunload.cpp Everything: Move to SPDX license identifiers in all files. 2021-04-22 11:22:27 +02:00
more.cpp Everything: Move to SPDX license identifiers in all files. 2021-04-22 11:22:27 +02:00
mount.cpp Utilities: Correct non-standard assert macros includes 2021-05-17 18:14:05 +01:00
mv.cpp Utilities: Fix mv command requesting incorrect path 2021-05-08 15:22:47 +02:00
nc.cpp Everything: Move to SPDX license identifiers in all files. 2021-04-22 11:22:27 +02:00
netstat.cpp Utilities: Implement a netstat command 2021-05-15 11:27:20 +01:00
nl.cpp Everything: Move to SPDX license identifiers in all files. 2021-04-22 11:22:27 +02:00
notify.cpp Everything: Move to SPDX license identifiers in all files. 2021-04-22 11:22:27 +02:00
nproc.cpp LibCore+Everywhere: Move OpenMode out of IODevice 2021-05-12 11:00:45 +01:00
ntpquery.cpp Utilities: Correct non-standard assert macros includes 2021-05-17 18:14:05 +01:00
open.cpp Everywhere: Use linusg@serenityos.org for my copyright headers 2021-04-22 22:51:19 +02:00
pape.cpp Everything: Move to SPDX license identifiers in all files. 2021-04-22 11:22:27 +02:00
passwd.cpp LibC: Implement support for getspnam() and friends 2021-05-01 12:40:12 +02:00
paste.cpp Userland: Implement paste --watch mode 2021-05-10 19:09:53 +01:00
pathchk.cpp Everywhere: "file name" => "filename" 2021-04-29 22:16:18 +02:00
pidof.cpp Everything: Move to SPDX license identifiers in all files. 2021-04-22 11:22:27 +02:00
ping.cpp Utilities: Correct non-standard assert macros includes 2021-05-17 18:14:05 +01:00
pmap.cpp Utilities: Correct non-standard assert macros includes 2021-05-17 18:14:05 +01:00
PreprocessorTest.cpp LibCore+Everywhere: Move OpenMode out of IODevice 2021-05-12 11:00:45 +01:00
printf.cpp Utilities: Correct non-standard assert macros includes 2021-05-17 18:14:05 +01:00
pro.cpp Services: Rename ProtocolServer to RequestServer 2021-04-25 19:04:34 +02:00
profile.cpp Kernel: Generate page fault events from the kernel profiler 2021-05-19 22:51:42 +02:00
ps.cpp Everything: Move to SPDX license identifiers in all files. 2021-04-22 11:22:27 +02:00
purge.cpp Everything: Move to SPDX license identifiers in all files. 2021-04-22 11:22:27 +02:00
readelf.cpp AK+Kernel+LibELF: Remove the need for IteratorDecision::Continue 2021-05-16 10:36:52 +01:00
readlink.cpp Everything: Move to SPDX license identifiers in all files. 2021-04-22 11:22:27 +02:00
realpath.cpp Everything: Move to SPDX license identifiers in all files. 2021-04-22 11:22:27 +02:00
reboot.cpp Everything: Move to SPDX license identifiers in all files. 2021-04-22 11:22:27 +02:00
rev.cpp LibCore+Everywhere: Move OpenMode out of IODevice 2021-05-12 11:00:45 +01:00
rm.cpp Everything: Move to SPDX license identifiers in all files. 2021-04-22 11:22:27 +02:00
rmdir.cpp Userland: Make rmdir take multiple paths 2021-04-26 09:32:42 +02:00
seq.cpp Utilities: Fix const-correctness inside seq 2021-05-14 22:24:02 +02:00
shot.cpp LibCore+Everywhere: Move OpenMode out of IODevice 2021-05-12 11:00:45 +01:00
shuf.cpp Userland: Migrate from arc4random_uniform() to get_random_uniform() 2021-05-14 22:24:02 +02:00
shutdown.cpp Everything: Move to SPDX license identifiers in all files. 2021-04-22 11:22:27 +02:00
sleep.cpp LibC: Do not include errno.h inside unistd.h 2021-05-14 22:24:02 +02:00
sort.cpp Everything: Move to SPDX license identifiers in all files. 2021-04-22 11:22:27 +02:00
sql.cpp Everything: Move to SPDX license identifiers in all files. 2021-04-22 11:22:27 +02:00
stat.cpp LibC: Move makedev(), major(), minor(), to sys/types.h 2021-05-14 22:24:02 +02:00
strace.cpp LibCore+Everywhere: Move OpenMode out of IODevice 2021-05-12 11:00:45 +01:00
su.cpp Everything: Move to SPDX license identifiers in all files. 2021-04-22 11:22:27 +02:00
sync.cpp Everything: Move to SPDX license identifiers in all files. 2021-04-22 11:22:27 +02:00
syscall.cpp Utilities: Correct non-standard assert macros includes 2021-05-17 18:14:05 +01:00
sysctl.cpp LibCore+Everywhere: Move OpenMode out of IODevice 2021-05-12 11:00:45 +01:00
tac.cpp LibCore+Everywhere: Move OpenMode out of IODevice 2021-05-12 11:00:45 +01:00
tail.cpp LibCore+Everywhere: Move SeekMode out of IODevice 2021-05-12 11:00:45 +01:00
tar.cpp Utilities: Correct non-standard assert macros includes 2021-05-17 18:14:05 +01:00
tee.cpp Everything: Move to SPDX license identifiers in all files. 2021-04-22 11:22:27 +02:00
telws.cpp Utilities: Update telws to use the isolated WebSocket service 2021-04-25 19:04:34 +02:00
test_efault.cpp LibC: Do not include errno.h inside unistd.h 2021-05-14 22:24:02 +02:00
test_env.cpp Utilities: Correct non-standard assert macros includes 2021-05-17 18:14:05 +01:00
test_io.cpp Everything: Move to SPDX license identifiers in all files. 2021-04-22 11:22:27 +02:00
test-bindtodevice.cpp Everywhere: Use "the SerenityOS developers." in copyright headers 2021-04-29 00:59:26 +02:00
test-crypto.cpp LibCrypto: Add the SHA-384 hash algorithm 2021-05-19 09:18:45 +02:00
test-fuzz.cpp LibCore+Everywhere: Move OpenMode out of IODevice 2021-05-12 11:00:45 +01:00
test-pthread.cpp Everything: Move to SPDX license identifiers in all files. 2021-04-22 11:22:27 +02:00
test-unveil.cpp LibC: Do not include errno.h inside unistd.h 2021-05-14 22:24:02 +02:00
test.cpp Utilities: Correct non-standard assert macros includes 2021-05-17 18:14:05 +01:00
top.cpp Utilities: Make the STATE column for top slightly larger 2021-05-18 08:07:29 +02:00
touch.cpp Everything: Move to SPDX license identifiers in all files. 2021-04-22 11:22:27 +02:00
tr.cpp Everything: Move to SPDX license identifiers in all files. 2021-04-22 11:22:27 +02:00
traceroute.cpp Utilities: Correct non-standard assert macros includes 2021-05-17 18:14:05 +01:00
tree.cpp Userland: Move HOST_NAME_MAX to limits.h 2021-04-27 23:06:16 +02:00
true.cpp Everything: Move to SPDX license identifiers in all files. 2021-04-22 11:22:27 +02:00
truncate.cpp Everything: Move to SPDX license identifiers in all files. 2021-04-22 11:22:27 +02:00
tt.cpp LibC: Move mman.h to sys/mman.h 2021-05-14 22:24:02 +02:00
tty.cpp Everything: Move to SPDX license identifiers in all files. 2021-04-22 11:22:27 +02:00
umount.cpp Everything: Move to SPDX license identifiers in all files. 2021-04-22 11:22:27 +02:00
uname.cpp Everything: Move to SPDX license identifiers in all files. 2021-04-22 11:22:27 +02:00
uniq.cpp Everything: Move to SPDX license identifiers in all files. 2021-04-22 11:22:27 +02:00
unzip.cpp Utilities: Correct non-standard assert macros includes 2021-05-17 18:14:05 +01:00
uptime.cpp Everything: Move to SPDX license identifiers in all files. 2021-04-22 11:22:27 +02:00
useradd.cpp Everywhere: Add a blank line after copyright header where missing 2021-05-15 00:27:09 +01:00
userdel.cpp Everything: Move to SPDX license identifiers in all files. 2021-04-22 11:22:27 +02:00
utmpupdate.cpp Utilities: Correct non-standard assert macros includes 2021-05-17 18:14:05 +01:00
w.cpp LibCore+Everywhere: Move OpenMode out of IODevice 2021-05-12 11:00:45 +01:00
wasm.cpp Utilities/wasm: Say something when execution traps 2021-05-17 23:25:30 +02:00
watch.cpp Utilities: Correct non-standard assert macros includes 2021-05-17 18:14:05 +01:00
wc.cpp Everything: Move to SPDX license identifiers in all files. 2021-04-22 11:22:27 +02:00
which.cpp Everything: Move to SPDX license identifiers in all files. 2021-04-22 11:22:27 +02:00
whoami.cpp Everything: Move to SPDX license identifiers in all files. 2021-04-22 11:22:27 +02:00
xargs.cpp Everywhere: Use "the SerenityOS developers." in copyright headers 2021-04-29 00:59:26 +02:00
yes.cpp Everything: Move to SPDX license identifiers in all files. 2021-04-22 11:22:27 +02:00
zip.cpp LibCore+Everywhere: Move OpenMode out of IODevice 2021-05-12 11:00:45 +01:00