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

Method isPolyspaceComment

lib/suppressions.cpp:909–916  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

907
908
909bool polyspace::isPolyspaceComment(const std::string &comment)
910{
911 const std::string polyspace = "polyspace";
912 const std::string::size_type pos = comment.find_first_not_of("/* ");
913 if (pos == std::string::npos)
914 return false;
915 return comment.compare(pos, polyspace.size(), polyspace, 0, polyspace.size()) == 0;
916}

Callers

nothing calls this directly

Calls 2

compareMethod · 0.45
sizeMethod · 0.45

Tested by

no test coverage detected