language_server_subcommand.h 960 B

1234567891011121314151617181920212223242526272829
  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_DRIVER_LANGUAGE_SERVER_SUBCOMMAND_H_
  5. #define CARBON_TOOLCHAIN_DRIVER_LANGUAGE_SERVER_SUBCOMMAND_H_
  6. #include "common/command_line.h"
  7. #include "llvm/ADT/SmallVector.h"
  8. #include "llvm/ADT/StringRef.h"
  9. #include "toolchain/driver/codegen_options.h"
  10. #include "toolchain/driver/driver_env.h"
  11. #include "toolchain/driver/driver_subcommand.h"
  12. namespace Carbon {
  13. // Implements the link subcommand of the driver.
  14. class LanguageServerSubcommand : public DriverSubcommand {
  15. public:
  16. explicit LanguageServerSubcommand();
  17. auto BuildOptions(CommandLine::CommandBuilder& /*b*/) -> void override {}
  18. auto Run(DriverEnv& driver_env) -> DriverResult override;
  19. };
  20. } // namespace Carbon
  21. #endif // CARBON_TOOLCHAIN_DRIVER_LANGUAGE_SERVER_SUBCOMMAND_H_