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

Function compileExpression

lib/tokenlist.cpp:1471–1477  ·  view source on GitHub ↗

* @throws InternalError thrown if maximum AST depth is exceeded */

Source from the content-addressed store, hash-verified

1469 * @throws InternalError thrown if maximum AST depth is exceeded
1470 */
1471static void compileExpression(Token *&tok, AST_state& state)
1472{
1473 if (state.depth > AST_MAX_DEPTH)
1474 throw InternalError(tok, "maximum AST depth exceeded", InternalError::AST); // ticket #5592
1475 if (tok)
1476 compileComma(tok, state);
1477}
1478
1479const Token* isLambdaCaptureList(const Token * tok)
1480{

Callers 5

compileTermFunction · 0.85
compilePrecedence2Function · 0.85
compilePrecedence3Function · 0.85
createAstAtTokenInnerFunction · 0.85
createAstAtTokenFunction · 0.85

Calls 1

compileCommaFunction · 0.85

Tested by

no test coverage detected