"SourceFile" and "TargetFile" custom fields of translation units

Hello.

is there a way to automatically populated those two fields of translation units with the names of the files that they come from?

Thank you