Skip to content

Commit

Permalink
Adding clang format and editor config
Browse files Browse the repository at this point in the history
  • Loading branch information
pbdot committed Nov 5, 2023
1 parent 537dc72 commit 6a15046
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .clang-format
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"
5 changes: 5 additions & 0 deletions .editorconfig
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
7 changes: 7 additions & 0 deletions source_files/.clang-format
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

0 comments on commit 6a15046

Please sign in to comment.