================
@@ -132,16 +132,16 @@ status check:
.. code:: cpp
- void f1(absl::StatusOr<int> sor) {
- use(*sor); // unsafe: it is unclear whether the status of `sor` is ok.
+ void f1(absl::StatusOr<int> x) {
+ use(*x); // unsafe: it is unclear whether the status of `x` is ok.
}
- void f2(absl::StatusOr<MyStruct> sor) {
- use(sor->member); // unsafe: it is unclear whether the status of `sor` is
ok.
+ void f2(absl::StatusOr<MyStruct> s) {
----------------
rohanjr wrote:
Done, thanks.
https://github.com/llvm/llvm-project/pull/176498
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits