Enable the existing tweak ExpandAutoType to expand
decltype(expr), e.g.
decltype(0) i;
will expand to
int i;
Therefore, rename the tweak ExpandAutoType to ExpandDeducedType.
This patch also fixes some nits,
- avoid replacing reference to a function
- avoid replacing array types and reference to an array
Maybe "Replace with deduced type" would be clearer for both cases?
Then we don't need to track IsAutoType.
(I have no objection with spending a bit of code to provide better text, but given that the cursor is either on top of "auto" or "decltype" I don't think we're actually adding anything by echoing it back)