[prev in list] [next in list] [prev in thread] [next in thread] 

List:       gcc-python-plugin-commits
Subject:    [gcc-python-plugin] cpychecker: in Cython-generated code, __Pyx_GetStdout returns a borrowed referen
From:       dmalcolm () fedoraproject ! org (dmalcolm)
Date:       2012-02-29 19:59:58
Message-ID: 20120229195958.8A96F112 () lists ! fedorahosted ! org
[Download RAW message or body]

commit 39668618cc613064fcb5761def4d911e858dad20
Author: David Malcolm <dmalcolm at redhat.com>
Date:   Wed Feb 29 14:59:15 2012 -0500

    cpychecker: in Cython-generated code, __Pyx_GetStdout returns a borrowed reference

 libcpychecker/attributes.py |   10 ++++++----
 1 files changed, 6 insertions(+), 4 deletions(-)
---
diff --git a/libcpychecker/attributes.py b/libcpychecker/attributes.py
index d76020c..7f70404 100644
--- a/libcpychecker/attributes.py
+++ b/libcpychecker/attributes.py
@@ -1,5 +1,5 @@
-#   Copyright 2011 David Malcolm <dmalcolm at redhat.com>
-#   Copyright 2011 Red Hat, Inc.
+#   Copyright 2011, 2012 David Malcolm <dmalcolm at redhat.com>
+#   Copyright 2011, 2012 Red Hat, Inc.
 #
 #   This is free software: you can redistribute it and/or modify it
 #   under the terms of the GNU General Public License as published by
@@ -19,8 +19,10 @@ import gcc
 from gccutils import check_isinstance
 from libcpychecker.types import register_type_object
 
-# Recorded attribute data:
-fnnames_returning_borrowed_refs = set()
+# Recorded attribute data, primed with some special-case knowledge about
+# the code that Cython generates:
+fnnames_returning_borrowed_refs = set(['__Pyx_GetStdout'])
+
 fnnames_setting_exception = set()
 fnnames_setting_exception_on_negative_result = set()
 

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic