Fixed #837 (configure istream::getline in std.cfg) Adds some rules for getline, get and readsome methods of std::istream class

This commit is contained in:
VULCAIN\\Teddy 2017-03-03 19:19:05 +01:00 committed by Daniel Marjamäki
parent f0c353abcb
commit 930aa3c5b2
1 changed files with 50 additions and 0 deletions

View File

@ -4050,12 +4050,62 @@ The obsolete function 'gets' is called. With 'gets' you'll get a buffer overrun
<leak-ignore/> <leak-ignore/>
<arg nr="1"> <arg nr="1">
<not-null/> <not-null/>
<minsize type="argvalue" arg="2"/>
</arg> </arg>
<arg nr="2"> <arg nr="2">
<not-uninit/> <not-uninit/>
<valid>0:</valid> <valid>0:</valid>
</arg> </arg>
</function> </function>
<!-- streamsize readsome (char* s, streamsize n); -->
<function name="std::istream::readsome,std::ifstream::readsome">
<noreturn>false</noreturn>
<leak-ignore/>
<arg nr="1">
<not-null/>
<minsize type="argvalue" arg="2"/>
</arg>
<arg nr="2">
<not-uninit/>
<valid>0:</valid>
</arg>
</function>
<!-- istream& getline (char* s, streamsize n ); -->
<!-- istream& getline (char* s, streamsize n, char delim ); -->
<function name="std::istream::getline,std::ifstream::getline">
<noreturn>false</noreturn>
<leak-ignore/>
<arg nr="1">
<not-null/>
<minsize type="argvalue" arg="2"/>
<strz/>
</arg>
<arg nr="2">
<not-uninit/>
<valid>0:</valid>
</arg>
<arg nr="3" default="'\n'">
<not-uninit/>
</arg>
</function>
<!-- istream& get (char* s, streamsize n ); -->
<!-- istream& get (char* s, streamsize n, char delim ); -->
<function name="std::istream::get,std::ifstream::get">
<noreturn>false</noreturn>
<leak-ignore/>
<arg nr="1">
<not-null/>
<minsize type="argvalue" arg="2"/>
<strz/>
</arg>
<arg nr="2">
<not-uninit/>
<valid>0:</valid>
</arg>
<arg nr="3" default="'\n'">
<not-uninit/>
</arg>
</function>
<!-- Not part of standard, but widely supported by runtime libraries. --> <!-- Not part of standard, but widely supported by runtime libraries. -->
<!-- char * itoa (int value, char * str, int base); --> <!-- char * itoa (int value, char * str, int base); -->
<function name="itoa"> <function name="itoa">