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

Function sameline

lib/preprocessor.cpp:45–48  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

43#include <simplecpp.h>
44
45static bool sameline(const simplecpp::Token *tok1, const simplecpp::Token *tok2)
46{
47 return tok1 && tok2 && tok1->location.sameline(tok2->location);
48}
49
50Directive::Directive(const simplecpp::TokenList &tokens, const simplecpp::Location & _loc, std::string _str) :
51 file(tokens.file(_loc)),

Callers 6

addInlineSuppressionsFunction · 0.70
readconditionFunction · 0.70
gotoEndIfFunction · 0.70
getConfigsFunction · 0.70
addRemarkCommentsMethod · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected