Many projects I worked on had code generators. Like all generated files, that code should not be put under version control. Like all generated files, those files should be deleted when the project is cleaned (for example, by the command make clean). Here's another good habit: If you have generated code then replace the sequence "update, commit" with "clean, update, commit". Otherwise, if the location of the generated files changes, then you are likely to run into trouble.