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

Function invertOperatorForOperandSwap

lib/checkcondition.cpp:949–956  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

947//---------------------------------------------------------------------------
948
949static std::string invertOperatorForOperandSwap(std::string s)
950{
951 if (s[0] == '<')
952 s[0] = '>';
953 else if (s[0] == '>')
954 s[0] = '<';
955 return s;
956}
957
958template<typename T>
959static int sign(const T v) {

Callers 1

parseComparisonFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected