]> granicus.if.org Git - clang/commit
Make -Wuninitialized warn on pointer-to-member and comma operators.
authorManuel Klimek <klimek@google.com>
Tue, 3 Mar 2015 14:54:25 +0000 (14:54 +0000)
committerManuel Klimek <klimek@google.com>
Tue, 3 Mar 2015 14:54:25 +0000 (14:54 +0000)
commit9b354d5398b5aad8ff9b2e2b9c0193dfc54a52fc
treeadb5b60c9a479de4eab16b7ee9e2f11f721736ff
parent6b570c13229d98aa8ef29352ca1e2a729a955e63
Make -Wuninitialized warn on pointer-to-member and comma operators.

`isTrackedVar` has been updated to also track records.
`DeclRefExpr`s appearing on the left side of a comma operator are
ignored, while those appearing on the right side are classified as
`Use`.

Patch by Enrico Pertoso.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@231068 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Analysis/UninitializedValues.cpp
lib/Sema/SemaDecl.cpp
test/SemaCXX/uninitialized.cpp