[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
Thu May 2 06:36:26 PDT 2019


baloghadamsoftware updated this revision to Diff 197768.
baloghadamsoftware added a comment.

Type `int` in tests replaced by `struct S` because it has more "sugar". Check also fixed to handle this case.


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

https://reviews.llvm.org/D61422

Files:
  clang-tidy/bugprone/SizeofExpressionCheck.cpp
  test/clang-tidy/bugprone-sizeof-expression.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D61422.197768.patch
Type: text/x-patch
Size: 5783 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20190502/9e267cbe/attachment.bin>


More information about the cfe-commits mailing list