-
Notifications
You must be signed in to change notification settings - Fork 154
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Implement config for clang-format and editors
This creates a config file for the clang-format tool. It also establishes a .editorconfig file to help establish the proper settings for editing code in this project. First step to resolving #125
- Loading branch information
1 parent
265f4ad
commit 77c5037
Showing
3 changed files
with
35 additions
and
1 deletion.
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,22 @@ | ||
# Use the Google style with these modifications and a couple of others: | ||
# | ||
# 1) Lines can be up to 100 chars long rather than 80. | ||
# 2) Use a four space indent rather than two spaces. | ||
# | ||
Language: Cpp | ||
BasedOnStyle: Google | ||
ColumnLimit: 100 | ||
IndentWidth: 4 | ||
|
||
# The following directives override defaults established above. | ||
|
||
# We don't want OCLint pragmas to be reformatted. | ||
CommentPragmas: '^!OCLINT' | ||
|
||
# Allow slightly overlong lines. | ||
PenaltyExcessCharacter: 10 | ||
|
||
# Don't try to infer the most common alignment of `&` and `*` by analyzing the | ||
# source file. Use right alignment; i.e., bind to the symbol not the type. | ||
DerivePointerAlignment: false | ||
PointerAlignment: Right |
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,13 @@ | ||
root = true | ||
|
||
[*] | ||
indent_size = 4 | ||
indent_style = space | ||
end_of_line = lf | ||
charset = utf-8 | ||
trim_trailing_whitespace = true | ||
insert_final_newline = true | ||
max_line_length = 100 | ||
|
||
[{Makefile,*.in}] | ||
indent_style = tab |
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