Added underscores to #ifndef/#define statements with namespaces

This commit is contained in:
Will Bainbridge
2018-06-20 16:31:07 +01:00
parent 28552e155d
commit 227db6deb3
8 changed files with 20 additions and 20 deletions

View File

@ -364,7 +364,7 @@ checkHeaderIfndefNames()
correctMangledName=$(basename $f | sed 's=\.=_=')
if git grep -q -e "#ifndef.*_H" $scope"$f" && \
! git grep -q -e "#ifndef.*$correctMangledName" $scope"$f"
! git grep -q -e "#ifndef.*[ _]$correctMangledName" $scope"$f"
then
echo "Updated #ifndef/#define for: $f" 1>&2
echo $f