diff --git a/.clang-format b/.clang-format new file mode 100644 index 0000000..f921912 --- /dev/null +++ b/.clang-format @@ -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 +... diff --git a/.github/workflows/build_and_test.yml b/.github/workflows/build_and_test.yml index 5f64559..fd72b78 100644 --- a/.github/workflows/build_and_test.yml +++ b/.github/workflows/build_and_test.yml @@ -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 }} diff --git a/src/node_utils.cpp b/src/node_utils.cpp index 4a7fca5..45f0d92 100644 --- a/src/node_utils.cpp +++ b/src/node_utils.cpp @@ -1,4 +1,6 @@ #include "node_utils.h" +#include +#include namespace htcpp{