MCPcopy Create free account
hub / github.com/OpenMS/OpenMS / CheckForNamespaceIndentation

Function CheckForNamespaceIndentation

src/tests/coding/cpplint.py:3528–3539  ·  view source on GitHub ↗
(filename, nesting_state, clean_lines, line,
                                 error)

Source from the content-addressed store, hash-verified

3526
3527
3528def CheckForNamespaceIndentation(filename, nesting_state, clean_lines, line,
3529 error):
3530 is_namespace_indent_item = (
3531 len(nesting_state.stack) > 1 and
3532 nesting_state.stack[-1].check_namespace_indentation and
3533 isinstance(nesting_state.previous_stack_top, _NamespaceInfo) and
3534 nesting_state.previous_stack_top == nesting_state.stack[-2])
3535
3536 if ShouldCheckNamespaceIndentation(nesting_state, is_namespace_indent_item,
3537 clean_lines.elided, line):
3538 CheckItemIndentationInNamespace(filename, clean_lines.elided,
3539 line, error)
3540
3541
3542def CheckForFunctionLengths(filename, clean_lines, linenum,

Callers 1

ProcessLineFunction · 0.85

Tested by

no test coverage detected