llvm-project
llvm-project copied to clipboard
Highlight lifetimebound function calls part of origin flow chain
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.
Hey @usx95 , Can you assign this issue to me ?
Hey @usx95, I have created a pr #206337 solving this issue. Can you please review it once ?
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