Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
syscall-eval
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Lehrstuhl für Informatik 4 (Systemsoftware)
manycore
syscall-eval
Merge requests
!2
work work work
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
work work work
work-work-work
into
main
Overview
0
Commits
10
Pipelines
1
Changes
16
Merged
Florian Fischer
requested to merge
work-work-work
into
main
3 years ago
Overview
0
Commits
10
Pipelines
1
Changes
16
Expand
add more tooling
improve ci
add nanosecond measurements
fix aio-sig
...
0
0
Merge request reports
Compare
main
main (base)
and
latest version
latest version
3bb12208
10 commits,
3 years ago
16 files
+
277
−
141
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
Files
16
Search (e.g. *.vue) (Ctrl+P)
tools/check-format
0 → 100755
+
51
−
0
Options
#!/usr/bin/env bash
set
-euo
pipefail
# Pretty fancy method to get reliable the absolute path of a shell
# script, *even if it is sourced*. Credits go to GreenFox on
# stackoverflow: http://stackoverflow.com/a/12197518/194894
pushd
.
>
/dev/null
SCRIPTDIR
=
"
${
BASH_SOURCE
[0]
}
"
;
while
([
-h
"
${
SCRIPTDIR
}
"
])
;
do
cd
"
`
dirname
"
${
SCRIPTDIR
}
"
`
"
SCRIPTDIR
=
"
$(
readlink
"
`
basename
"
${
SCRIPTDIR
}
"
`
"
)
"
;
done
cd
"
`
dirname
"
${
SCRIPTDIR
}
"
`
"
>
/dev/null
SCRIPTDIR
=
"
`
pwd
`
"
;
popd
>
/dev/null
DEBUG
=
false
while
getopts
d OPT
;
do
case
$OPT
in
d
)
set
-x
DEBUG
=
true
;;
*
)
echo
"usage:
${
0
##*/
}
[-dq} [--] ARGS..."
exit
2
esac
done
shift
$((
OPTIND
-
1
))
OPTIND
=
1
ROOTDIR
=
$(
readlink
-f
"
${
SCRIPTDIR
}
/.."
)
MAX_PROCS
=
$(
nproc
)
CHECKED_FILES_FILE
=
$(
mktemp
)
if
!
$DEBUG
;
then
trap
'rm "${CHECKED_FILES_FILE}"'
EXIT
fi
cd
"
${
ROOTDIR
}
"
# Note that the --dry-run and --Werror clang-format arguments require
# clang-format 10 or higher. See https://reviews.llvm.org/D68554
find
.
\(
-path
'*/\.*'
-o
-path
"./subprojects*"
-o
-path
"./build*"
\)
-prune
-o
\
-type
f
-regextype
posix-extended
-regex
'.*\.(c|h|cpp|hpp)'
-print0
|
\
tee
"
${
CHECKED_FILES_FILE
}
"
|
\
xargs
--null
--max-args
=
3
--max-procs
=
"
${
MAX_PROCS
}
"
\
clang-format
--style
=
file
--dry-run
-Werror
FILE_COUNT
=
$(
<
"
${
CHECKED_FILES_FILE
}
"
tr
-cd
'\0'
|
wc
-c
)
echo
"Checked
${
FILE_COUNT
}
files for format violations"
Loading