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;

贡献者指南