cleanup C++ compiler open source file function