MCPcopy Create free account
hub / github.com/apache/mesos / CheckForNamespaceIndentation

Function CheckForNamespaceIndentation

support/cpplint.py:3035–3046  ·  view source on GitHub ↗
(filename, nesting_state, clean_lines, line,
                                 error)

Source from the content-addressed store, hash-verified

3033
3034
3035def CheckForNamespaceIndentation(filename, nesting_state, clean_lines, line,
3036 error):
3037 is_namespace_indent_item = (
3038 len(nesting_state.stack) > 1 and
3039 nesting_state.stack[-1].check_namespace_indentation and
3040 isinstance(nesting_state.previous_stack_top, _NamespaceInfo) and
3041 nesting_state.previous_stack_top == nesting_state.stack[-2])
3042
3043 if ShouldCheckNamespaceIndentation(nesting_state, is_namespace_indent_item,
3044 clean_lines.elided, line):
3045 CheckItemIndentationInNamespace(filename, clean_lines.elided,
3046 line, error)
3047
3048
3049def CheckForFunctionLengths(filename, clean_lines, linenum,

Callers 1

ProcessLineFunction · 0.85

Tested by

no test coverage detected