I've been playing with the Zed editor again. It's default settings don't quite match passt's style, so add a config file to make it do the right thing. Also update some of the config for clangd to suppress bogus warnings the way Zed invokes it. Between them these also found a handful of minor but real code warts, so fix those, too. David Gibson (5): clangd: Add _GNU_SOURCE to default clangd options util: Eliminate a stray trailing whitespace util: Add missing O_CLOEXEC for !HAS_GETRANDOM path util, pasta: Remove some unneeded #includes Add Zed editor settings .clangd | 2 +- .zed/settings.json | 4 ++++ pasta.c | 1 - util.c | 7 ++----- 4 files changed, 7 insertions(+), 7 deletions(-) create mode 100644 .zed/settings.json -- 2.53.0
Presumably these mattered at some point in the past, but no longer. Found
by clangd as invoked by Zed editor. Not sure why direct clang-tidy runs
didn't spot these.
Signed-off-by: David Gibson
We always insert -D_GNU_SOURCE and -D_XOPEN_SOURCE=700 when compiling from
the Makefile, and we rely on it. Without these listed in .clangd, clangd
will generate numerous spurious warnings.
Signed-off-by: David Gibson
I've been playing around with the Zed editor again. Its default tab and
indent settings are a bit weird, and don't match passt's code style. Add
a project config file to improve that.
Signed-off-by: David Gibson
participants (1)
-
David Gibson