summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2009-02-09 18:37:29 +0000
committerMichael Niedermayer <michaelni@gmx.at>2009-02-09 18:37:29 +0000
commitbe3e68b277328b996d87272e2454ff7fc023b0b6 (patch)
treef9f95e1793a766cda7a6367d442b9474d812d442 /tools
parent516c5f88a149a15c3ebc78ccc3b08a656dc2fc20 (diff)
Check for duplicate const/static/inline.
Originally committed as revision 17101 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'tools')
-rwxr-xr-xtools/patcheck1
1 files changed, 1 insertions, 0 deletions
diff --git a/tools/patcheck b/tools/patcheck
index c14de5f2f7..ac4de1aea5 100755
--- a/tools/patcheck
+++ b/tools/patcheck
@@ -40,6 +40,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' $*
hiegrep2 '(int|unsigned|static|void)[a-zA-Z0-9 _]*(init|end)[a-zA-Z0-9 _]*\(.*[^;]$' '(av_cold|:\+[^a-zA-Z_])' 'These functions may need av_cold, please review the whole patch for similar functions needing av_cold' $*