apple / llvm-project

The LLVM Project is a collection of modular and reusable compiler and toolchain technologies. This fork is used to manage Apple’s stable releases of Clang as well as support the Swift project.
https://llvm.org
Other
1.1k stars 320 forks source link

[clang] fix -Wnullability-completeness false-positive in dependent code #8878

Closed ahatanaka closed 3 weeks ago

ahatanaka commented 3 weeks ago

The intent was that smart-pointers do not participate in completeness checks, but we failed to capture dependent unique_ptr<T>, which is not a RecordType but a TemplateSpecializationType.

(cherry picked from commit 7257c37357ee4540d6a63e5d2854b97f43ae2c49)