In enterprise programming there are a lot of routine tasks that can be solved once and forever with the help of codegeneration. The talk classifies problems applicable for codegeneration in context of C++ and offers a solution that is based on clang tools family. Real-life project examples are presented.