MCPcopy Create free account
hub / github.com/SolaWing/xcode-build-server / groupby_dir

Method groupby_dir

compile_database.py:221–229  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

219 return command.replace("\\=", "=")
220
221 def groupby_dir(self) -> dict[str, set[str]]:
222 if self.dir_info is None: # lazy index dir and cmd
223 self.dir_info = defaultdict(set)
224 self.cmd_info = defaultdict(set)
225 for f, cmd in self.file_info.items():
226 self.dir_info[os.path.dirname(f)].add(f)
227 self.cmd_info[cmd].add(f)
228
229 return self.dir_info
230
231 # hack new file into current compile file
232 # return: set of filekey for match for file. or None if new_file can't be infered

Callers 1

new_fileMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected