llvm / llvm-project

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

[clang-tidy] False warning in "modernize-avoid-c-arrays" #53578

Open shrek1402 opened 2 years ago

shrek1402 commented 2 years ago
template<class T, class = void>
class foo{
    template<typename U, enable_if_t<is_convertible_v<U(*)[], T(*)[]>>* = nullptr>
    constexpr explicit foo(const checked_pointer<U>& other){
    }
}
llvmbot commented 2 years ago

@llvm/issue-subscribers-clang-tidy

carlosgalvezp commented 1 year ago

@shrek1402 Can you elaborate on why this is a false positive?