Skip to content
Snippets Groups Projects
Commit 71461047 authored by Martin Christoph Hierholzer's avatar Martin Christoph Hierholzer
Browse files

feat(project-template): use clang-format-19 with "Latest" C++ standard

parent d3b70cd1
No related branches found
No related tags found
1 merge request!16update project template
......@@ -87,5 +87,5 @@ SpacesInCStyleCastParentheses: 'false'
SpacesInContainerLiterals: 'true'
SpacesInParentheses: 'false'
SpacesInSquareBrackets: 'false'
Standard: c++17
Standard: Latest
UseTab: Never
......@@ -11,15 +11,15 @@ exclude_path=${1:-justignoreme}
exclude_pattern="$exclude_path/*"
# check clang-format formatting
if which clang-format-14 > /dev/null; then
find $mypath \( -name \*.cc -o -name \*.cpp -o -name \*.h \) -not -path "$exclude_pattern" -exec clang-format-14 --output-replacements-xml \{\} \; | grep "^<replacement " > /dev/null
if which clang-format-19 > /dev/null; then
find $mypath \( -name \*.cc -o -name \*.cpp -o -name \*.h \) -not -path "$exclude_pattern" -exec clang-format-19 --output-replacements-xml \{\} \; | grep "^<replacement " > /dev/null
if [ $? -ne 1 ]; then
echo 1 > "${ERRFILE}"
echo "Code formatting incorrect!"
fi
else
echo 77 > "${ERRFILE}"
echo "WARNING: clang-format-14 not found, code formatting not checked!"
echo "WARNING: clang-format-19 not found, code formatting not checked!"
fi
# check copyright/licence file header comment
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment