blob: f819c0dfa3c1d91d6e49c040c273ac17b4381fd3 [file] [log] [blame]
// Copyright 2021 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 codegen
import (
"embed"
"text/template"
cpp "go.fuchsia.dev/fuchsia/tools/fidl/lib/fidlgen_cpp"
)
//go:embed *.tmpl
var templates embed.FS
type Generator struct {
*cpp.Generator
}
func NewGenerator(flags *cpp.CmdlineFlags) *cpp.Generator {
return cpp.NewGenerator(flags, templates, template.FuncMap{})
}