File tree Expand file tree Collapse file tree 2 files changed +5
-3
lines changed Expand file tree Collapse file tree 2 files changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -54,7 +54,7 @@ Objects/mimalloc/page.c 1
54
54
Objects/mimalloc/random.c 1
55
55
Objects/mimalloc/segment.c 11
56
56
Objects/mimalloc/stats.c 1
57
- Objects/mimalloc/prim/osx/.unix/prim.c 2
57
+ Objects/mimalloc/prim/osx/../ unix/prim.c 2
58
58
Objects/obmalloc.c 6
59
59
Objects/rangeobject.c 10
60
60
Objects/setobject.c 13
@@ -227,4 +227,4 @@ Modules/clinic/_testclinic.c.h 1
227
227
Modules/_testclinic.c 14
228
228
Modules/_testexternalinspection.c 7
229
229
Modules/_ctypes/_ctypes_test_generated.c.h 100
230
- Modules/_ctypes/_ctypes_test.c 1
230
+ Modules/_ctypes/_ctypes_test.c 1
Original file line number Diff line number Diff line change @@ -18,6 +18,7 @@ class FileWarnings(NamedTuple):
18
18
19
19
def extract_warnings_from_compiler_output_clang (
20
20
compiler_output : str ,
21
+ path_prefix : str | None = None ,
21
22
) -> list [dict ]:
22
23
"""
23
24
Extracts warnings from the compiler output when using clang
@@ -31,7 +32,7 @@ def extract_warnings_from_compiler_output_clang(
31
32
if match := clang_warning_regex .match (line ):
32
33
compiler_warnings .append (
33
34
{
34
- "file" : match .group ("file" ),
35
+ "file" : match .group ("file" ). lstrip ( path_prefix ) ,
35
36
"line" : match .group ("line" ),
36
37
"column" : match .group ("column" ),
37
38
"message" : match .group ("message" ),
@@ -263,6 +264,7 @@ def main(argv: list[str] | None = None) -> int:
263
264
elif args .compiler_output_type == "clang" :
264
265
warnings = extract_warnings_from_compiler_output_clang (
265
266
compiler_output_file_contents ,
267
+ args .path_prefix
266
268
)
267
269
268
270
files_with_warnings = get_warnings_by_file (warnings )
32B4
div>
You can’t perform that action at this time.
0 commit comments