]> granicus.if.org Git - clang/commit
Teach -Wuninitialized about C++'s typeid expression, including both the
authorChandler Carruth <chandlerc@gmail.com>
Wed, 13 Apr 2011 08:18:42 +0000 (08:18 +0000)
committerChandler Carruth <chandlerc@gmail.com>
Wed, 13 Apr 2011 08:18:42 +0000 (08:18 +0000)
commit866849498461cf9022316034516475188b25955b
tree66d33a90295e687d2335880360ef2d3f0217c007
parentfd183ba0b16718ff05e161bc479678e447df4999
Teach -Wuninitialized about C++'s typeid expression, including both the
evaluated and unevaluated contexts. Add some testing of sizeof and
typeid.

Both of the typeid tests added here were triggering warnings previously.
Now the one false positive is suppressed without suppressing the warning
on actually buggy code.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@129431 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Analysis/UninitializedValues.cpp
test/SemaCXX/uninit-variables.cpp