   regex: '.+:(?<line>\\d+):.+: .*((?<error>error)|(?<warning>warning)): (?<message>.*)'
 
   lintFile: (filePath, callback) ->
+    # save cmd to tmp
+    tmp = @cmd
+    includepath = atom.config.get 'linter-clang.clangIncludePath'
+    split = includepath.split " "
+    # concat includepath
+    for custompath in split
+      if custompath.length > 0
+        @cmd = "#{@cmd} -I #{custompath}"
     # build the command with arguments to lint the file
     {command, args} = @getCmdAndArgs(filePath)
 

        @processMessage(output, callback)

    new Process({command, args, options, stdout, stderr})

  constructor: (editor) ->
    super(editor)


    atom.config.observe 'linter-clang.clangExecutablePath', =>
      @executablePath = atom.config.get 'linter-clang.clangExecutablePath'

  destroy: ->
    atom.config.unobserve 'linter-clang.clangExecutablePath'
