Skip to content
Snippets Groups Projects

Compare revisions

Changes are shown as if the source revision was being merged into the target revision. Learn more about comparing revisions.

Source

Select target project
No results found

Target

Select target project
  • msk-sw/infrastructure-and-support/tec/tec-applicationmodule
1 result
Show changes
Commits on Source (3)
...@@ -12,7 +12,7 @@ exclude_pattern="$exclude_path/*" ...@@ -12,7 +12,7 @@ exclude_pattern="$exclude_path/*"
# check clang-format formatting # check clang-format formatting
if which clang-format-14 > /dev/null; then 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 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 [ $? -ne 1 ]; then if [ $? -ne 1 ]; then
echo 1 > "${ERRFILE}" echo 1 > "${ERRFILE}"
echo "Code formatting incorrect!" echo "Code formatting incorrect!"
...@@ -37,7 +37,7 @@ checkCopyrightComment() { ...@@ -37,7 +37,7 @@ checkCopyrightComment() {
fi fi
} }
export -f checkCopyrightComment export -f checkCopyrightComment
find $mypath \( -name *.cc -o -name *.cpp -o -name *.h \) -not -path "$exclude_pattern" -exec bash -c 'checkCopyrightComment {}' \; find $mypath \( -name \*.cc -o -name \*.cpp -o -name \*.h \) -not -path "$exclude_pattern" -exec bash -c 'checkCopyrightComment {}' \;
# check all header files for "#pragma once" in 3rd line # check all header files for "#pragma once" in 3rd line
checkPramgaOnce() { checkPramgaOnce() {
...@@ -47,10 +47,9 @@ checkPramgaOnce() { ...@@ -47,10 +47,9 @@ checkPramgaOnce() {
fi fi
} }
export -f checkPramgaOnce export -f checkPramgaOnce
find $mypath -name *.h -not -path "$exclude_pattern" -exec bash -c 'checkPramgaOnce {}' \; find $mypath -name \*.h -not -path "$exclude_pattern" -exec bash -c 'checkPramgaOnce {}' \;
ERROR=`cat "${ERRFILE}"` ERROR=`cat "${ERRFILE}"`
rm -f "${ERRFILE}" rm -f "${ERRFILE}"
exit ${ERROR} exit ${ERROR}