{"push_id":1068686842,"size":1,"distinct_size":1,"ref":"refs/heads/master","head":"6db52fd3646ecc6c56973c330931fe7ce428d5a6","before":"dcfa9fadd0734193038aa314abf6e04f10e2c5a5","commits":[{"sha":"6db52fd3646ecc6c56973c330931fe7ce428d5a6","author":{"email":"72977556adb407c83e4c510020c5fe46488477ad@google.com","name":"Etienne Bergeron"},"message":"[clang-tidy] Add checker for operations between integrals and pointers\n\nSummary:\nThis check is finding suspicious operations involving pointers and integral types; which are most likely bugs.\n\nExamples:\nsubversion/v1_6/subversion/libsvn_subr/utf.c\n```\nstatic const char *\nfuzzy_escape(const char *src, apr_size_t len, apr_pool_t *pool)\n{\n  [...]\n   while (src_orig < src_end)\n    {\n      if (! svn_ctype_isascii(*src_orig) || src_orig == '\\0')   // Should be *src_orig\n        {\n```\n\napache2/v2_2_23/modules/metadata/mod_headers.c\n```\nstatic char *parse_format_tag(apr_pool_t *p, format_tag *tag, const char **sa)\n{\n  [...]\n    tag->arg = '\\0';   // ERROR: tag->arg has type char*\n\n    /* grab the argument if there is one */\n    if (*s == '{') {\n        ++s;\n        tag->arg = ap_getword(p,&s,'}');\n    }\n```\n\nReviewers: alexfh\n\nSubscribers: Eugene.Zelenko, cfe-commits\n\nDifferential Revision: http://reviews.llvm.org/D19118","distinct":true,"url":"https://api.github.com/repos/llvm-project/llvm-project-submodule/commits/6db52fd3646ecc6c56973c330931fe7ce428d5a6"}]}