| 709 | } // namespace llvm |
| 710 | |
| 711 | void llvm::format_provider<llvm::json::Value>::format( |
| 712 | const llvm::json::Value &E, raw_ostream &OS, StringRef Options) { |
| 713 | unsigned IndentAmount = 0; |
| 714 | if (!Options.empty() && Options.getAsInteger(/*Radix=*/10, IndentAmount)) |
| 715 | llvm_unreachable("json::Value format options should be an integer"); |
| 716 | json::OStream(OS, IndentAmount).value(E); |
| 717 | } |
| 718 |
no test coverage detected