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 (#517) (#1828)

Co-authored-by: Andreea Isac <48239328+andreeis@users.noreply.github.com>
  • Loading branch information
ki-bo and andreeis authored Jul 8, 2021
1 parent c0cd2a8 commit 4340352
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 @@ -7,7 +7,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 4340352

Please sign in to comment.