martanne / vis

A vi-like editor based on Plan 9's structural regular expressions
Other
4.21k stars 258 forks source link

add .clang-format code format file #928

Closed sheeaza closed 3 years ago

sheeaza commented 3 years ago

'.cache' and 'compile_commands.json' are used by clangd

Signed-off-by: sheeaza winsdenny@outlook.com

ninewise commented 3 years ago

IMHO editor/compiler-specific files belong in your global gitignore/configuration, not in each project you edit with it. On the other hand, there are already vi-specific files in the gitignore.

sheeaza commented 3 years ago

so what about the .clang-format commit for code format

ninewise commented 3 years ago

That's up to the maintainer, I guess.

martanne commented 3 years ago

I agree with @ninewise that editor specific files should be kept out of the repository.

As stated elsewhere I am not a big fan of whitespace only changes. They cause unnecessary merge conflicts and clutter source control history etc. Adding configuration for source formatting and then not enforcing it also doesn't make much sense. Therefore I'm closing this for now.