[clang][Attribute] Fix noderef attribute false-negatives
authorLeonard Chan <leonardchan@google.com>
Wed, 10 Jun 2020 19:20:54 +0000 (12:20 -0700)
committerLeonard Chan <leonardchan@google.com>
Wed, 10 Jun 2020 19:20:54 +0000 (12:20 -0700)
commit2f6bb2a69215f9cae883da12f8f596d3f80f8d71
treea508a22c67463c10b5b74103d0220e513e1b78fa
parentbf124017a23ca4092178e58f86c31de02644efe3
[clang][Attribute] Fix noderef attribute false-negatives

`noderef` was failing to trigger warnings in some cases related to c++ style
casting. This patch addresses them.

Differential Revision: https://reviews.llvm.org/D77836
clang/include/clang/Sema/Initialization.h
clang/lib/Sema/SemaCast.cpp
clang/lib/Sema/SemaInit.cpp
clang/test/Frontend/noderef.cpp