MCPcopy Index your code
hub / github.com/Tencent/CodeAnalysis / compile

Method compile

client/tool/jafc.py:33–45  ·  view source on GitHub ↗
(self, params)

Source from the content-addressed store, hash-verified

31 self.out_dir = None
32
33 def compile(self, params):
34 LogPrinter.info("Tool compile start.")
35 build_cmd = params.get("build_cmd")
36 if not build_cmd:
37 raise CompileTaskError("编译语言项目执行静态分析需要输入编译命令,请填入编译命令后重试!")
38 BasicCompile(
39 params,
40 sensitive=self.sensitive,
41 sensitive_word_maps=self.sensitive_word_maps,
42 build_cmd=BasicCompile.generate_shell_file(build_cmd),
43 ).compile()
44 LogPrinter.info("Tool compile done.")
45 return True
46
47 def analyze(self, params):
48 source_dir = params["source_dir"]

Callers

nothing calls this directly

Calls 5

CompileTaskErrorClass · 0.90
BasicCompileClass · 0.90
generate_shell_fileMethod · 0.80
infoMethod · 0.45
getMethod · 0.45

Tested by

no test coverage detected