Let the ARI know gdb_Py_DECREF is OK.
authorPedro Alves <palves@redhat.com>
Wed, 22 May 2013 09:31:44 +0000 (09:31 +0000)
committerPedro Alves <palves@redhat.com>
Wed, 22 May 2013 09:31:44 +0000 (09:31 +0000)
The ARI complains with:

> gdb/python/python-internal.h:177: code: editCase function: Function name starts lower case but has uppercased letters.
gdb/python/python-internal.h:177:gdb_Py_DECREF (void *op)

gdb_Py_DECREF is just wrapping a python macro that happens to be mixed case.

gdb/
2013-05-22  Pedro Alves  <palves@redhat.com>

* python/python-internal.h (gdb_Py_DECREF): Tag with
"ARI: editCase function".

gdb/ChangeLog
gdb/python/python-internal.h

index 1d325d0e25e0cac17387814ad8a6215d19530bd4..b2ef335945868cf76c5c83217d51b6799d29fa50 100644 (file)
@@ -1,3 +1,8 @@
+2013-05-22  Pedro Alves  <palves@redhat.com>
+
+       * python/python-internal.h (gdb_Py_DECREF): Tag with
+       "ARI: editCase function".
+
 2013-05-21  Paul Pluzhnikov  <ppluzhnikov@google.com>
 
        * solib-svr4.c (svr4_free_so): Protect against NULL dereference.
index b5c34b62dd657b3f132a16ff7133a668471cb16a..f47d48a4195c3d1a2c7c9d43a9c3519b4b8027d6 100644 (file)
@@ -174,7 +174,7 @@ typedef unsigned long gdb_py_ulongest;
    Wrap it ourselves, so that callers don't need to care.  */
 
 static inline void
-gdb_Py_DECREF (void *op)
+gdb_Py_DECREF (void *op) /* ARI: editCase function */
 {
   Py_DECREF (op);
 }