Issue 172862
Summary Run analysis in post-order of the call-graph
Labels clang:temporal-safety
Assignees
Reporter usx95
    ```cpp
MyObj* return_object_callee(MyObj* a);

// FIXME: No lifetime annotation suggestion warning when functions are not present in the callee-before-caller pattern.
MyObj* return_object_caller(MyObj* a) {
  return return_object_callee(a);
}

MyObj* return_object_callee(MyObj* a) { // expected-warning {{param should be marked [[clang::lifetimebound]]}}.
 return a;                                  // expected-note {{param returned here}}
}
```
_______________________________________________
llvm-bugs mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to