Add more interfaces and attributes
This commit is contained in:
parent
0e78547b62
commit
6d0a1f80b4
|
@ -1,5 +1,30 @@
|
||||||
<?xml version="1.0"?>
|
<?xml version="1.0"?>
|
||||||
<def format="2">
|
<def format="2">
|
||||||
|
<!-- see https://github.com/google/googletest/blob/master/googletest/docs/primer.md -->
|
||||||
|
<define name="ASSERT_TRUE(cond)" value=""/>
|
||||||
|
<define name="EXPECT_TRUE(cond)" value=""/>
|
||||||
|
<define name="ASSERT_FALSE(cond)" value=""/>
|
||||||
|
<define name="EXPECT_FALSE(cond)" value=""/>
|
||||||
|
<define name="ASSERT_EQ(val1,val2)" value=""/>
|
||||||
|
<define name="EXPECT_EQ(val1,val2)" value=""/>
|
||||||
|
<define name="ASSERT_NE(val1,val2)" value=""/>
|
||||||
|
<define name="EXPECT_NE(val1,val2)" value=""/>
|
||||||
|
<define name="ASSERT_LT(val1,val2)" value=""/>
|
||||||
|
<define name="EXPECT_LT(val1,val2)" value=""/>
|
||||||
|
<define name="ASSERT_LE(val1,val2)" value=""/>
|
||||||
|
<define name="EXPECT_LE(val1,val2)" value=""/>
|
||||||
|
<define name="ASSERT_GT(val1,val2)" value=""/>
|
||||||
|
<define name="EXPECT_GT(val1,val2)" value=""/>
|
||||||
|
<define name="ASSERT_GE(val1,val2)" value=""/>
|
||||||
|
<define name="EXPECT_GE(val1,val2)" value=""/>
|
||||||
|
<define name="ASSERT_STREQ(str1,str2)" value=""/>
|
||||||
|
<define name="EXPECT_STREQ(str1,str2)" value=""/>
|
||||||
|
<define name="ASSERT_STRNE(str1,str2)" value=""/>
|
||||||
|
<define name="EXPECT_STRNE(str1,str2)" value=""/>
|
||||||
|
<define name="ASSERT_STRCASEEQ(str1,str2)" value=""/>
|
||||||
|
<define name="EXPECT_STRCASEEQ(str1,str2)" value=""/>
|
||||||
|
<define name="ASSERT_STRCASENE(str1,str2)" value=""/>
|
||||||
|
<define name="EXPECT_STRCASENE(str1,str2)" value=""/>
|
||||||
<define name="TEST(A,B)" value="void __ ## A ## _ ## B ( )"/>
|
<define name="TEST(A,B)" value="void __ ## A ## _ ## B ( )"/>
|
||||||
<define name="TEST_F(A,B)" value="void __ ## A ## _ ## B ( )"/>
|
<define name="TEST_F(A,B)" value="void __ ## A ## _ ## B ( )"/>
|
||||||
<define name="TEST_P(A,B)" value="void __ ## A ## _ ## B ( )"/>
|
<define name="TEST_P(A,B)" value="void __ ## A ## _ ## B ( )"/>
|
||||||
|
|
|
@ -108,6 +108,7 @@
|
||||||
<returnValue type="PyObject *"/>
|
<returnValue type="PyObject *"/>
|
||||||
<noreturn>false</noreturn>
|
<noreturn>false</noreturn>
|
||||||
<leak-ignore/>
|
<leak-ignore/>
|
||||||
|
<use-retval/>
|
||||||
<arg nr="1">
|
<arg nr="1">
|
||||||
<not-uninit/>
|
<not-uninit/>
|
||||||
<formatstr/>
|
<formatstr/>
|
||||||
|
@ -130,6 +131,21 @@
|
||||||
</arg>
|
</arg>
|
||||||
<arg nr="3"/>
|
<arg nr="3"/>
|
||||||
</function>
|
</function>
|
||||||
|
<function name="PyArg_VaParse">
|
||||||
|
<returnValue type="int"/>
|
||||||
|
<noreturn>false</noreturn>
|
||||||
|
<leak-ignore/>
|
||||||
|
<arg nr="1">
|
||||||
|
<not-null/>
|
||||||
|
<not-uninit/>
|
||||||
|
</arg>
|
||||||
|
<arg nr="2">
|
||||||
|
<not-uninit/>
|
||||||
|
</arg>
|
||||||
|
<arg nr="3">
|
||||||
|
<not-uninit/>
|
||||||
|
</arg>
|
||||||
|
</function>
|
||||||
<!-- int PyInt_Check(PyObject *o) -->
|
<!-- int PyInt_Check(PyObject *o) -->
|
||||||
<function name="PyInt_Check">
|
<function name="PyInt_Check">
|
||||||
<returnValue type="int"/>
|
<returnValue type="int"/>
|
||||||
|
|
16
cfg/ruby.cfg
16
cfg/ruby.cfg
|
@ -34,6 +34,21 @@
|
||||||
<not-uninit/>
|
<not-uninit/>
|
||||||
</arg>
|
</arg>
|
||||||
</function>
|
</function>
|
||||||
|
<function name="rb_intern">
|
||||||
|
<leak-ignore/>
|
||||||
|
<noreturn>false</noreturn>
|
||||||
|
<returnValue type="ID"/>
|
||||||
|
<arg nr="1">
|
||||||
|
<not-uninit/>
|
||||||
|
</arg>
|
||||||
|
</function>
|
||||||
|
<function name="rb_str_new2">
|
||||||
|
<leak-ignore/>
|
||||||
|
<noreturn>false</noreturn>
|
||||||
|
<arg nr="1">
|
||||||
|
<not-uninit/>
|
||||||
|
</arg>
|
||||||
|
</function>
|
||||||
<!-- void rb_raise(rb_eRuntimeError, const char *fmt, …) -->
|
<!-- void rb_raise(rb_eRuntimeError, const char *fmt, …) -->
|
||||||
<function name="rb_raise">
|
<function name="rb_raise">
|
||||||
<leak-ignore/>
|
<leak-ignore/>
|
||||||
|
@ -50,4 +65,5 @@
|
||||||
<not-uninit/>
|
<not-uninit/>
|
||||||
</arg>
|
</arg>
|
||||||
</function>
|
</function>
|
||||||
|
<podtype name="ID"/>
|
||||||
</def>
|
</def>
|
||||||
|
|
Loading…
Reference in New Issue