public void ParseReport(File report, String charset, String reportRegEx, List<Warning> warnings) throws java.io.FileNotFoundException {
Scanner scanner = new Scanner(report, charset);
Pattern p = Pattern.compile(reportRegEx, Pattern.MULTILINE);
CxxUtils.LOG.debug("Using pattern : '" + p.toString() + "'");
while (scanner.findWithinHorizon(p, 0) != null) {
String filename = scanner.match().group(1);
String line = scanner.match().group(2);
String msg = scanner.match().group(3);
String id = scanner.match().group(4).replaceAll("=$", "");
CxxUtils.LOG.debug("Scanner-matches file='" + filename + "' line='" + line + "' id='" + id + "' msg=" + msg);
warnings.add(new Warning(filename, line, id, msg));