From 2adf9c9f502acacf3b846cbf64d8a4739c803de6 Mon Sep 17 00:00:00 2001 From: Yitzhak Mandelbaum Date: Fri, 9 Jun 2023 20:42:09 +0000 Subject: [PATCH] [clang-tidy] Fix error in documentation of bugprone-unchecked-optional-access. The documentation claims that the check recognizes `ASSERT_THAT`, but it doesn't recognize any googletest macros at the moment. This patch removes the reference. --- .../docs/clang-tidy/checks/bugprone/unchecked-optional-access.rst | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/clang-tools-extra/docs/clang-tidy/checks/bugprone/unchecked-optional-access.rst b/clang-tools-extra/docs/clang-tidy/checks/bugprone/unchecked-optional-access.rst index ddb43a3..4736518 100644 --- a/clang-tools-extra/docs/clang-tidy/checks/bugprone/unchecked-optional-access.rst +++ b/clang-tools-extra/docs/clang-tidy/checks/bugprone/unchecked-optional-access.rst @@ -146,9 +146,8 @@ have a value. For example: Ensure that a value exists using common macros ---------------------------------------------- -The check is aware of common macros like ``CHECK``, ``DCHECK``, and -``ASSERT_THAT``. Those can be used to ensure that an optional object has -a value. For example: +The check is aware of common macros like ``CHECK`` and ``DCHECK``. Those can be +used to ensure that an optional object has a value. For example: .. code-block:: c++ -- 2.7.4