I ran into a project using .dir-locals.el with a (c-file-offsets [alist]) construct. Every file I visited flagged this variable as an unsafe local file variable.

cc-vars.el provides a safe-local-variable property to sanitize the other local file variable it has, c-file-style, so why not c-file-offsets?

It could be as simple as making the predicate 'listp, or if desired, do something fancier and check that each car of the list is key in the c-offsets-alist.

Thoughts?

Thanks,
Joe