file-local function should be marked static. `filename` argument should be const-ref