Skip to content

Commit

Permalink
Allow msvc diagnostics parser to handle warning/error formats of both…
Browse files Browse the repository at this point in the history
… cl.exe and clang-cl compiler (microsoft#517)
  • Loading branch information
ki-bo committed May 4, 2021
1 parent 8cca2db commit 72f59fa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/diagnostics/msvc.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import * as vscode from 'vscode';
import {oneLess, RawDiagnosticParser, FeedLineResult} from './util';

export const REGEX
= /^\s*(\d+>)?\s*([^\s>].*)\((\d+|\d+,\d+|\d+,\d+,\d+,\d+)\):\s+((?:fatal )?error|warning|info)\s+(\w{1,2}\d+)\s*:\s*(.*)$/;
= /^\s*(\d+>)?\s*([^\s>].*)\((\d+|\d+,\d+|\d+,\d+,\d+,\d+)\):\s+((?:fatal )?error|warning|info)\s*(\w{1,2}\d+)?\s*:\s*(.*)$/;

export class Parser extends RawDiagnosticParser {
doHandleLine(line: string) {
Expand Down

0 comments on commit 72f59fa

Please sign in to comment.