MCPcopy Create free account
hub / github.com/PlatformLab/Arachne / CloseExpression

Function CloseExpression

scripts/cpplint.py:1570–1611  ·  view source on GitHub ↗

If input points to ( or { or [ or <, finds the position that closes it. If lines[linenum][pos] points to a '(' or '{' or '[' or '<', finds the linenum/pos that correspond to the closing of the expression. TODO(unknown): cpplint spends a fair bit of time matching parentheses. Ideally we wou

(clean_lines, linenum, pos)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 9

CheckOperatorSpacingFunction · 0.85
CheckBracesSpacingFunction · 0.85
CheckBracesFunction · 0.85
CheckTrailingSemicolonFunction · 0.85
CheckCheckFunction · 0.85
IsDerivedFunctionFunction · 0.85
CheckCastsFunction · 0.85
CheckRedundantVirtualFunction · 0.85

Calls 3

MatchFunction · 0.85
NumLinesMethod · 0.80

Tested by

no test coverage detected