def CheckAccess(filename, clean_lines, linenum, nesting_state, error):
 line = clean_lines.elided[linenum]
 matched = Match('\\s*(DISALLOW_COPY_AND_ASSIGN|DISALLOW_IMPLICIT_CONSTRUCTORS)', line)
 if (not matched):
  return
 if (nesting_state.stack and isinstance(nesting_state.stack[(-1)], _ClassInfo)):
  if (nesting_state.stack[(-1)].access != 'private'):
   error(filename, linenum, 'readability/constructors', 3, ('%s must be in the private: section' % matched.group(1)))
 else:
  pass

def CheckAccess ( filename , clean_lines , linenum , nesting_state , error ) : line = clean_lines . elided [ linenum ] matched = Match ( '\\s*(DISALLOW_COPY_AND_ASSIGN|DISALLOW_IMPLICIT_CONSTRUCTORS)' , line ) if ( not matched ) : return if ( nesting_state . stack and isinstance ( nesting_state . stack [ ( - 1 ) ] , _ClassInfo ) ) : if ( nesting_state . stack [ ( - 1 ) ] . access != 'private' ) : error ( filename , linenum , 'readability/constructors' , 3 , ( '%s must be in the private: section' % matched . group ( 1 ) ) ) else : pass
checks for improper use of disallow* macros .