1 /* Rename keywords. */ 2 3 #define GOKW(x) %keywordwarn("'" `x` "' is a Go keyword, renaming to 'X"`x`"'",rename="X%s") `x` 4 #define GOBN(x) %builtinwarn("'" `x` "' conflicts with a built-in name in Go") "::"`x` 5 6 GOKW(break); 7 GOKW(case); 8 GOKW(chan); 9 GOKW(const); 10 GOKW(continue); 11 GOKW(default); 12 GOKW(defer); 13 GOKW(else); 14 GOKW(fallthrough); 15 GOKW(for); 16 GOKW(func); 17 GOKW(go); 18 GOKW(goto); 19 GOKW(if); 20 GOKW(import); 21 GOKW(interface); 22 GOKW(package); 23 GOKW(range); 24 GOKW(return); 25 GOKW(select); 26 GOKW(struct); 27 GOKW(switch); 28 GOKW(type); 29 GOKW(var); 30 31 GOBN(map); 32 33 #undef GOKW 34