Unverified Commit c9974ae4 authored by Christian Kandeler's avatar Christian Kandeler Committed by GitHub
Browse files

[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).
parent f668a08e
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment