[clang] [clang-tools-extra] [clang-tidy] For bugprone-unchecked-optional-access add simple BoolModel option (PR #240848)
Zeyi Xu via cfe-commits
cfe-commits at lists.llvm.org
Tue Nov 10 18:02:51 PST 2026
================
@@ -324,3 +326,15 @@ to `optional::value()`. Diagnostics for `operator*()` and
intentionally rely on `value()` for defined, guarded access while still
flagging UB-prone operator dereferences. Default is `false`.
```
+
+```{option} BoolModel
----------------
zeyi2 wrote:
It seems that the Option name in documentation was not updated in the last commit :)
Just a small reminder in case you forgot to update it.
https://github.com/llvm/llvm-project/pull/240848
More information about the cfe-commits
mailing list