compiler: simplified t_cpp_generator.cc