formatter.h 721 B

123456789101112131415161718192021
  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_SEM_IR_FORMATTER_H_
  5. #define CARBON_TOOLCHAIN_SEM_IR_FORMATTER_H_
  6. #include "llvm/Support/raw_ostream.h"
  7. #include "toolchain/lex/tokenized_buffer.h"
  8. #include "toolchain/parse/tree.h"
  9. #include "toolchain/sem_ir/file.h"
  10. namespace Carbon::SemIR {
  11. auto FormatFile(const Lex::TokenizedBuffer& tokenized_buffer,
  12. const Parse::Tree& parse_tree, const File& sem_ir,
  13. llvm::raw_ostream& out) -> void;
  14. } // namespace Carbon::SemIR
  15. #endif // CARBON_TOOLCHAIN_SEM_IR_FORMATTER_H_