Sha256: fb7edd4e18b59a640b68acec02ca55ec0ed8edf5e909f9ff7fa3a25f16f10b1d
Contents?: true
Size: 1.22 KB
Versions: 10
Compression:
Stored size: 1.22 KB
Contents
require 'cxxproject/errorparser/error_parser' module Cxxproject class GreenHillsLinkerErrorParser < ErrorParser # detect this: # C++ prelinker: recompiling "x/y.z" # "blah.h", line 1: warning #123-D: expression has no effect # uiuiui # ^ # detected during: # instantiation of ... # dblink: WARNING: 10 problems were encountered while processing debug information, see "Debug/xy.dle" for details. def initialize() @error_expression = /ld: (.+)/ end def scan_lines(consoleOutput, proj_dir) res = [] error_severity = 255 consoleOutput.each_line do |l| l.rstrip! d = ErrorDesc.new scan_res = l.scan(@error_expression) if scan_res.length == 0 # msg will end with the beginning of the next message d.severity = error_severity d.message = l elsif scan_res.length > 0 d.file_name = proj_dir d.line_number = 0 d.message = scan_res[0][0] d.severity = SEVERITY_ERROR error_severity = d.severity end res << d end [res, consoleOutput] end end end
Version data entries
10 entries across 10 versions & 1 rubygems