aboutsummaryrefslogtreecommitdiff
path: root/test/SemaCXX/warn-unused-private-field.cpp
AgeCommit message (Collapse)Author
2012-08-07-Wunused-private-fields: Don't try to check unresolved initializer expressionsRichard Smith
for side-effects. Instead, check for side-effects after performing initialization. Doing so also removes some strange corner cases and differences between in-class initialization and constructor initialization. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@161449 91177308-0d34-0410-b5e6-96231b3b80d8
2012-07-20Let Expr::HasSideEffects() return false for NULL, bool literals, this, and ↵Nico Weber
nullptr. Fixes PR13413, -Wunused-private-field now warns on unused fields initialized to NULL. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@160541 91177308-0d34-0410-b5e6-96231b3b80d8
2012-07-20Rename warn-unused-member.cpp to warn-unused-private-field.cpp toNico Weber
make it match the flag it tests. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@160536 91177308-0d34-0410-b5e6-96231b3b80d8