You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Expanding decltype(expr) is kind of similar to expanding auto. It may be a good idea to directly enable the existing ExpandAutoType action to expand decltype(expr). There is also a FIXME comment saying "support decltype" in ExpandAutoType.cpp.
I have a feeling that this won't bring much enhancement, but I think the cost is still acceptable. Could anyone please have a look and give some suggestions?
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
Fixesclangd/clangd#1456
Reviewed By: sammccall
Differential Revision: https://reviews.llvm.org/D141226
Like the existing code action
Expand auto type
, a new tweak that can expandto
int i;
The text was updated successfully, but these errors were encountered: