llvm/llvm-project

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

Open

#56.009 geöffnet am 13. Juni 2022

Auf GitHub ansehen
 (18 Kommentare) (0 Reaktionen) (1 zugewiesene Person)C++ (10.782 Forks)batch import
clang-tidygood first issue

Repository-Metriken

Stars
 (26.378 Stars)
PR-Merge-Metriken
 (Durchschn. Merge 1T 2h) (1.000 gemergte PRs in 30 T)

Beschreibung

I am using llvm-13.0.1

I would expect this to trigger a warning:

std::optional<int> x = false;

Contributor Guide