parameters: (filename, **kwargs)
return_statement: return {'flags': final_flags}
docstring: Implements the YouCompleteMe API.
docstring_summary: Implements the YouCompleteMe API.
docstring_tokens: Implements the YouCompleteMe API .
function: def FlagsForFile(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}
function_tokens: def FlagsForFile ( filename , * * kwargs ) : # 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 }