Skip to content

Commit

Permalink
Add handling for C++20 keywords
Browse files Browse the repository at this point in the history
Porting this from envoyproxy/envoy#28075
  • Loading branch information
keith committed May 24, 2024
1 parent f458eb9 commit 2404d62
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions templates/cc/register.go
Original file line number Diff line number Diff line change
Expand Up @@ -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":
Expand Down

0 comments on commit 2404d62

Please sign in to comment.