def METHOD_NAME(filename, **kwargs):
  """Implements the YouCompleteMe API."""
  # kwargs can be used to pass 'client_data' to the YCM configuration. This
  # configuration script does not need any extra information, so
  # pylint: disable=unused-argument
  build_root = DirectoryOfThisScript()
  file_path = os.path.realpath(filename)
  flags = BASE_FLAGS
  clang_flags = FlagsForClangComplete(file_path, build_root)
  if clang_flags:
    flags += clang_flags
  final_flags = MakeRelativePathsInFlagsAbsolute(flags, build_root)
  return {'flags': final_flags}