[PATCH] D70052: [clang-tidy] Add misc-mutating-copy check

Jonas Toth via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Mon Nov 18 05:18:42 PST 2019


JonasToth added a comment.

There is a `ExprMutAnalyzer` that is able to find mutation of expressions in general (even though it is kinda experimental still). Maybe that should be utilized somehow? I think the current implementation does not cover when the address is taken and mutation happens through pointers/references in free standing functions, does it?

On the other hand it makes the check more complicated, slower. Additionally the most cases are catched with this version, i guess.


CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D70052/new/

https://reviews.llvm.org/D70052





More information about the cfe-commits mailing list