Skip to content

Commit

Permalink
Undo, format
Browse files Browse the repository at this point in the history
  • Loading branch information
chrchr-github committed Jan 10, 2024
1 parent e12fcb1 commit 7a89f07
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
1 change: 0 additions & 1 deletion cfg/std.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -6645,7 +6645,6 @@ The obsolete function 'gets' is called. With 'gets' you'll get a buffer overrun
<function name="std::deque::push_back,std::deque::push_front,std::list::push_back,std::list::push_front,std::forward_list::push_front,std::queue::push,std::stack::push,std::vector::push_back">
<noreturn>false</noreturn>
<returnValue type="void"/>
<leak-ignore/>
<arg nr="1">
<not-uninit/>
</arg>
Expand Down
2 changes: 1 addition & 1 deletion lib/library.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1012,7 +1012,7 @@ std::string Library::getFunctionName(const Token *ftok) const
const Token * tok = ftok->astParent()->isUnaryOp("&") ? ftok->astParent()->astOperand1() : ftok->next()->astOperand1();
std::string ret = getFunctionName(tok, error);
if (error)
return {};
return {};
if (startsWith(ret, "::"))
ret.erase(0, 2);
return ret;
Expand Down

0 comments on commit 7a89f07

Please sign in to comment.