Closed Bug 1675417 Opened 5 years ago Closed 5 years ago

clang-tidy fails with color codes in LLVM trunk

Categories

(Developer Infrastructure :: Source Code Analysis, defect)

defect

Tracking

(firefox86 fixed)

RESOLVED FIXED
86 Branch
Tracking Status
firefox86 --- fixed

People

(Reporter: away, Assigned: andi)

References

(Blocks 1 open bug)

Details

Attachments

(1 file)

https://github.com/llvm/llvm-project/commit/a07a2c88d96cc48d7d381a0300565090c24b9770 enabled color in clang-tidy

As a result, we get output like:

bugprone-argument-comment.cpp:3:19: note: 'y' declared here

(There are 0x1B ESC characters in there, but I don't think they will appear in Bugzilla. Here's a try log: https://firefoxci.taskcluster-artifacts.net/KWD1xgynTYOISddiLxXOBQ/0/public/logs/live_backing.log)

And so the regex that looks for error messages fails to find them: https://searchfox.org/mozilla-central/rev/c938c7416c633639a5c8ce4412be586eefb48005/python/mozbuild/mozbuild/code_analysis/mach_commands.py#2395

Andi, is this something that you would be able to look at?

Flags: needinfo?(bpostelnicu)
Assignee: nobody → bpostelnicu
Status: NEW → ASSIGNED
Flags: needinfo?(bpostelnicu)
Pushed by bpostelnicu@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/110e246ebc01 static-analysis autotest for `clang-tidy` should filter out colours. r=sylvestre
Status: ASSIGNED → RESOLVED
Closed: 5 years ago
Resolution: --- → FIXED
Target Milestone: --- → 86 Branch
Product: Firefox Build System → Developer Infrastructure
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: