Skip to content

Commit a9089be

Browse files
committed
Add extreme verbose comment
1 parent 7d4745a commit a9089be

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

src/codechecker_script.py

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -195,8 +195,12 @@ def analyze():
195195

196196
def fix_path_with_regex(data:str) -> str:
197197
"""
198-
Try resolving Bazel paths using regexes.
199-
Returns the resulting string.
198+
The absolute paths of the analyzed source files found in the plist files
199+
do not point to their original location, but rather wherever bazel copied
200+
them. This might either be in a subdirectory in bazel-bin on the
201+
local machine, or somewhere unrelated if the analysis was executed on a
202+
remote worker. This function tries to replace these paths to the location
203+
of the original location of the source file.
200204
"""
201205
for pattern, replace in BAZEL_PATHS.items():
202206
data = re.sub(pattern, replace, data)

0 commit comments

Comments
 (0)