MCPcopy Index your code
hub / github.com/nodejs/node / CheckForNamespaceIndentation

Function CheckForNamespaceIndentation

tools/cpplint.py:4056–4065  ·  view source on GitHub ↗
(filename, nesting_state, clean_lines, line, error)

Source from the content-addressed store, hash-verified

4054
4055
4056def CheckForNamespaceIndentation(filename, nesting_state, clean_lines, line, error):
4057 is_namespace_indent_item = len(nesting_state.stack) >= 1 and (
4058 isinstance(nesting_state.stack[-1], _NamespaceInfo)
4059 or (isinstance(nesting_state.previous_stack_top, _NamespaceInfo))
4060 )
4061
4062 if ShouldCheckNamespaceIndentation(
4063 nesting_state, is_namespace_indent_item, clean_lines.elided, line
4064 ):
4065 CheckItemIndentationInNamespace(filename, clean_lines.elided, line, error)
4066
4067
4068def CheckForFunctionLengths(filename, clean_lines, linenum, function_state, error):

Callers 1

ProcessLineFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…