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

Method forwardFind

lib/pathanalysis.h:47–57  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

45 };
46
47 Info forwardFind(std::function<bool(const Info&)> pred) const {
48 Info result{};
49 forward([&](const Info& info) {
50 if (pred(info)) {
51 result = info;
52 return Progress::Break;
53 }
54 return Progress::Continue;
55 });
56 return result;
57 }
58private:
59 const Token * mStart;
60

Callers 2

reachesFunction · 0.80
invalidContainerMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected