       @cmd = "#{@cmd} -w"
     # build the command with arguments to lint the file
     {command, args} = @getCmdAndArgs(filePath)
-
-    file = path.basename(args[args.length - 1])
-    if file[file.length - 1] == @grammar
-      file = file.replace(".", "\\.")
-      file = file.replace("++", "\\+\\+")
-      @regex = file + ':(?<line>\\d+):.+: .*((?<error>error)|' +
-                      '(?<warning>warning)): (?<message>.*)'
 
     if atom.inDevMode()
       console.log 'is node executable: ' + @isNodeExecutable

    # save cmd to tmp
    tmp = @cmd

    if @isCpp
      @clangPlusPlusCmd = atom.config.get 'linter-clang.clangPlusPlusCommand'
      @cmd = "#{@clangPlusPlusCmd} #{@cmd} -x c++ -std=c++11 -fcxx-exceptions"
    else
      @clangCmd = atom.config.get 'linter-clang.clangCommand'
      @cmd = "#{@clangCmd} #{@cmd} -x c -std=c11 -fexceptions"

    if @isCpp
      @cmd += ' ' + atom.config.get 'linter-clang.clangDefaultCppFlags'


  # A string, list, tuple or callable that returns a string, list or tuple,
  # containing the command line (with arguments) used to lint.
  cmd: '-fsyntax-only -fno-caret-diagnostics -fexceptions'
  isCpp: false
  clang: null

  executablePath: null

