barra79 wrote:
I think this sentence means "Who did you give it to?"
Could you please provide a literal word-for-word translation of this sentence. I'm struggling to understand the function of some of the words in it.
Here's my attempt, which might explain my confusion:
Cé - Whom
dó - to him
ar - that
thug - gave
tú you
é - it.
Why is "to him" needed, for example?
Because it's Irish, not English

In English you can say "I give you something".
But in Irish a preposition is necessary: "Tugaim rud ar bith
duit"
That's why a preposition is necessary in questions as well.
Cé dó? You use the third person singular masculine pronoun dó = to him in questions, even in case you know it is a woman. So, even cé dóibh is used only in rather limited situations, e.g. somebody already told you, he gave it "dóibh" and you ask back who is actually meant by "dóibh": Cé dóibh? I think in a similar situation you could ask "Cé di?" as well, but not elsewhere.