================ @@ -0,0 +1,280 @@ +//===- lib/Support/YAMLGenerateSchema.cpp ---------------------------------===// +// +// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. +// See https://llvm.org/LICENSE.txt for license information. +// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception +// +//===----------------------------------------------------------------------===// + +#include "llvm/Support/YAMLGenerateSchema.h" +#include "llvm/Support/JSON.h" + +using namespace llvm; +using namespace yaml; + +//===----------------------------------------------------------------------===// +// GenerateSchema +//===----------------------------------------------------------------------===// + +GenerateSchema::GenerateSchema(raw_ostream &RO) : RO(RO) {} + +IOKind GenerateSchema::getKind() const { return IOKind::GeneratingSchema; } + +bool GenerateSchema::outputting() const { return false; } + +bool GenerateSchema::mapTag(StringRef, bool) { return false; } + +void GenerateSchema::beginMapping() { + auto *Top = getTopSchema(); ---------------- tgs-sc wrote:
@EugeneZelenko, ping. And can you please leave some more comments to the PR https://github.com/llvm/llvm-project/pull/133284, as I now divided this one into three parts. https://github.com/llvm/llvm-project/pull/164412 _______________________________________________ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
