Skip to content

Commit

Permalink
👥 Added regroup to clang-format.
Browse files Browse the repository at this point in the history
Makes the code cleaner.
  • Loading branch information
rentruewang committed Jul 1, 2024
1 parent 5fb2713 commit cbf1644
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 57 deletions.
1 change: 1 addition & 0 deletions cpp/.clang-format
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
BasedOnStyle: Chromium
IndentWidth: 4
IncludeBlocks: Regroup
2 changes: 1 addition & 1 deletion cpp/CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

1. Use ISO Cpp's code style (`snake_case_everything`).
2. Except for private member variable, (`suffix_with_underscore_`).
3. Use `clang-format` (`BasedOnStyle: Chromium; IndentWidth: 4`).
3. Use `clang-format` (`BasedOnStyle: Chromium; IndentWidth: 4; IncludeBlocks: Regroup`).
4. Use `=` initialization only for pointer / reference types.
5. Use `{}` universal initialization for everything else.
6. Except when ambiguous, then use `()` normal initialization.
Expand Down
2 changes: 0 additions & 2 deletions cpp/c/.clang-format

This file was deleted.

54 changes: 0 additions & 54 deletions cpp/c/.gitignore

This file was deleted.

0 comments on commit cbf1644

Please sign in to comment.