Skip to content

Commit

Permalink
[Velox] Fix some gaps in clang format
Browse files Browse the repository at this point in the history
  • Loading branch information
kevinwilfong committed Jun 11, 2024
1 parent c622f91 commit dcbf7bf
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
1 change: 1 addition & 0 deletions .clang-format
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@ IncludeCategories:
IndentCaseLabels: true
IndentWidth: 2
IndentWrappedFunctionNames: false
InsertNewlineAtEOF: true
KeepEmptyLinesAtTheStartOfBlocks: false
MacroBlockBegin: ''
MacroBlockEnd: ''
Expand Down
2 changes: 1 addition & 1 deletion scripts/check.py
Original file line number Diff line number Diff line change
Expand Up @@ -185,7 +185,7 @@ def get_files(commit, path):

if commit != "":
status, stdout, stderr = util.run(
f"git diff --relative --name-only --diff-filter='ACM' {commit}"
f"git diff --relative --name-only --diff-filter='ACMR' {commit}"
)
filelist = stdout.splitlines()
else:
Expand Down
5 changes: 3 additions & 2 deletions scripts/setup-check.sh
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,10 @@ set -x

export DEBIAN_FRONTEND=noninteractive
apt update
apt install --no-install-recommends -y clang-format-12 python3-pip git make ssh
apt list clang-format
apt install --no-install-recommends -y clang-format-13 python3-pip git make ssh
pip3 install cmake==3.28.3 cmake_format black regex
pip3 cache purge
apt purge --auto-remove -y python3-pip
update-alternatives --install /usr/bin/clang-format clang-format "$(command -v clang-format-12)" 12
update-alternatives --install /usr/bin/clang-format clang-format "$(command -v clang-format-13)" 13
apt clean

0 comments on commit dcbf7bf

Please sign in to comment.