
from subprocess import check_output
from shlex import split as sh_split

def FlagsForFile(path, **kwarg):
    flags = sh_split(check_output(["make", "print-flags"]))
    flags.extend(("-Qunused-arguments",
                  "-DDWT_USE_HEADER_BAR=TRUE",
                  "-DDWT_USE_POPOVER=TRUE",
                  "-DDWT_USE_OVERLAY=TRUE"))
    return { 'flags': flags, 'do_cache': True }



from subprocess import check_output
from shlex import split as sh_split

def FlagsForFile(path, **kwarg):
    flags = sh_split(check_output(["make", "print-flags"]))
    flags.extend(("-Qunused-arguments",
                  "-DDWT_USE_POPOVER=TRUE",
                  "-DDWT_USE_OVERLAY=TRUE"))
    return { 'flags': flags, 'do_cache': True }


Remove -DDWT_USE_HEADER_BAR from YCM configuration
Remove -DDWT_USE_HEADER_BAR from YCM configuration

The option does not exist anymore, so there is no reason to keep
it around.

  
  from subprocess import check_output
  from shlex import split as sh_split
  
  def FlagsForFile(path, **kwarg):
      flags = sh_split(check_output(["make", "print-flags"]))
      flags.extend(("-Qunused-arguments",
-                   "-DDWT_USE_HEADER_BAR=TRUE",
                    "-DDWT_USE_POPOVER=TRUE",
                    "-DDWT_USE_OVERLAY=TRUE"))
      return { 'flags': flags, 'do_cache': True }
  
  
Remove -DDWT_USE_HEADER_BAR from YCM configuration
## Code Before:

from subprocess import check_output
from shlex import split as sh_split

def FlagsForFile(path, **kwarg):
    flags = sh_split(check_output(["make", "print-flags"]))
    flags.extend(("-Qunused-arguments",
                  "-DDWT_USE_HEADER_BAR=TRUE",
                  "-DDWT_USE_POPOVER=TRUE",
                  "-DDWT_USE_OVERLAY=TRUE"))
    return { 'flags': flags, 'do_cache': True }


## Instruction:
Remove -DDWT_USE_HEADER_BAR from YCM configuration
## Code After:

from subprocess import check_output
from shlex import split as sh_split

def FlagsForFile(path, **kwarg):
    flags = sh_split(check_output(["make", "print-flags"]))
    flags.extend(("-Qunused-arguments",
                  "-DDWT_USE_POPOVER=TRUE",
                  "-DDWT_USE_OVERLAY=TRUE"))
    return { 'flags': flags, 'do_cache': True }

