[PATCH] D79912: Assignment and Inc/Dec operators wouldn't register as a mutation when Implicit Paren Casts were present

Joe Burzinski via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed May 13 15:51:36 PDT 2020


Tridacnid created this revision.
Tridacnid added reviewers: llvm-commits, alexfh, klimek.
Tridacnid added projects: clang-tools-extra, clang.
Herald added a subscriber: cfe-commits.

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


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D79912

Files:
  clang-tools-extra/test/clang-tidy/checkers/bugprone-infinite-loop.cpp
  clang/lib/Analysis/ExprMutationAnalyzer.cpp
  clang/unittests/Analysis/ExprMutationAnalyzerTest.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D79912.263875.patch
Type: text/x-patch
Size: 3776 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20200513/8ed10366/attachment.bin>


More information about the llvm-commits mailing list