Sha256: 4d5d4addc3314e2b44a9cb346eb275381671596aed31fd2d8129f24cfc54b2dd

Contents?: true

Size: 1 KB

Versions: 86

Compression:

Stored size: 1 KB

Contents

require 'bake/toolchain/errorparser/error_parser'

module Bake
  class MSVCLinkerErrorParser < ErrorParser

    def initialize()
      # todo: is every line an error?
    end

    def scan_lines(consoleOutput, proj_dir)
      res = []
      consoleOutputFiltered = ""
      filterLine = 0

      consoleOutput[0].each_line do |l|
      filterLine = filterLine + 1
        next if (filterLine == 1 and l.include?"Microsoft (R)")
        next if (filterLine == 2 and l.include?"Copyright (C)")
        next if (filterLine == 3 and l.strip.empty?)

        l.rstrip!
        d = ErrorDesc.new
        d.file_name = proj_dir
        d.line_number = 0
        d.message = l
        if l.length == 0
          d.severity = SEVERITY_OK
        elsif l.include?" Warning:"
          d.severity = SEVERITY_WARNING
        else
          d.severity = SEVERITY_ERROR
        end
        consoleOutputFiltered << l
        res << d
      end
      consoleOutput[0] = consoleOutputFiltered
      [res, consoleOutput[0]]
    end


  end
end

Version data entries

86 entries across 86 versions & 1 rubygems

Version Path
bake-toolkit-2.29.0 lib/bake/toolchain/errorparser/msvc_linker_error_parser.rb
bake-toolkit-2.28.1 lib/bake/toolchain/errorparser/msvc_linker_error_parser.rb
bake-toolkit-2.28.0 lib/bake/toolchain/errorparser/msvc_linker_error_parser.rb
bake-toolkit-2.27.0 lib/bake/toolchain/errorparser/msvc_linker_error_parser.rb
bake-toolkit-2.26.1 lib/bake/toolchain/errorparser/msvc_linker_error_parser.rb
bake-toolkit-2.26.0 lib/bake/toolchain/errorparser/msvc_linker_error_parser.rb
bake-toolkit-2.25.1 lib/bake/toolchain/errorparser/msvc_linker_error_parser.rb
bake-toolkit-2.25.0 lib/bake/toolchain/errorparser/msvc_linker_error_parser.rb
bake-toolkit-2.24.6 lib/bake/toolchain/errorparser/msvc_linker_error_parser.rb
bake-toolkit-2.24.5 lib/bake/toolchain/errorparser/msvc_linker_error_parser.rb
bake-toolkit-2.24.4 lib/bake/toolchain/errorparser/msvc_linker_error_parser.rb
bake-toolkit-2.24.3 lib/bake/toolchain/errorparser/msvc_linker_error_parser.rb
bake-toolkit-2.24.2 lib/bake/toolchain/errorparser/msvc_linker_error_parser.rb
bake-toolkit-2.24.1 lib/bake/toolchain/errorparser/msvc_linker_error_parser.rb
bake-toolkit-2.24.0 lib/bake/toolchain/errorparser/msvc_linker_error_parser.rb
bake-toolkit-2.23.12 lib/bake/toolchain/errorparser/msvc_linker_error_parser.rb
bake-toolkit-2.23.8 lib/bake/toolchain/errorparser/msvc_linker_error_parser.rb
bake-toolkit-2.23.7 lib/bake/toolchain/errorparser/msvc_linker_error_parser.rb
bake-toolkit-2.23.6 lib/bake/toolchain/errorparser/msvc_linker_error_parser.rb
bake-toolkit-2.23.5 lib/bake/toolchain/errorparser/msvc_linker_error_parser.rb