{"push_id":1235923296,"size":1,"distinct_size":1,"ref":"refs/heads/master","head":"cab7b600139f46adb9b1dd553da3c941c2bf8e13","before":"56699d4cc30bec4ac9e556a6885fa888890ac87c","commits":[{"sha":"cab7b600139f46adb9b1dd553da3c941c2bf8e13","author":{"name":"Bruno Cardoso Lopes","email":"aa5b4b0fe96f40a92b197547f2a96952081c3ea1@gmail.com"},"message":"[Sema] Add sizeof diagnostics for bzero\n\nFor memset (and others) we can get diagnostics like:\n\n  struct stat { int x; };\n  void foo(struct stat *stamps) {\n    bzero(stamps, sizeof(stamps));\n    memset(stamps, 0, sizeof(stamps));\n  }\n\n  t.c:7:28: warning: 'memset' call operates on objects of type 'struct stat' while the size is based on a different type 'struct stat *' [-Wsizeof-pointer-memaccess]\n    memset(stamps, 0, sizeof(stamps));\n           ~~~~~~            ^~~~~~\n  t.c:7:28: note: did you mean to dereference the argument to 'sizeof' (and multiply it by the number of elements)?\n    memset(stamps, 0, sizeof(stamps));\n                             ^~~~~~\n\nThis patch implements the same class of warnings for bzero.\n\nDifferential Revision: https://reviews.llvm.org/D22525\n\nrdar://problem/18963514\n\ngit-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@277787 91177308-0d34-0410-b5e6-96231b3b80d8","distinct":true,"url":"https://api.github.com/repos/llvm-project/clang/commits/cab7b600139f46adb9b1dd553da3c941c2bf8e13"}]}
{"actor":{"display_login":"chapuni"}}