parameters: (filename, clean_lines, linenum, error)
docstring: Checks for C(++) functions for which a Caffe substitute should be used.
  
    For certain native C functions (memset, memcpy), there is a Caffe alternative
    which should be used instead.
  
    Args:
      filename: The name of the current file.
      clean_lines: A CleansedLines instance containing the file.
      linenum: The number of the line to check.
      error: The function to call with any errors found.
docstring_summary: Checks for C(++) functions for which a Caffe substitute should be used.
docstring_tokens: Checks for C ( ++ ) functions for which a Caffe substitute should be used .
function: def CheckCaffeAlternatives(filename, clean_lines, linenum, error):
    """Checks for C(++) functions for which a Caffe substitute should be used.
  
    For certain native C functions (memset, memcpy), there is a Caffe alternative
    which should be used instead.
  
    Args:
      filename: The name of the current file.
      clean_lines: A CleansedLines instance containing the file.
      linenum: The number of the line to check.
      error: The function to call with any errors found.
    """
    line = clean_lines.elided[linenum]
    for function, alts in caffe_alt_function_list:
      ix = line.find(function + '(')
      if ix >= 0 and (ix == 0 or (not line[ix - 1].isalnum() and
                                  line[ix - 1] not in ('_', '.', '>'))):
        disp_alts = ['%s(...)' % alt for alt in alts]
        error(filename, linenum, 'caffe/alt_fn', 2,
              'Use Caffe function %s instead of %s(...).' %
                  (' or '.join(disp_alts), function))
function_tokens: def CheckCaffeAlternatives ( filename , clean_lines , linenum , error ) : line = clean_lines . elided [ linenum ] for function , alts in caffe_alt_function_list : ix = line . find ( function + '(' ) if ix >= 0 and ( ix == 0 or ( not line [ ix - 1 ] . isalnum ( ) and line [ ix - 1 ] not in ( '_' , '.' , '>' ) ) ) : disp_alts = [ '%s(...)' % alt for alt in alts ] error ( filename , linenum , 'caffe/alt_fn' , 2 , 'Use Caffe function %s instead of %s(...).' % ( ' or ' . join ( disp_alts ) , function ) )