From ca115cfd131364a094044faab592858151fd291c Mon Sep 17 00:00:00 2001 From: Keith Smiley Date: Fri, 24 May 2024 08:53:47 -0700 Subject: [PATCH] Add handling for C++20 keywords (#1110) Porting this from https://github.com/envoyproxy/envoy/pull/28075 --- templates/cc/register.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/templates/cc/register.go b/templates/cc/register.go index b6253a746..e92798577 100644 --- a/templates/cc/register.go +++ b/templates/cc/register.go @@ -117,6 +117,10 @@ func CcFilePath(f pgs.File, ctx pgsgo.Context, tpl *template.Template) *pgs.File func (fns CCFuncs) methodName(name interface{}) string { nameStr := fmt.Sprintf("%s", name) switch nameStr { + case "concept": + return "concept_" + case "requires": + return "requires_" case "const": return "const_" case "inline":