Ignore generated files required by clangd
Also add .dirstamp which seems to be generated by autoconf/automake/make.
compile_commands.json
is also used by standalone clang-tidy
Originally part of !159 (closed), but that had unwanted parts and the branch name was no longer fitting.