Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
T
TEC Server Config
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
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
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
MSK-SW
Infrastructure and Support
TEC
TEC Server Config
Commits
d02a82b7
Unverified
Commit
d02a82b7
authored
2 years ago
by
Jens Georg
Committed by
GitHub
2 years ago
Browse files
Options
Downloads
Patches
Plain Diff
coding-style-check: Skip if clang-format not found (#23)
parent
71381a07
No related branches found
Branches containing commit
No related tags found
1 merge request
!3
update project template
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
cmake/check-coding-style.sh
+1
-0
1 addition, 0 deletions
cmake/check-coding-style.sh
cmake/enable_code_style_check.cmake
+3
-0
3 additions, 0 deletions
cmake/enable_code_style_check.cmake
with
4 additions
and
0 deletions
cmake/check-coding-style.sh
+
1
−
0
View file @
d02a82b7
...
...
@@ -18,6 +18,7 @@ if which clang-format-14 > /dev/null; then
echo
"Code formatting incorrect!"
fi
else
echo
77
>
"
${
ERRFILE
}
"
echo
"WARNING: clang-format-14 not found, code formatting not checked!"
fi
...
...
This diff is collapsed.
Click to expand it.
cmake/enable_code_style_check.cmake
+
3
−
0
View file @
d02a82b7
...
...
@@ -20,3 +20,6 @@
enable_testing
()
add_test
(
NAME coding_style COMMAND
${
CMAKE_SOURCE_DIR
}
/cmake/check-coding-style.sh
${
CMAKE_BINARY_DIR
}
WORKING_DIRECTORY
${
CMAKE_SOURCE_DIR
}
)
# coding style will return 77 if no clang-format-14 could be found AND none of the other tests fail
set_property
(
TEST coding_style PROPERTY SKIP_RETURN_CODE 77
)
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment