Skip to content

Commit

Permalink
feat: version 0.1.0
Browse files Browse the repository at this point in the history
  • Loading branch information
PETAce committed Aug 17, 2023
0 parents commit 0c10ab5
Show file tree
Hide file tree
Showing 62 changed files with 5,327 additions and 0 deletions.
57 changes: 57 additions & 0 deletions .clang-format
Original file line number Diff line number Diff line change
@@ -0,0 +1,57 @@
---
IndentWidth: 4
TabWidth: 4

Language: Cpp
Standard: Cpp11
BasedOnStyle: Google
# indent
AccessModifierOffset: -4
ContinuationIndentWidth: 8
# align
BreakBeforeTernaryOperators: true
BreakBeforeBinaryOperators: false
AlignAfterOpenBracket: false
ColumnLimit: 120
# constructor
BreakConstructorInitializersBeforeComma: false
ConstructorInitializerIndentWidth: 8
ConstructorInitializerAllOnOneLineOrOnePerLine: true
# short block
AllowShortBlocksOnASingleLine: false
AllowShortFunctionsOnASingleLine: false
AllowShortIfStatementsOnASingleLine: false
AllowShortLoopsOnASingleLine: false
Cpp11BracedListStyle: true
# other
AlwaysBreakTemplateDeclarations: true
DerivePointerAlignment: false
PointerAlignment: Left

# clang-format 3.9+
SortIncludes: true
BreakStringLiterals: false
ReflowComments: true

# custom
IncludeCategories:
# Matches common headers first, but sorts them after project includes
- Regex: '^<.*.h>'
Priority: 1
- Regex: '^<.*.hpp>'
Priority: 2
- Regex: '^<[^/]*>'
Priority: 2
- Regex: '^"duet/.*'
Priority: 4
- Regex: '^"network/.*'
Priority: 4
- Regex: '^"solo/.*'
Priority: 4
- Regex: '^"verse/.*'
Priority: 4
- Regex: '^"setops/.*'
Priority: 5
- Regex: '^".*'
Priority: 3
...
45 changes: 45 additions & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
###############################
# Git Line Endings #
###############################
# Set default behaviour to automatically normalize line endings.
* text=auto

###############################
# C++ Attributes #
###############################
# Sources
*.c text diff=cpp
*.cc text diff=cpp
*.cxx text diff=cpp
*.cpp text diff=cpp
*.c++ text diff=cpp
*.hpp text diff=cpp
*.h text diff=cpp
*.h++ text diff=cpp
*.hh text diff=cpp

# Compiled Object files
*.slo binary
*.lo binary
*.o binary
*.obj binary

# Precompiled Headers
*.gch binary
*.pch binary

# Compiled Dynamic libraries
*.so binary
*.dylib binary
*.dll binary

# Compiled Static libraries
*.lai binary
*.la binary
*.a binary
*.lib binary

# Executables
*.exe binary
*.out binary
*.app binary
Loading

0 comments on commit 0c10ab5

Please sign in to comment.