This has turned out to be an extraordinary year for dealmakers after a trade war kicked off by Donald Trump derailed activity in the second quarter.