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

Function skipEnumBody

lib/tokenize.cpp:94–101  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

92
93template<typename T>
94static void skipEnumBody(T *&tok)
95{
96 T *defStart = tok;
97 while (Token::Match(defStart, "%name%|::|:"))
98 defStart = defStart->next();
99 if (defStart && defStart->str() == "{")
100 tok = defStart->link()->next();
101}
102
103/**
104 * is tok the start brace { of a class, struct, union, or enum

Callers 1

simplifyNamespaceStdMethod · 0.85

Calls 2

nextMethod · 0.80
strMethod · 0.45

Tested by

no test coverage detected