MCPcopy Index your code
hub / github.com/cpplint/cpplint / CheckForNamespaceIndentation

Function CheckForNamespaceIndentation

cpplint.py:3988–3997  ·  view source on GitHub ↗
(filename, nesting_state, clean_lines, line, error)

Source from the content-addressed store, hash-verified

3986
3987
3988def CheckForNamespaceIndentation(filename, nesting_state, clean_lines, line, error):
3989 is_namespace_indent_item = len(nesting_state.stack) >= 1 and (
3990 isinstance(nesting_state.stack[-1], _NamespaceInfo)
3991 or (isinstance(nesting_state.previous_stack_top, _NamespaceInfo))
3992 )
3993
3994 if ShouldCheckNamespaceIndentation(
3995 nesting_state, is_namespace_indent_item, clean_lines.elided, line
3996 ):
3997 CheckItemIndentationInNamespace(filename, clean_lines.elided, line, error)
3998
3999
4000def CheckForFunctionLengths(filename, clean_lines, linenum, function_state, error):

Callers 1

ProcessLineFunction · 0.85

Tested by

no test coverage detected