[PATCH] D61422: [clang-tidy] Extend bugprone-sizeof-expression check to detect sizeof misuse in pointer arithmetic

Balogh, Ádám via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Fri May 3 06:20:05 PDT 2019


baloghadamsoftware added a comment.

In D61422#1489451 <https://reviews.llvm.org/D61422#1489451>, @aaron.ballman wrote:

> Hmm, I am a little bit skeptical about the utility of this compared to the expense of making the check marginally slower. However, I don't have any specific objections and so I'm not opposed to the patch. LG!


I think that the open-source projects I used for testing are mature enough for such amateur errors. However many beginner programmers make such errors.


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

https://reviews.llvm.org/D61422





More information about the cfe-commits mailing list