Hello,
I'm looking for the right tool to prevent a potentially dangerous construct: std::optional<
signin::Tribool>. This can lead to confusing boolean evaluations and is also an equivalent of std:optional<std::optional<bool>>, which is ill-defined.
I'm wondering if this is a valid use case for a plugin. My team is interested in an automated way to prevent these usages, as there's a recurring debate about why not to use this construct. It would be helpful to document this knowledge within an automated tool.
I admit that the scope is quite local and limited to the signin/sync teams of Chrome, so I'm unsure if this is the right approach.
●●●●
Tomasz Jurkiewicz
Software Engineer