Just to throw another data point out there. For the eldritch knight, War Magic says, "when you use your action to cast a cantrip, you can make one weapon attack as a bonus action". So before you cast the cantrip, you have no bonus action available, as nothing has granted you the bonus action...