Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2025-01-18 09:10:44

0001 #!/bin/bash
0002 
0003 ec=0
0004 
0005 files="$@"
0006 
0007 if [ -z "$files" ]; then
0008     files=$(find Core Examples Tests Plugins -name "*.hpp")
0009 fi
0010 
0011 for file in $files; do
0012     res=$(grep -e "^[[:space:]]*#pragma once" $file)
0013     if [[ "$res" != "#pragma once" ]]; then
0014         ec=1
0015         echo "'#pragma once' missing in '$file'"
0016     fi
0017 done
0018 
0019 exit $ec