Skip to content

Commit

Permalink
Bug 1493017 - Tweak vscode tasks.json problemMatcher regexes to handl…
Browse files Browse the repository at this point in the history
…e clang/Windows output - r=jya

The original regex could match linux&mac outputs that look like:
`/[...]/ffmpeg/FFmpegVideoDecoder.cpp:315:6: error: expected expression`
However on Windows the same outputs have a different line&column format:
`c:/[...]/ffmpeg/FFmpegVideoDecoder.cpp(315,7): error: expected expression`

Differential Revision: https://phabricator.services.mozilla.com/D6442
  • Loading branch information
squelart committed Sep 21, 2018
1 parent c6be172 commit 8557199
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .vscode/tasks.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
"owner": "cpp",
"fileLocation": "absolute",
"pattern": {
"regexp": "^.*?([^\\s]*):(\\d+):(\\d+):\\s+(warning|error):\\s+(.*)$",
"regexp": "^.*?([^\\s]*)[:(](\\d+)[:,](\\d+)[)]?:\\s+(warning|error):\\s+(.*)$",
"file": 1,
"line": 2,
"column": 3,
Expand All @@ -52,7 +52,7 @@
"owner": "cpp",
"fileLocation": "absolute",
"pattern": {
"regexp": "^(.*):(\\d+):(\\d+):\\s+(warning|error):\\s+(.*)$",
"regexp": "^(.*)[:(](\\d+)[:,](\\d+)[)]?:\\s+(warning|error):\\s+(.*)$",
"file": 1,
"line": 2,
"column": 3,
Expand All @@ -77,7 +77,7 @@
"owner": "cpp",
"fileLocation": "absolute",
"pattern": {
"regexp": "^(.*):(\\d+):(\\d+):\\s+(warning|error):\\s+(.*)$",
"regexp": "^(.*)[:(](\\d+)[:,](\\d+)[)]?:\\s+(warning|error):\\s+(.*)$",
"file": 1,
"line": 2,
"column": 3,
Expand Down

0 comments on commit 8557199

Please sign in to comment.