llvm-project icon indicating copy to clipboard operation
llvm-project copied to clipboard

Highlight lifetimebound function calls part of origin flow chain

Open usx95 opened this issue 6 months ago • 3 comments

int* max(int* a [[clang::lifetimebound]], int* b [[clang::lifetimebound]]);

int* foo() {
  int a = 1, b = 2;
  return max(&a, &b);
}

When highlighting that max is an alias to a and b. Also say that this is because the arg is lifetimebound. This allows to clearly see inter-procedural lifetime contracts responsible for the origin flow.

usx95 avatar May 26 '26 11:05 usx95

Hey @usx95 , Can you assign this issue to me ?

iitianpushkar avatar Jun 27 '26 07:06 iitianpushkar

Hey @usx95, I have created a pr #206337 solving this issue. Can you please review it once ?

iitianpushkar avatar Jun 29 '26 06:06 iitianpushkar

This issue seems to be solved by https://github.com/llvm/llvm-project/pull/206337 already. I think we can close this. I was looking for issues to see where I can start contribute to LSA and found this still open. @usx95

benedekaibas avatar Nov 29 '26 16:11 benedekaibas