If a Hexblade Warlock used the cantrip Shillelagh and attacked with a Quarterstaff would the class feature Hex Warrior and Shillelagh both apply to the attack and damage rolls?
When you attack with that weapon, you can use your Charisma modifier, instead of Strength or Dexterity, for the attack and damage rolls. This benefit lasts until you finish a long rest.
For the duration, you can use your spellcasting ability instead of Strength for the attack and damage rolls of melee attacks using that weapon, and the weapon's damage die becomes a d8. The weapon also becomes magical, if it isn't already. The spell ends if you cast it again or if you let go of the weapon.