blob: 8e64b0969ce905ce87a0b4a4812147a7c0e615e1 [file] [log] [blame]
{{- /*
--------------------------------------------------------------------------------
Template file for use with tools/src/cmd/gen to generate diagnostic_control.cc
See:
* tools/src/cmd/gen for structures used by this template
* https://golang.org/pkg/text/template/ for documentation on the template syntax
--------------------------------------------------------------------------------
*/ -}}
{{- Import "src/tint/templates/enums.tmpl.inc" -}}
#include "src/tint/builtin/diagnostic_rule.h"
#include <string>
#include "src/tint/utils/string_stream.h"
namespace tint::builtin {
{{ Eval "ParseEnum" (Sem.Enum "core_diagnostic_rule")}}
{{ Eval "EnumOStream" (Sem.Enum "core_diagnostic_rule")}}
{{ Eval "ParseEnum" (Sem.Enum "chromium_diagnostic_rule")}}
{{ Eval "EnumOStream" (Sem.Enum "chromium_diagnostic_rule")}}
} // namespace tint::builtin