JonasToth added a comment.
Herald added a subscriber: mgehre.

In D45444#1685995 <https://reviews.llvm.org/D45444#1685995>, @tsdgeos wrote:
> Would this warn with stuff like
>
>   double borderWidth;
>   [... code that doesn't use borderWidth ...]
>   borderWidth = border->getWidth(); 
>   [... code that reads borderWidth ...]
>  
>


Warn in what sense? That `borderWidth` could be initialized early and then be 
`const`?
No. It would only suggest `const` (if configured to make values `const`) when 
`borderWidth` is initialized and then untouched.


Repository:
  rCTE Clang Tools Extra

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D45444/new/

https://reviews.llvm.org/D45444



_______________________________________________
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to