-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Adding clang format and editor config
- Loading branch information
Showing
3 changed files
with
16 additions
and
0 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,4 @@ | ||
# Disabled at root, see file in source_files for EDGE-Classic specific formatting rules | ||
DisableFormat: true | ||
|
||
# to format EDGE source files on windows run this in source_files: for /r %t in (*.cpp *.h *.cc *.hpp) do clang-format -i -style=file "%t" |
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,5 @@ | ||
root = true | ||
|
||
[source_files/**/*.{cc,h,cpp,hpp}] | ||
indent_style = space | ||
indent_size = 4 |
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,7 @@ | ||
BasedOnStyle: Microsoft | ||
AlignConsecutiveAssignments: true | ||
AlignConsecutiveBitFields: true | ||
AlignConsecutiveDeclarations: true | ||
AlignConsecutiveMacros: true | ||
AlignTrailingComments: true | ||
SortIncludes: false |