njames93 added a comment.
This fix has expanded from preventing the crash to adding support for
`CXXFoldExpr` to misc-redundant-expression. Maybe rename the revision to
explain that better.
If that is the case then you may as well add a test case showing a redundant
fold expression
zinovy.nis updated this revision to Diff 267546.
zinovy.nis added a comment.
Fix and simplify the condition.
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D80896/new/
https://reviews.llvm.org/D80896
Files:
clang-tools-extra/clang-tidy/misc/RedundantExpressionCheck.cpp
zinovy.nis updated this revision to Diff 267518.
zinovy.nis added a comment.
Fix formatting.
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D80896/new/
https://reviews.llvm.org/D80896
Files:
clang-tools-extra/clang-tidy/misc/RedundantExpressionCheck.cpp
zinovy.nis created this revision.
zinovy.nis added a reviewer: etienneb.
Herald added subscribers: cfe-commits, xazax.hun.
Herald added a project: clang.
Fix for a crash from https://bugs.llvm.org/show_bug.cgi?id=44256
Bug: https://bugs.llvm.org/show_bug.cgi?id=44256
Repository:
rG LLVM