================
@@ -104,6 +104,46 @@ is ok. For example:
use(*x);
}
+Ensuring that the status is ok using googletest macros
+------------------------------------------------------
+
+The check is aware of ``googletest`` (or ``gtest``) macros and matchers.
+Accessing the value of a ``StatusOr<T>`` object is considered safe if it
+is preceded by an ``ASSERT_`` macro that ensures the status is ok.
+For example
----------------
EugeneZelenko wrote:
```suggestion
For example:
```
https://github.com/llvm/llvm-project/pull/180662
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits