tools: improve show_ancient_deprecations.v, by ignoring false positives for deprecation tags in // comments

This commit is contained in:
Delyan Angelov 2025-05-05 09:27:14 +03:00
parent 84e2fd8c51
commit 5944f3b0a0
No known key found for this signature in database
GPG key ID: 66886C0F12D595ED

View file

@ -55,7 +55,7 @@ fn main() {
}
lines := file_content.split_into_lines()
for line_num := lines.len - 1; line_num > 0; line_num-- {
line := lines[line_num]
line := lines[line_num].all_before('//')
mut is_deprecation_line := false
if line.contains('\tif ') {
continue