tools/patcheck: fix misdetection with stuff like const_names
authorMichael Niedermayer <michaelni@gmx.at>
Thu, 23 May 2013 14:00:10 +0000 (16:00 +0200)
committerMichael Niedermayer <michaelni@gmx.at>
Thu, 23 May 2013 17:11:28 +0000 (19:11 +0200)
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
tools/patcheck

index 924a90d..59a16ef 100755 (executable)
@@ -50,7 +50,7 @@ hiegrep2 '\b_[a-zA-Z0-9_]{1,}' '__(asm|attribute)([^a-zA-Z0-9]|$)' 'reserved ide
 hiegrep '//[-/<\* ]*$'    'empty comment' $*
 hiegrep '/\*[-<\* ]*\*/'  'empty comment' $*
 hiegrep 'for *\( *'"$ERE_PRITYP"' '  'not gcc 2.95 compatible' $*
-hiegrep '(static|inline|const) *\1'  'duplicate word' $*
+hiegrep '(static|inline|const) *\1[^_a-zA-Z]'  'duplicate word' $*
 hiegrep 'INIT_VLC_USE_STATIC' 'forbidden ancient vlc type' $*
 hiegrep '=[-+\*\&] ' 'looks like compound assignment' $*
 hiegrep2 '/\*\* *[a-zA-Z0-9].*' '\*/' 'Inconsistently formatted doxygen comment' $*