language_server.h 632 B

12345678910111213141516171819
  1. // Part of the Carbon Language project, under the Apache License v2.0 with LLVM
  2. // Exceptions. See /LICENSE for license information.
  3. // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
  4. #ifndef CARBON_TOOLCHAIN_LANGUAGE_SERVER_LANGUAGE_SERVER_H_
  5. #define CARBON_TOOLCHAIN_LANGUAGE_SERVER_LANGUAGE_SERVER_H_
  6. #include "common/error.h"
  7. #include "common/ostream.h"
  8. namespace Carbon::LanguageServer {
  9. // Start the language server.
  10. auto Run(std::FILE* input_stream, llvm::raw_ostream& output_stream)
  11. -> ErrorOr<Success>;
  12. } // namespace Carbon::LanguageServer
  13. #endif // CARBON_TOOLCHAIN_LANGUAGE_SERVER_LANGUAGE_SERVER_H_