[PATCH] D45050: [clang-tidy] New checker for not null-terminated result caused by strlen(), size() or equal length

Csaba Dabis via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Sun Oct 13 04:26:48 PDT 2019


Charusso added a comment.

In D45050#1707489 <https://reviews.llvm.org/D45050#1707489>, @xbolva00 wrote:

> `typedef __SIZE_TYPE__ size_t;`


Hm, yes, I have overestimated the uploaded solution:

  $ clang/test grep -rn 'typedef __SIZE_TYPE__ size_t;' | wc -l
  60
  $ clang/test grep -rn 'typedef __typeof(sizeof(int)) size_t;' | wc -l
  45

Thanks!


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D45050





More information about the cfe-commits mailing list