llvm/llvm-project

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

Open

#56,009 建立於 2022年6月13日

在 GitHub 查看
 (18 留言) (0 反應) (1 負責人)C++ (10,782 fork)batch import
clang-tidygood first issue

倉庫指標

Star
 (26,378 star)
PR 合併指標
 (平均合併 1天 2小時) (30 天內合併 1,000 個 PR)

描述

I am using llvm-13.0.1

I would expect this to trigger a warning:

std::optional<int> x = false;

貢獻者指南