Kaydet (Commit) a91068b8 authored tarafından Thomas Arnhold's avatar Thomas Arnhold

correct indentation + remove guard names

because the script detects those as "used in other files"

Change-Id: Ifacb337338e60a194047689c16254154c867b606
üst 52a7238a
......@@ -28,7 +28,7 @@ for fn in "$@"; do
[ aa"`git grep -h "^\s*#define ${guard_prefix}$guard" "$fn" | wc -l`" != "aa1" ]; then
# pattern which identifies guards, common one look like
# _XMLOFF_ANIMEXP_HXX, BENTOID_H, IXFOBJECT_INC
# _MODULE_FILE_HXX, FILE_H, FILE_INC
pattern=".*\(_HXX\|_H\|_INC\)"
### extract guard definition
......@@ -41,10 +41,10 @@ for fn in "$@"; do
fi
if [ aa"`git grep -w "$old_guard" | cut -d ':' -f1 | sort -u | wc -l `" != aa"1" ]; then
echo -e "$fn: \e[00;31mwarning:\e[00m guard definition used in other files"
continue
fi
if [ aa"`git grep -w "$old_guard" | cut -d ':' -f1 | sort -u | wc -l `" != aa"1" ]; then
echo -e "$fn: \e[00;31mwarning:\e[00m guard definition used in other files"
continue
fi
### skip some special files...
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment