llvm / llvm-project

The LLVM Project is a collection of modular and reusable compiler and toolchain technologies.
http://llvm.org
Other
29.16k stars 12.03k forks source link

clang-tidy cppcoreguidelines-pro-type-member-init false warn. #59249

Open runhwguo opened 1 year ago

runhwguo commented 1 year ago

clang-tidy: 15.0.5 rule: cppcoreguidelines-pro-type-member-init language: C++ 17 theme: Do not warn smart point by cppcoreguidelines-pro-type-member-init

image image image

smart point has be initialized in default construction, so my project don't explicit initialize start point, member-init is very useful, but smart point warn, we have to forbit this rule.

llvmbot commented 1 year ago

@llvm/issue-subscribers-clang-tidy

PiotrZSL commented 1 year ago

Do you have some example that can be used to reproduce this issue ?