format.cpp 461 B

12345678910111213141516
  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. #include "toolchain/format/format.h"
  5. #include "toolchain/format/formatter.h"
  6. namespace Carbon::Format {
  7. auto Format(const Lex::TokenizedBuffer& tokens, llvm::raw_ostream& out)
  8. -> bool {
  9. return Formatter(&tokens, &out).Run();
  10. }
  11. } // namespace Carbon::Format