diff --git a/.clang-format b/.clang-format index 6ee514a0..60baae5e 100644 --- a/.clang-format +++ b/.clang-format @@ -4,4 +4,6 @@ IndentWidth: 4 AccessModifierOffset: -4 SortIncludes: false ColumnLimit: 100 -AllowShortFunctionsOnASingleLine: None \ No newline at end of file +AllowShortFunctionsOnASingleLine: None +AlwaysBreakTemplateDeclarations: true +BreakStringLiterals: false diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml new file mode 100644 index 00000000..bb5c0a03 --- /dev/null +++ b/.github/workflows/lint.yml @@ -0,0 +1,17 @@ +name: clang-format-linter + +on: + push: + branches: + - main + pull_request: + +jobs: + build: + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v2 + with: + fetch-depth: 2 + - uses: yshui/git-clang-format-lint@master