Skip to content
  • Richard Smith's avatar
    In response to some discussions on IRC, tweak the wording of the new · 1bb8edb8
    Richard Smith authored
    -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.
    
    llvm-svn: 157511
    1bb8edb8
Loading