Add declaration attributes to the relevant FunctionAttributes object