[PATCH] D31839: make -Winteger-overflow find overflows in function arguments

2019-10-27 Thread Dávid Bolvanský via Phabricator via cfe-commits
xbolva00 added a comment. Are you gonna commit this patch? CHANGES SINCE LAST ACTION https://reviews.llvm.org/D31839/new/ https://reviews.llvm.org/D31839 ___ cfe-commits mailing list cfe-commits@lists.llvm.org

[PATCH] D31839: make -Winteger-overflow find overflows in function arguments

2017-05-15 Thread Nick Lewycky via Phabricator via cfe-commits
nlewycky added a comment. Ping! https://reviews.llvm.org/D31839 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[PATCH] D31839: make -Winteger-overflow find overflows in function arguments

2017-05-09 Thread Nick Lewycky via Phabricator via cfe-commits
nlewycky added a comment. Ping! https://reviews.llvm.org/D31839 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[PATCH] D31839: make -Winteger-overflow find overflows in function arguments

2017-04-30 Thread Nick Lewycky via Phabricator via cfe-commits
nlewycky updated this revision to Diff 97253. nlewycky added a comment. Use an RAII object to always evaluate the arguments, except if HandleFunctionCall does it. https://reviews.llvm.org/D31839 Files: lib/AST/ExprConstant.cpp test/Sema/integer-overflow.c Index:

[PATCH] D31839: make -Winteger-overflow find overflows in function arguments

2017-04-11 Thread Nick Lewycky via Phabricator via cfe-commits
nlewycky added a comment. In https://reviews.llvm.org/D31839#724551, @ahatanak wrote: > OK, thanks for looking into it. Warnings for ObjCMessageExpr can probably be > implemented in a separate patch. > > It looks like clang still doesn't issue overflow warnings when the called > functions have

[PATCH] D31839: make -Winteger-overflow find overflows in function arguments

2017-04-11 Thread Akira Hatanaka via Phabricator via cfe-commits
ahatanak added a comment. OK, thanks for looking into it. Warnings for ObjCMessageExpr can probably be implemented in a separate patch. It looks like clang still doesn't issue overflow warnings when the called functions have a void return. Should we try to fix it in this patch too? void

[PATCH] D31839: make -Winteger-overflow find overflows in function arguments

2017-04-11 Thread Nick Lewycky via Phabricator via cfe-commits
nlewycky added a comment. In https://reviews.llvm.org/D31839#722763, @ahatanak wrote: > Is it possible to fix ObjCMessageExpr too while you are in here? I looked into this, but it turns out to be different enough to belong in a separate patch. An ObjCMessageExpr has void type which means that

[PATCH] D31839: make -Winteger-overflow find overflows in function arguments

2017-04-10 Thread Akira Hatanaka via Phabricator via cfe-commits
ahatanak added a comment. Is it possible to fix ObjCMessageExpr too while you are in here? I think clang should issue a warning when compiling the following code: @protocol NSObject @end @interface NSObject @end @interface C1 : NSObject - (void)foo:(int)i; @end

[PATCH] D31839: make -Winteger-overflow find overflows in function arguments

2017-04-10 Thread Nick Lewycky via Phabricator via cfe-commits
nlewycky created this revision. When checkingForOverflow(), look through call arguments (and the callee itself if calculated). Make the statement visitor go through ObjCBoxedExpr by default because it has a single subexpr node. Don't do that when looking for a pointer object, stop because the