Added support for strpbrk to std.cfg. Running astyle.
This commit is contained in:
parent
8a6bb46958
commit
ba837a6f2d
13
cfg/std.cfg
13
cfg/std.cfg
|
@ -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/>
|
||||||
|
|
|
@ -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;
|
||||||
|
|
Loading…
Reference in New Issue