Tool for automatically upgrading D source code