gitignore: add compile_commands.json
PATCH 1/3 gitignore: add compile_commands.json
This file is a compilation command database used by clangd and ccls, and can be generated by tools like https://github.com/rizsotto/Bear.
$ bear -- make clean all --- .gitignore | 1 + 1 file changed, 1 insertion(+)
.gitignore +1 -0
@@ -5,6 +5,7 @@ .deps .dirstamp .cache +compile_commands.json tags cscope.* Makefile
Signature · 1 line
2.38.1
PATCH 2/3 gitignore: add .ccls-cache
This directory is used by ccls.
--- .gitignore | 1 + 1 file changed, 1 insertion(+)
.gitignore +1 -0
@@ -5,6 +5,7 @@ .deps .dirstamp .cache +.ccls-cache compile_commands.json tags cscope.*
Signature · 1 line
2.38.1
PATCH 3/3 client: fix non-interactive mode in some cases
In reply to Neehar VijayBefore this change, I noticed that some non-interactive commands don't work,
$ iwctl version
$ iwctl help
while other ones do.
$ iwctl station wlan0 show
This seems to be a typo bug in the if clause checking for additional arguments.
--- client/command.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
client/command.c +1 -1
@@ -753,7 +753,7 @@ options_parsed: argv += optind; argc -= optind; -if (argc <2 ) { +if (argc <1 ) { interactive_mode = true;return false; }
Signature · 1 line
2.38.1
Hi Neehar,
Quoted 8 lines · Neehar Vijay
This file is a compilation command database used by clangd and ccls, and can be generated by tools like https://github.com/rizsotto/Bear.
$ bear -- make clean all --- .gitignore | 1 + 1 file changed, 1 insertion(+)
All applied, thanks.
Regards,
-Denis