llvm/llvm-project

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

Open

#56 009 ouverte le 13 juin 2022

Voir sur GitHub
 (18 commentaires) (0 réactions) (1 assigné)C++ (10 782 forks)batch import
clang-tidygood first issue

Métriques du dépôt

Stars
 (26 378 stars)
Métriques de merge PR
 (Merge moyen 1j 2h) (1 000 PRs mergées en 30 j)

Description

I am using llvm-13.0.1

I would expect this to trigger a warning:

std::optional<int> x = false;

Guide contributeur