commit | e7f149b48b454ee4fd65fab58498d53500fc697b | [log] [tgz] |
---|---|---|
author | Christian Kandeler <christian.kandeler@qt.io> | Mon Feb 19 20:00:24 2024 +0100 |
committer | Copybara-Service <copybara-worker@google.com> | Mon Feb 19 11:07:05 2024 -0800 |
tree | 3c501ab876730aa37d2b36c024e2659f49d2b40f | |
parent | e53d9e1b71b63e412506df202c0ade50eb347db1 [diff] |
[clangd] Do not offer extraction to variable for decl init expression (#69477) That would turn: int x = f() + 1; into: auto placeholder = f() + 1; int x = placeholder; which makes little sense and is clearly not intended, as stated explicitly by a comment in eligibleForExtraction(). It appears that the declaration case was simply forgotten (the assignment case was already implemented). GitOrigin-RevId: c9974ae4a0601a9e9f5842114ecd899ab9142786