llvm/llvm-project

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

Open

#56,009 opened on 2022年6月13日

GitHub で見る
 (18 comments) (0 reactions) (1 assignee)C++ (10,782 forks)batch import
clang-tidygood first issue

Repository metrics

Stars
 (26,378 stars)
PR merge metrics
 (平均マージ 1d 2h) (30d で 1,000 merged PRs)

説明

I am using llvm-13.0.1

I would expect this to trigger a warning:

std::optional<int> x = false;

コントリビューターガイド