Browse code

tools/patcheck: fix misdetection with stuff like const_names

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>

Michael Niedermayer authored on 2013/05/23 23:00:10
Showing 1 changed files
... ...
@@ -50,7 +50,7 @@ hiegrep2 '\b_[a-zA-Z0-9_]{1,}' '__(asm|attribute)([^a-zA-Z0-9]|$)' 'reserved ide
50 50
 hiegrep '//[-/<\* ]*$'    'empty comment' $*
51 51
 hiegrep '/\*[-<\* ]*\*/'  'empty comment' $*
52 52
 hiegrep 'for *\( *'"$ERE_PRITYP"' '  'not gcc 2.95 compatible' $*
53
-hiegrep '(static|inline|const) *\1'  'duplicate word' $*
53
+hiegrep '(static|inline|const) *\1[^_a-zA-Z]'  'duplicate word' $*
54 54
 hiegrep 'INIT_VLC_USE_STATIC' 'forbidden ancient vlc type' $*
55 55
 hiegrep '=[-+\*\&] ' 'looks like compound assignment' $*
56 56
 hiegrep2 '/\*\* *[a-zA-Z0-9].*' '\*/' 'Inconsistently formatted doxygen comment' $*