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

Method __scan_file_callback__

client/tool/cpplint.py:156–162  ·  view source on GitHub ↗
(self, file_path)

Source from the content-addressed store, hash-verified

154 self.mutex = threading.Lock() # 线程锁,访问全局变量时需要上锁
155
156 def __scan_file_callback__(self, file_path):
157 file_result = CpplintRunner().run_cpplint_on_file(
158 file_path, self.cmd_args, self.regex_client, self.source_dir, self.rules
159 )
160 self.mutex.acquire() # 上锁
161 self.issues.extend(file_result)
162 self.mutex.release() # 解锁
163
164 def run(self, file_paths):
165 callback_queue = CallbackQueue(min_threads=20, max_threads=1000)

Callers

nothing calls this directly

Calls 2

CpplintRunnerClass · 0.85
run_cpplint_on_fileMethod · 0.80

Tested by

no test coverage detected