MCPcopy Create free account
hub / github.com/4paradigm/OpenMLDB / CheckForNamespaceIndentation

Function CheckForNamespaceIndentation

steps/cpplint.py:3542–3553  ·  view source on GitHub ↗
(filename, nesting_state, clean_lines, line,
                                 error)

Source from the content-addressed store, hash-verified

3540
3541
3542def CheckForNamespaceIndentation(filename, nesting_state, clean_lines, line,
3543 error):
3544 is_namespace_indent_item = (
3545 len(nesting_state.stack) > 1 and
3546 nesting_state.stack[-1].check_namespace_indentation and
3547 isinstance(nesting_state.previous_stack_top, _NamespaceInfo) and
3548 nesting_state.previous_stack_top == nesting_state.stack[-2])
3549
3550 if ShouldCheckNamespaceIndentation(nesting_state, is_namespace_indent_item,
3551 clean_lines.elided, line):
3552 CheckItemIndentationInNamespace(filename, clean_lines.elided,
3553 line, error)
3554
3555
3556def CheckForFunctionLengths(filename, clean_lines, linenum,

Callers 1

ProcessLineFunction · 0.85

Tested by

no test coverage detected