Skip to content

Commit

Permalink
Merge branch 'main' into dependabot/go_modules/golang.org/x/tools-0.3.0
Browse files Browse the repository at this point in the history
  • Loading branch information
elliotmjackson authored Nov 28, 2022
2 parents 082d6b8 + 774e011 commit b17b0ed
Showing 1 changed file with 0 additions and 13 deletions.
13 changes: 0 additions & 13 deletions templates/ccnop/file.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,10 +25,8 @@ using std::string;
} // namespace
{{ end }}
#define X_{{ .Package.ProtoName.ScreamingSnakeCase }}_{{ .File.InputPath.BaseName | screaming_snake_case }}(X) \
{{ range .AllMessages -}}
{{- if not (ignored .) -}}
X({{class . }}) \
{{ end -}}
{{ end }}
`
Expand All @@ -37,19 +35,8 @@ const moduleFileTpl = `// Code generated by protoc-gen-validate
// source: {{ .InputPath }}
// DO NOT EDIT!!!
#include "{{ output .File ".validate.h" }}"
namespace pgv {
namespace validate {
using std::string;
{{ range .AllMessages }}
{{- if not (ignored .) -}}
{{- if not (disabled .) -}}
pgv::Validator<{{ class . }}> {{ staticVarName . }}(static_cast<bool(*)(const {{ class .}}&, pgv::ValidationMsg*)>({{ package .}}::Validate));
{{- end -}}
{{ end }}
{{ end }}
} // namespace validate
} // namespace pgv
Expand Down

0 comments on commit b17b0ed

Please sign in to comment.