-
Notifications
You must be signed in to change notification settings - Fork 2.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #602 from ifwe/twitter-editorconfig
Add editorconfig matching the c style guide, fix typos in c style guide
- Loading branch information
Showing
2 changed files
with
42 additions
and
23 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
# https://editorconfig.org/ | ||
|
||
root = true | ||
|
||
[*] | ||
trim_trailing_whitespace = true | ||
insert_final_newline = true | ||
end_of_line = lf | ||
charset = utf-8 | ||
|
||
# See twemproxy/notes/c-styleguide.txt | ||
[*.c,*.h] | ||
tab_width = 4 | ||
indent_size = 4 | ||
indent_style = space | ||
# indent_brace_style depends on function vs conditional | ||
max_line_length = 80 | ||
spaces_around_brackets = none | ||
spaces_around_operators = true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters