Lines Matching refs:nesting_state

3278                                   nesting_state, error):
3300 nesting_state: A NestingState instance which maintains information about
3364 classinfo = nesting_state.InnermostClass()
3534 def CheckForNamespaceIndentation(filename, nesting_state, clean_lines, line,
3537 len(nesting_state.stack) > 1 and
3538 nesting_state.stack[-1].check_namespace_indentation and
3539 isinstance(nesting_state.previous_stack_top, _NamespaceInfo) and
3540 nesting_state.previous_stack_top == nesting_state.stack[-2])
3542 if ShouldCheckNamespaceIndentation(nesting_state, is_namespace_indent_item,
3673 def CheckSpacing(filename, clean_lines, linenum, nesting_state, error):
3686 nesting_state: A NestingState instance which maintains information about
3713 not nesting_state.InNamespaceBody() and
3714 not nesting_state.InExternC()):
3991 def _IsType(clean_lines, nesting_state, expr):
3996 nesting_state: A NestingState instance which maintains information about
4018 block_index = len(nesting_state.stack) - 1
4020 if isinstance(nesting_state.stack[block_index], _NamespaceInfo):
4029 last_line = nesting_state.stack[block_index].starting_linenum
4033 next_block_start = nesting_state.stack[block_index - 1].starting_linenum
4054 def CheckBracesSpacing(filename, clean_lines, linenum, nesting_state, error):
4061 nesting_state: A NestingState instance which maintains information about
4117 and not _IsType(clean_lines, nesting_state, leading_text)):
4813 def CheckStyle(filename, clean_lines, linenum, file_extension, nesting_state,
4826 nesting_state: A NestingState instance which maintains information about
4855 classinfo = nesting_state.InnermostClass()
4926 CheckSpacing(filename, clean_lines, linenum, nesting_state, error)
4930 CheckBracesSpacing(filename, clean_lines, linenum, nesting_state, error)
4934 classinfo = nesting_state.InnermostClass()
5232 include_state, nesting_state, error):
5244 nesting_state: A NestingState instance which maintains information about
5563 nesting_state, error):
5573 nesting_state: A NestingState instance which maintains information about
5642 if (nesting_state.previous_stack_top and
5643 not (isinstance(nesting_state.previous_stack_top, _ClassInfo) or
5644 isinstance(nesting_state.previous_stack_top, _NamespaceInfo))):
6283 def IsBlockInNameSpace(nesting_state, is_forward_declaration):
6287 nesting_state: The _NestingState object that contains info about our state.
6293 return len(nesting_state.stack) >= 1 and (
6294 isinstance(nesting_state.stack[-1], _NamespaceInfo))
6297 return (len(nesting_state.stack) > 1 and
6298 nesting_state.stack[-1].check_namespace_indentation and
6299 isinstance(nesting_state.stack[-2], _NamespaceInfo))
6302 def ShouldCheckNamespaceIndentation(nesting_state, is_namespace_indent_item,
6307 nesting_state: The current nesting state.
6329 return IsBlockInNameSpace(nesting_state, is_forward_declaration)
6344 include_state, function_state, nesting_state, error,
6356 nesting_state: A NestingState instance which maintains information about
6366 nesting_state.Update(filename, clean_lines, line, error)
6367 CheckForNamespaceIndentation(filename, nesting_state, clean_lines, line,
6369 if nesting_state.InAsmBlock(): return
6372 CheckStyle(filename, clean_lines, line, file_extension, nesting_state, error)
6374 nesting_state, error)
6375 CheckForNonConstReference(filename, clean_lines, line, nesting_state, error)
6377 nesting_state, error)
6479 nesting_state = NestingState()
6493 include_state, function_state, nesting_state, error,
6496 nesting_state.CheckCompletedBlocks(filename, error)