Commit 541e9f1
committed
[src][out][opt_args] fix order of reports with colliding locations
When reporting on optional arguments, the different values are sorted by
`abspath` and locations first. When 2 files have the same filename
(found in locations), their `abspath` would be identical too because it
only provides the path of the latest of the 2 files met. Thus, they were
reported together although they belong to different directories.
Using the available builddirs to reconstruct the filepaths instead of
abspath is less error-prone and fixes the ordering issue. Howver, it
incurs the cost of the new strings.1 parent 94ca981 commit 541e9f1
2 files changed
+11
-12
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
858 | 858 | | |
859 | 859 | | |
860 | 860 | | |
861 | | - | |
| 861 | + | |
862 | 862 | | |
863 | 863 | | |
864 | 864 | | |
865 | | - | |
866 | 865 | | |
867 | 866 | | |
868 | 867 | | |
| |||
1037 | 1036 | | |
1038 | 1037 | | |
1039 | 1038 | | |
1040 | | - | |
1041 | | - | |
| 1039 | + | |
| 1040 | + | |
1042 | 1041 | | |
1043 | | - | |
1044 | 1042 | | |
1045 | | - | |
1046 | 1043 | | |
1047 | 1044 | | |
1048 | 1045 | | |
| |||
1091 | 1088 | | |
1092 | 1089 | | |
1093 | 1090 | | |
1094 | | - | |
1095 | | - | |
1096 | | - | |
1097 | | - | |
| 1091 | + | |
| 1092 | + | |
| 1093 | + | |
| 1094 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
554 | 554 | | |
555 | 555 | | |
556 | 556 | | |
557 | | - | |
558 | | - | |
| 557 | + | |
| 558 | + | |
| 559 | + | |
| 560 | + | |
559 | 561 | | |
560 | 562 | | |
561 | 563 | | |
| |||
0 commit comments