================
@@ -95,7 +95,8 @@ void conditional_operator_lifetimebound(int cond) {
     int a, b;
     p = identity(cond ? &a    // expected-warning {{local variable 'a' does 
not live long enough}}
                       : &b);  // expected-warning {{local variable 'b' does 
not live long enough}}
-  }                           // expected-note 2 {{destroyed here}}
+  }                           // expected-note {{local variable 'a' is 
destroyed here}}
+                              // expected-note@-1 {{local variable 'b' is 
destroyed here}}
----------------
usx95 wrote:

nit: I am not a big fan of `expected-note@-1`, it disturbs the indent of the 
text specially if there are other similar warning on the same line.

Consider using trailing `\`:
```
  }                           // expected-note {{local variable 'a' is 
destroyed here}} \
                              // expected-note {{local variable 'b' is 
destroyed here}}
```

https://github.com/llvm/llvm-project/pull/204900
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to