aboutsummaryrefslogtreecommitdiff
path: root/lib/StaticAnalyzer/Checkers/StreamChecker.cpp
diff options
context:
space:
mode:
authorRichard Smith <richard-llvm@metafoo.co.uk>2012-10-29 18:26:47 +0000
committerRichard Smith <richard-llvm@metafoo.co.uk>2012-10-29 18:26:47 +0000
commit9568f0c13a84695c5cc064e7c32412f84604cb1e (patch)
treeb5b5e53ec7d314157aba221be61f7b66cbbce934 /lib/StaticAnalyzer/Checkers/StreamChecker.cpp
parentba927d9b26ead2ad535c7761b8862d8e82c41b13 (diff)
Partially roll back r166898; it exposed a bug in the standard.
The problem is as follows: C++11 has contexts which are not potentially-evaluated, and yet in which we are required or encouraged to perform constant evaluation. In such contexts, we are not permitted to implicitly define special member functions for literal types, therefore we cannot evalaute those constant expressions. Punt on this in one more context for now by skipping checking constexpr variable initializers if they occur in dependent contexts. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@166956 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/StaticAnalyzer/Checkers/StreamChecker.cpp')
0 files changed, 0 insertions, 0 deletions