]> granicus.if.org Git - clang/commit
Explicitly keep track of temporaries during the consumed analysis.
authorManuel Klimek <klimek@google.com>
Thu, 8 May 2014 11:50:00 +0000 (11:50 +0000)
committerManuel Klimek <klimek@google.com>
Thu, 8 May 2014 11:50:00 +0000 (11:50 +0000)
commitf439181e7c49fce6f220ef66f5bbb82d4af7f5d8
treeac4db98b56baea0a6c0689e8cd79a98968bbdb2a
parent7716d5441601112c1ef262880c0cb8f5593188dc
Explicitly keep track of temporaries during the consumed analysis.

This makes the consumed analysis less dependent on the CFG layout and fixes
a bug where we wouldn't warn on an unconsumed value.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@208300 91177308-0d34-0410-b5e6-96231b3b80d8
include/clang/Analysis/Analyses/Consumed.h
lib/Analysis/Consumed.cpp
test/SemaCXX/warn-consumed-analysis.cpp