[clang] [clang-tools-extra] [clang-tidy] For bugprone-unchecked-optional-access add simple BoolModel option (PR #240848)

Jan Voung via cfe-commits cfe-commits at lists.llvm.org
Tue Nov 10 12:57:44 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
----------------
jvoung wrote:

Good point! Went with `BoolSolverModel` (it does affect the "solver" but also changes the join modeling)

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


More information about the cfe-commits mailing list