Skip to content

Commit ca115cf

Browse files
authored
Add handling for C++20 keywords (#1110)
Porting this from envoyproxy/envoy#28075
1 parent f458eb9 commit ca115cf

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

templates/cc/register.go

+4
Original file line numberDiff line numberDiff line change
@@ -117,6 +117,10 @@ func CcFilePath(f pgs.File, ctx pgsgo.Context, tpl *template.Template) *pgs.File
117117
func (fns CCFuncs) methodName(name interface{}) string {
118118
nameStr := fmt.Sprintf("%s", name)
119119
switch nameStr {
120+
case "concept":
121+
return "concept_"
122+
case "requires":
123+
return "requires_"
120124
case "const":
121125
return "const_"
122126
case "inline":

0 commit comments

Comments
 (0)