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

Function isFloatSuffix

externals/simplecpp/simplecpp.cpp:1016–1022  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1014}
1015
1016static bool isFloatSuffix(const simplecpp::Token *tok)
1017{
1018 if (!tok || tok->str().size() != 1U)
1019 return false;
1020 const char c = std::tolower(tok->str()[0]);
1021 return c == 'f' || c == 'l';
1022}
1023
1024static const std::string AND("and");
1025static const std::string BITAND("bitand");

Callers 1

combineOperatorsMethod · 0.85

Calls 2

sizeMethod · 0.45
strMethod · 0.45

Tested by

no test coverage detected