[clang] [Lifetime Safety] Public Vs Private Annotation Suggestions (PR #171972)

Utkarsh Saxena via cfe-commits cfe-commits at lists.llvm.org
Fri Dec 12 10:13:54 PST 2025


================
@@ -89,16 +122,29 @@ void test_getView_on_temporary() {
   (void)sv;
 }
 
+// FIXME: Fails to generate lifetime suggestion for reference types as these are not handled currently.
+MyObj& return_reference (MyObj& a, MyObj& b, bool c) {
+  if(c) {
----------------
usx95 wrote:

nit: add a space after `if`

https://github.com/llvm/llvm-project/pull/171972


More information about the cfe-commits mailing list