Rename functionToCBuffer2 to something sensible and move it inside the visitor class
Rename toCBufferWithAttributes and move it into a free function
Move Tfunction and Terror special cases into Type::toCBuffer