llvm/llvm-project

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

Open

#56.009 aberto em 13 de jun. de 2022

Ver no GitHub
 (18 comments) (0 reactions) (1 assignee)C++ (10.782 forks)batch import
clang-tidygood first issue

Métricas do repositório

Stars
 (26.378 stars)
Métricas de merge de PR
 (Mesclagem média 1d 2h) (1.000 fundiu PRs em 30d)

Description

I am using llvm-13.0.1

I would expect this to trigger a warning:

std::optional<int> x = false;

Guia do colaborador