[clang-tools-extra] [NFC] [clang-tidy] [doc] document gtest support of statusor check (PR #180662)

Florian Mayer via cfe-commits cfe-commits at lists.llvm.org
Tue Feb 10 09:42:16 PST 2026


================
@@ -93,7 +93,7 @@ known to have ok status. For example:
 Ensuring that the status is ok using common macros
 --------------------------------------------------
 
-The check is aware of common macros like ``ABSL_CHECK`` and ``ASSERT_THAT``.
+The check is aware of common macros like ``ABSL_CHECK`` or ``ABSL_CHECK_OK``.
 Those can be used to ensure that the status of a ``StatusOr<T>`` object
 is ok. For example:
----------------
fmayer wrote:

The object is valid. `ok()` is the name of the method to check whether it is ok (contains a value), so I think ok is the correct term.

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


More information about the cfe-commits mailing list