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

Method functionLike

externals/simplecpp/simplecpp.cpp:1702–1707  ·  view source on GitHub ↗

is this a function like macro */

Source from the content-addressed store, hash-verified

1700
1701 /** is this a function like macro */
1702 bool functionLike() const {
1703 return nameTokDef->next &&
1704 nameTokDef->next->op == '(' &&
1705 sameline(nameTokDef, nameTokDef->next) &&
1706 nameTokDef->next->location.col == nameTokDef->location.col + nameTokDef->str().size();
1707 }
1708
1709 /** base class for errors */
1710 struct Error {

Callers 4

expandMethod · 0.80
recursiveExpandTokenMethod · 0.80
expandTokenMethod · 0.80
expandHashHashMethod · 0.80

Calls 3

samelineFunction · 0.70
sizeMethod · 0.45
strMethod · 0.45

Tested by

no test coverage detected