• Stephan Bergmann's avatar
    Clang plugin to warn about implicit conversion of literals to bool · 3de97578
    Stephan Bergmann yazdı
    ...which warns about apparent errors like
    
      n == KIND_FOO || KIND_BAR
    
    that should have read
    
      n == KIND_FOO || n == KIND_BAR
    
    It also warns about trivial (mis-)uses of 0/1 and sal_False/True like
    
      while (1) { ... }
    
    instead of
    
      while (true) { ... }
    
    which it can automatically rewrite.
    
    It does not warn if the relevant code is inside a macro in a .h (i.e., C)
    include file, nor when a string literal is used in the assert macro like
    
      assert(!"this cannot happen");
    
    Change-Id: If8c305a25e5da15e78f6139b5b0c0e868f06d4f3
    3de97578
Adı
Son kayıt (commit)
Son güncelleme
..
clang Loading commit data...
.gitignore Loading commit data...
Makefile Loading commit data...
Makefile-clang.mk Loading commit data...
Makefile.mk Loading commit data...
README Loading commit data...