     @editor = editor
 
     if editor.getGrammar().name == 'C++'
-      @grammar = '+'
+      @language = 'c++ -std=c++11'
+      @isCpp = true
+    if editor.getGrammar().name == 'Objective-C++'
+      @language = 'objective-c++'
       @isCpp = true
     if editor.getGrammar().name == 'C'
+      @language = 'c -std=c11'
       @isCpp = false
-      @grammar = 'c'
+    if editor.getGrammar().name == 'Objective-C'
+      @language = 'objective-c'
+      @isCpp = false
 
     super(editor)
 


  # 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'
  isCpp: false
  clangCmd: null
  clangPlusPlusCmd: null

  executablePath: null


      @cmd = "#{@cmd} -w"
    # build the command with arguments to lint the file
    {command, args} = @getCmdAndArgs(filePath)

    if atom.inDevMode()
      console.log 'is node executable: ' + @isNodeExecutable
