MCPcopy Create free account
hub / github.com/cppcheck-opensource/cppcheck / isAlternativeUnaryOp

Function isAlternativeUnaryOp

externals/simplecpp/simplecpp.cpp:168–173  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

166}
167
168static bool isAlternativeUnaryOp(const simplecpp::Token *tok, const std::string &alt)
169{
170 return ((tok->name && tok->str() == alt) &&
171 (!tok->previous || tok->previous->op == '(') &&
172 (tok->next && (tok->next->name || tok->next->number)));
173}
174
175static std::string replaceAll(std::string s, const std::string& from, const std::string& to)
176{

Callers 2

simplifyNameFunction · 0.85

Calls 1

strMethod · 0.45

Tested by

no test coverage detected