parameters: (self, files)
return_statement: return self.ProcessFiles(all_files)
docstring: Runs processor only on affected files.
docstring_summary: Runs processor only on affected files.
docstring_tokens: Runs processor only on affected files .
function: def RunOnFiles(self, files):
      """Runs processor only on affected files."""
  
      # Helper for getting directory pieces.
      dirs = lambda f: dirname(f).split(os.sep)
  
      # Path offsets where to look (to be in sync with RunOnPath).
      # Normalize '.' to check for it with str.startswith.
      search_paths = [('' if p == '.' else p) for p in self.GetPathsToSearch()]
  
      all_files = [
        f.AbsoluteLocalPath()
        for f in files
        if (not self.IgnoreFile(f.LocalPath()) and
            self.IsRelevant(f.LocalPath()) and
            all(not self.IgnoreDir(d) for d in dirs(f.LocalPath())) and
            any(map(f.LocalPath().startswith, search_paths)))
      ]
  
      return self.ProcessFiles(all_files)
function_tokens: def RunOnFiles ( self , files ) : # Helper for getting directory pieces. dirs = lambda f : dirname ( f ) . split ( os . sep ) # Path offsets where to look (to be in sync with RunOnPath). # Normalize '.' to check for it with str.startswith. search_paths = [ ( '' if p == '.' else p ) for p in self . GetPathsToSearch ( ) ] all_files = [ f . AbsoluteLocalPath ( ) for f in files if ( not self . IgnoreFile ( f . LocalPath ( ) ) and self . IsRelevant ( f . LocalPath ( ) ) and all ( not self . IgnoreDir ( d ) for d in dirs ( f . LocalPath ( ) ) ) and any ( map ( f . LocalPath ( ) . startswith , search_paths ) ) ) ] return self . ProcessFiles ( all_files )