[clang] [clang] Skip tautological comparison if the comparison involves the 'size_t' type (PR #74427)

2024-05-19 Thread Shivam Gupta via cfe-commits
https://github.com/xgupta closed https://github.com/llvm/llvm-project/pull/74427 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang] Skip tautological comparison if the comparison involves the 'size_t' type (PR #74427)

2024-05-19 Thread Shivam Gupta via cfe-commits
xgupta wrote: Sorry, I do have motivation to continue this patch now, hence closing it. Thank to reviewers for reviewing it. https://github.com/llvm/llvm-project/pull/74427 ___ cfe-commits mailing list cfe-commits@lists.llvm.org

[clang] [clang] Skip tautological comparison if the comparison involves the 'size_t' type (PR #74427)

2023-12-13 Thread Richard Smith via cfe-commits
zygoloid wrote: I don't think this type-based approach is the right choice. It will lead to a lot of false negatives, and I'm especially concerned that this patch is also dropping warnings for comparisons that just happen to be the same type as `size_t` (eg, direct use of `unsigned long` or

[clang] [clang] Skip tautological comparison if the comparison involves the 'size_t' type (PR #74427)

2023-12-11 Thread Shivam Gupta via cfe-commits
xgupta wrote: Ping @cor3ntin, do you have any more comments for this PR? https://github.com/llvm/llvm-project/pull/74427 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang] Skip tautological comparison if the comparison involves the 'size_t' type (PR #74427)

2023-12-04 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Shivam Gupta (xgupta) Changes The issue with size_t comes when we are trying to add -Wtype-limits to -Wextra for GCC compatibility in review https://reviews.llvm.org/D142826. Example of issue (false positive) - $ cat

[clang] [clang] Skip tautological comparison if the comparison involves the 'size_t' type (PR #74427)

2023-12-04 Thread Shivam Gupta via cfe-commits
https://github.com/xgupta created https://github.com/llvm/llvm-project/pull/74427 The issue with size_t comes when we are trying to add -Wtype-limits to -Wextra for GCC compatibility in review https://reviews.llvm.org/D142826. Example of issue (false positive) - $ cat