[PATCH] D71607: [clang-tidy] Add unsigned subtraction warning, with suggestion to convert to unsigned literals.

Fangrui Song via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Wed Jun 24 12:28:30 PDT 2020


MaskRay added subscribers: NoQ, MaskRay.
MaskRay added a comment.

+ at NoQ on comments whether clang static analyzer can catch these cases.

`clang++ --analyze  a.cc` does not warn on `a.size()-2` AFAICT.


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D71607





More information about the cfe-commits mailing list