Add location information to template declarations