Skip to content

clang-tidy: readability-implicit-bool-conversion not working with std::optional #56009

Open
@Amaroker

Description

@Amaroker

I am using llvm-13.0.1

I would expect this to trigger a warning:

std::optional<int> x = false;

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions