Closed nijssen closed 3 years ago
Should be relatively simple to write a pass to sanitize signal names (https://en.cppreference.com/w/cpp/keyword).
Thanks for letting me know! As part of the near-term refactoring, I'll be adding a layer of indirection for the names used in the emitted C++. With that indirection, will be far easier to rename things, and I think this would be a great thing to use to sanitize those names.
Example:
Will cause an output of:
To which the compiler complains:
This is because
signed
is a C++ keyword, in addition to being the name of that signal.The behavior should be changed to not emit names that are reserved words in C++.