blob: 37a323a0757effe5a39c4d31953f5b0534e1a4c3 [file] [log] [blame]
// Copyright 2020 The Fuchsia Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
package main
import (
"go.fuchsia.dev/fuchsia/tools/fidl/fidlgen_libfuzzer/codegen"
cpp "go.fuchsia.dev/fuchsia/tools/fidl/lib/fidlgen_cpp"
)
func main() {
flags := cpp.NewCmdlineFlags("libfuzzer", nil)
root := cpp.Compile(flags.ParseAndLoadIR())
generator := codegen.NewGenerator(flags)
generator.GenerateFiles(root, []string{"Header", "Source",
"DecoderEncoderHeader", "DecoderEncoderSource"})
}