MCPcopy Create free account
hub / github.com/cppcheck-opensource/cppcheck / add_command

Method add_command

tools/creduce.py:39–43  ·  view source on GitHub ↗
(self, cmd, save=False)

Source from the content-addressed store, hash-verified

37 self.commands.append('')
38
39 def add_command(self, cmd, save=False):
40 if save:
41 self.commands.append(cmd + ' 2>&1 | tee .tmp.output')
42 else:
43 self.commands.append(cmd)
44
45 def grep(self, text, file=None):
46 self.add_command("grep -q -F {} {}".format(quote(text), file or '.tmp.output'))

Callers 2

grepMethod · 0.95
creduce.pyFile · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected