We can't expand lambda types anyway. Now we simply not offer the code
action instead of showing it and then returning an error in apply().
Details
Details
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
clang-tools-extra/clangd/refactor/tweaks/ExpandAutoType.cpp | ||
---|---|---|
92–93 | i'd pull out a new function and just write !isDeducedAsLambda(Node, Result.getLocation()) or so here... | |
107 | This comment makes it sound a bit more committed to fixing this than I feel :-\ I'd maybe limit this to: getDeducedType() does a traversal, which we want to avoid in prepare(). |
i'd pull out a new function and just write !isDeducedAsLambda(Node, Result.getLocation()) or so here...