do attribute inference for auto functions

Auto functions must have a function body - therefore we can do attribute inference on them.