Assignment and Inc/Dec operators wouldn't register as a mutation when Implicit Paren...
authorTridacnid <tridacnid@gmail.com>
Tue, 9 Jun 2020 18:43:48 +0000 (19:43 +0100)
committerNathan James <n.james93@hotmail.co.uk>
Tue, 9 Jun 2020 18:45:57 +0000 (19:45 +0100)
commitce5fecb7d0a12c27763afe3f89d1d7e8a1893dc0
treee43f59823ac64f50fbdcefa3c68e17a8996087a7
parent7fb40e1569dd66292b647f4501b85517e9247953
Assignment and Inc/Dec operators wouldn't register as a mutation when Implicit Paren Casts were present

Add ignoringParenImpCasts to assignment and inc/dec mutation checks in ExprMutationAnalyzer to fix clang-tidy bug PR45490.
https://bugs.llvm.org/show_bug.cgi?id=45490

Reviewed By: njames93, aaron.ballman, gribozavr2

Differential Revision: https://reviews.llvm.org/D79912
clang-tools-extra/test/clang-tidy/checkers/bugprone-infinite-loop.cpp
clang/lib/Analysis/ExprMutationAnalyzer.cpp
clang/unittests/Analysis/ExprMutationAnalyzerTest.cpp