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

Function findTokensSkipDeadCode

lib/findtoken.h:92–112  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

90}
91
92template<class T, class Predicate, class Evaluate, REQUIRES("T must be a Token class", std::is_convertible<T*, const Token*> )>
93std::vector<T*> findTokensSkipDeadCode(const Library& library,
94 T* start,
95 const Token* end,
96 const Predicate& pred,
97 const Evaluate& evaluate)
98{
99 std::vector<T*> result;
100 (void)internal::findTokensSkipDeadCodeImpl(
101 library,
102 start,
103 end,
104 pred,
105 [&](T* tok) {
106 result.push_back(tok);
107 return false;
108 },
109 evaluate,
110 false);
111 return result;
112}
113
114template<class T, class Predicate, REQUIRES("T must be a Token class", std::is_convertible<T*, const Token*> )>
115std::vector<T*> findTokensSkipDeadCode(const Library& library, T* start, const Token* end, const Predicate& pred)

Callers 1

findAllUsagesFunction · 0.85

Calls 2

push_backMethod · 0.45

Tested by

no test coverage detected