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

Function flipMinMax

lib/checkstl.cpp:2813–2820  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2811}
2812
2813static std::string flipMinMax(const std::string &algo)
2814{
2815 if (algo == "std::max_element")
2816 return "std::min_element";
2817 if (algo == "std::min_element")
2818 return "std::max_element";
2819 return algo;
2820}
2821
2822static std::string minmaxCompare(const Token *condTok, nonneg int loopVar, nonneg int assignVar, LoopType loopType, bool invert = false)
2823{

Callers 1

minmaxCompareFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected