Skip to content

Commit

Permalink
-fix build;
Browse files Browse the repository at this point in the history
-added clang-format config;
  • Loading branch information
kamchatka-volcano committed Sep 27, 2024
1 parent 5ccd569 commit 7d53e41
Show file tree
Hide file tree
Showing 3 changed files with 63 additions and 1 deletion.
60 changes: 60 additions & 0 deletions .clang-format
Original file line number Diff line number Diff line change
@@ -0,0 +1,60 @@
---
BasedOnStyle: WebKit
AlignAfterOpenBracket: AlwaysBreak
AllowAllArgumentsOnNextLine: false
AllowAllConstructorInitializersOnNextLine: false
AllowAllParametersOfDeclarationOnNextLine: false
AllowShortFunctionsOnASingleLine: Empty
AllowShortLambdasOnASingleLine: Empty
AllowShortEnumsOnASingleLine: false
AllowShortIfStatementsOnASingleLine: Never
AllowShortLoopsOnASingleLine: false
AllowShortBlocksOnASingleLine: Empty
AlwaysBreakTemplateDeclarations: Yes
BinPackArguments: false
BinPackParameters: false
BraceWrapping:
AfterFunction: true
BeforeElse: true
BeforeLambdaBody: true
BeforeWhile: true
BeforeCatch: true
BreakBeforeBraces: Custom
BreakBeforeBinaryOperators: None
BreakInheritanceList: AfterComma
ColumnLimit: 120
ContinuationIndentWidth: 8
Cpp11BracedListStyle: true
NamespaceIndentation: None
PenaltyBreakBeforeFirstCallParameter: 0
PenaltyReturnTypeOnItsOwnLine: 1000
PenaltyBreakAssignment: 10
SpaceBeforeCpp11BracedList: false
SpaceInEmptyBlock: false
SpaceInEmptyParentheses: false
SpaceAfterTemplateKeyword: false
SpacesInLineCommentPrefix:
Minimum: 0
Maximum: -1
FixNamespaceComments: true
UseCRLF: false
IncludeCategories:
# Headers in <> without extension.
- Regex: '<[[:alnum:]\-_]+>'
Priority: 6
# Headers in <> from specific external libraries.
- Regex: '<(gtest|gmock|boost|gsl)\/'
Priority: 5
# Headers in <> with subdirectory.
- Regex: '<[[:alnum:]\-_]+\/'
Priority: 4
# Headers in <> with extension.
- Regex: '<[[:alnum:].\-_]+>'
Priority: 3
# Headers in "" with subdirectory.
- Regex: '"[[:alnum:]\-_]+\/'
Priority: 2
# Headers in "" with extension.
- Regex: '"[[:alnum:].\-_]+"'
Priority: 1
...
2 changes: 1 addition & 1 deletion .github/workflows/build_and_test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ on:

jobs:
build:
name: ${{ matrix.config.name }} (nameof = ${{ matrix.use_nameof }})
name: ${{ matrix.config.name }}
runs-on: ${{ matrix.config.os }}
env:
CC: ${{ matrix.config.cc }}
Expand Down
2 changes: 2 additions & 0 deletions src/node_utils.cpp
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
#include "node_utils.h"
#include <algorithm>
#include <iterator>

namespace htcpp{

Expand Down

0 comments on commit 7d53e41

Please sign in to comment.