summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2007-01-27 19:41:52 +0000
committerMike Frysinger <vapier@gentoo.org>2007-01-27 19:41:52 +0000
commit506cc0b2d692e28812af48682d301479a3949bed (patch)
tree01ec8e0b664b0d7c6b7765a0cec2fb187b657d2d /bin/check-implicit-pointer-usage.py
parentfix minor sed overzeallousness (diff)
downloadportage-multirepo-506cc0b2d692e28812af48682d301479a3949bed.tar.gz
portage-multirepo-506cc0b2d692e28812af48682d301479a3949bed.tar.bz2
portage-multirepo-506cc0b2d692e28812af48682d301479a3949bed.zip
add support for parsing of unicode quotes
svn path=/main/trunk/; revision=5796
Diffstat (limited to 'bin/check-implicit-pointer-usage.py')
-rwxr-xr-xbin/check-implicit-pointer-usage.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/bin/check-implicit-pointer-usage.py b/bin/check-implicit-pointer-usage.py
index 4afa8f24..948bc675 100755
--- a/bin/check-implicit-pointer-usage.py
+++ b/bin/check-implicit-pointer-usage.py
@@ -1,6 +1,8 @@
#!/usr/bin/env python
+# coding: iso-8859-15
# Ripped from HP and updated from Debian
+# Update by Gentoo to support unicode output
#
# Copyright (c) 2004 Hewlett-Packard Development Company, L.P.
@@ -16,14 +18,14 @@ import re
import sys
implicit_pattern = re.compile("([^:]*):(\d+): warning: implicit declaration "
- + "of function [`']([^']*)'")
+ + "of function [`'‘]+([^'‘]*)['‘]")
pointer_pattern = re.compile(
"([^:]*):(\d+): warning: "
+ "("
+ "(assignment"
+ "|initialization"
+ "|return"
- + "|passing arg \d+ of `[^']*'"
+ + "|passing arg \d+ of [`'‘][^'‘]*['‘]"
+ "|passing arg \d+ of pointer to function"
+ ") makes pointer from integer without a cast"
+ "|"