Added support for strpbrk to std.cfg. Running astyle.

This commit is contained in:
orbitcowboy 2015-01-07 02:34:41 +01:00
parent 8a6bb46958
commit ba837a6f2d
2 changed files with 14 additions and 1 deletions

View File

@ -1370,6 +1370,19 @@
<valid>0:</valid> <valid>0:</valid>
</arg> </arg>
</function> </function>
<function name="strpbrk">
<use-retval/>
<noreturn>false</noreturn>
<leak-ignore/>
<arg nr="1">
<not-null/>
<not-uninit/>
</arg>
<arg nr="2">
<not-null/>
<not-uninit/>
</arg>
</function>
<function name="strncat"> <function name="strncat">
<noreturn>false</noreturn> <noreturn>false</noreturn>
<leak-ignore/> <leak-ignore/>

View File

@ -9416,7 +9416,7 @@ void Tokenizer::simplifyAssignmentBlock()
for (Token *tok = list.front(); tok; tok = tok->next()) { for (Token *tok = list.front(); tok; tok = tok->next()) {
if (Token::Match(tok, "[;{}] %var% = ( {")) { if (Token::Match(tok, "[;{}] %var% = ( {")) {
const std::string &varname = tok->next()->str(); const std::string &varname = tok->next()->str();
// goto the "} )" // goto the "} )"
unsigned int indentlevel = 0; unsigned int indentlevel = 0;
Token *tok2 = tok; Token *tok2 = tok;