diff options
author | Richard Smith <richard-llvm@metafoo.co.uk> | 2012-05-26 06:20:46 +0000 |
---|---|---|
committer | Richard Smith <richard-llvm@metafoo.co.uk> | 2012-05-26 06:20:46 +0000 |
commit | bdb97ff687ce85e45cc728b87612ed546f48c1e7 (patch) | |
tree | 726077290e0d5b9e8de204741b6e671d11cb6f9e /lib/Sema/SemaPseudoObject.cpp | |
parent | 7f7c42b12ecb1560055a2c087d9ca5187ad357c3 (diff) |
In response to some discussions on IRC, tweak the wording of the new
-Wsometimes-uninitialized diagnostics to make it clearer that the cause
of the issue may be a condition which must always evaluate to true or
false, rather than an uninitialized variable.
To emphasize this, add a new note with a fixit which removes the
impossible condition or replaces it with a constant.
Also, downgrade the diagnostic from -Wsometimes-uninitialized to
-Wconditional-uninitialized when it applies to a range-based for loop,
since the condition is not written explicitly in the code in that case.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@157511 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Sema/SemaPseudoObject.cpp')
0 files changed, 0 insertions, 0 deletions