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

Function isDereferenceOp

lib/vf_analyzers.cpp:50–59  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

48#include <type_traits>
49
50static bool isDereferenceOp(const Token* tok)
51{
52 if (!tok)
53 return false;
54 if (!tok->astOperand1())
55 return false;
56 if (tok->str() == "*")
57 return true;
58 return tok->str() == "." && tok->originalName() == "->";
59}
60
61struct ValueFlowAnalyzer : Analyzer {
62 const Settings& settings;

Callers 1

analyzeTokenFunction · 0.85

Calls 2

astOperand1Method · 0.80
strMethod · 0.45

Tested by

no test coverage detected