Can. 1183 §1 As far as funeral rites are concerned, catechumens are to be reckoned among Christ's faithful.
§2 Children whose parents had intended to have them baptized but who died before baptism, may be allowed Church funeral rites by the local Ordinary.
§3 Provided their own minister is not available, baptized persons belonging to a non-catholic Church or ecclesial community may, in accordance with the prudent judgement of the local Ordinary, be allowed Church funeral rites, unless it is established that they did not wish this.
Can. 1184 §1 Church funeral rites are to be denied to the following, unless they gave some signs of repentance before death:
1° notorious apostates, heretics and schismatics;
2° those who for anti-christian motives chose that their bodies be cremated;
3° other manifest sinners to whom a Church funeral could not be granted without public scandal to the faithful.
§2 If any doubt occurs, the local Ordinary is to be consulted and his judgement followed.
Can. 1185 Any form of funeral Mass is also to be denied to a person who has been excluded from a Church funeral.