The answer Averil's talking about is to put a wide band of vaseline around the trunk, thus stopping the ants climbing up it, but that won't work for your clematis.
Check whether your ants are farming aphids on your clematis; if so, squash the aphids and keep doing so regularly.