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

Function rawlink

addons/misra.py:87–100  ·  view source on GitHub ↗
(rawtoken)

Source from the content-addressed store, hash-verified

85
86
87def rawlink(rawtoken):
88 if rawtoken.str == '}':
89 indent = 0
90 while rawtoken:
91 if rawtoken.str == '}':
92 indent = indent + 1
93 elif rawtoken.str == '{':
94 indent = indent - 1
95 if indent == 0:
96 break
97 rawtoken = rawtoken.previous
98 else:
99 rawtoken = None
100 return rawtoken
101
102
103# Identifiers described in Section 7 "Library" of C90 Standard

Callers 1

misra_15_6Method · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected