Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ci format checking #394

Open
wants to merge 26 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
26 commits
Select commit Hold shift + click to select a range
04f289d
Edited ci and changed style checking script
IgnatSergeev Apr 5, 2023
1138fa3
Changed clang-format file
IgnatSergeev Apr 5, 2023
eff43f7
Changed clang-format file
IgnatSergeev Apr 10, 2023
00b81bb
Revert "Edited ci and changed style checking script"
IgnatSergeev Apr 11, 2023
3836f29
Added new ci file
IgnatSergeev Apr 11, 2023
effe75f
Fixed command
IgnatSergeev Apr 11, 2023
77a53c1
Fixed command
IgnatSergeev Apr 11, 2023
af20300
Fixed errors and changed style
IgnatSergeev Apr 11, 2023
dc911a5
Merge branch 'andrey-terekhov:master' into ci-format-checking
IgnatSergeev Apr 11, 2023
893de34
Formatted utils folder
IgnatSergeev Apr 11, 2023
bd7dceb
Formatted src folder
IgnatSergeev Apr 11, 2023
616d0dc
Formatted preprocessor folder
IgnatSergeev Apr 11, 2023
cb32cd9
Formatted utils directory
IgnatSergeev Apr 18, 2023
9ef5c88
Formatted preprocessor directory
IgnatSergeev Apr 18, 2023
f86c8d1
Formatted macro directory
IgnatSergeev Apr 18, 2023
a2fb977
Formatted macro directory
IgnatSergeev Apr 18, 2023
a65b5d4
Formatted compiler directory
IgnatSergeev Apr 25, 2023
1464bc0
Changed clang-format version
IgnatSergeev Apr 25, 2023
92a2949
Fixed ci error
IgnatSergeev Apr 25, 2023
9684949
Checking clang format version
IgnatSergeev Apr 25, 2023
9490f1c
Checking clang format version
IgnatSergeev Apr 25, 2023
eeb26b6
Checking clang format version
IgnatSergeev Apr 25, 2023
fa4e488
Changed everything back
IgnatSergeev Apr 25, 2023
c0b2c68
Added output of replacements
IgnatSergeev Apr 25, 2023
7762029
Added output of replacements
IgnatSergeev Apr 25, 2023
e3e8650
Moved replacements xml
IgnatSergeev Apr 25, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
61 changes: 33 additions & 28 deletions .clang-format
Original file line number Diff line number Diff line change
@@ -1,34 +1,39 @@
---
AlignConsecutiveMacros: 'true'
BasedOnStyle: LLVM

#AlignConsecutiveMacros: AcrossEmptyLinesAndComments
AllowShortFunctionsOnASingleLine: None
BraceWrapping:
AfterCaseLabel: 'true'
AfterClass: 'true'
AfterControlStatement: 'true'
AfterEnum: 'true'
AfterFunction: 'true'
AfterNamespace: 'true'
AfterStruct: 'true'
AfterUnion: 'true'
AfterExternBlock: 'false'
BeforeCatch: 'true'
BeforeElse: 'true'
IndentBraces: 'false'
SplitEmptyFunction: 'true'
SplitEmptyRecord: 'true'
SplitEmptyNamespace: 'true'
BreakBeforeBraces: Custom
ColumnLimit: '120'
Cpp11BracedListStyle: 'false'
BraceWrapping:
AfterCaseLabel: true
AfterClass: true
AfterControlStatement: Always
AfterEnum: true
AfterFunction: true
AfterNamespace: true
AfterStruct: true
AfterUnion: true
AfterExternBlock: false
BeforeCatch: true
BeforeElse: true
IndentBraces: false
SplitEmptyFunction: true
SplitEmptyRecord: true
SplitEmptyNamespace: true
ColumnLimit: 120
Cpp11BracedListStyle: false
IncludeBlocks: Merge
IndentCaseLabels: 'true'
IndentCaseLabels: true
IndentPPDirectives: BeforeHash
IndentWidth: '4'
KeepEmptyLinesAtTheStartOfBlocks: 'false'
IndentWidth: 4
KeepEmptyLinesAtTheStartOfBlocks: false
Language: Cpp
MaxEmptyLinesToKeep: '2'
SpaceBeforeAssignmentOperators: 'true'
MaxEmptyLinesToKeep: 2
SpaceBeforeAssignmentOperators: true
SpaceBeforeParens: ControlStatements
TabWidth: '4'
UseTab: Always
...
TabWidth: 4
UseTab: Never
AlignTrailingComments: true
PointerAlignment: Right
BreakBeforeTernaryOperators: true
AllowAllArgumentsOnNextLine: true
AllowAllParametersOfDeclarationOnNextLine: true
17 changes: 17 additions & 0 deletions .github/workflows/style.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
name: Style guide test

on:
- push
- pull_request

jobs:
ubuntu:
name: Ubuntu 20.04
runs-on: ubuntu-20.04
steps:
- name: GitHub repository checkout
uses: actions/checkout@v2
with:
fetch-depth: 0
- name: Run style check script
run: ./scripts/style.sh
Loading