[PATCH] D45679: [clang-tidy] Add ExprMutationAnalyzer, that analyzes whether an expression is mutated within a statement.

Jonas Toth via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Mon Sep 10 11:12:55 PDT 2018


JonasToth added a comment.

In https://reviews.llvm.org/D45679#1229176, @shuaiwang wrote:

> I have a rough idea about how `findPointeeMutation` would look like, I'm pretty sure I can use a lot of your help :)
>  My current plan:
>
> - Finish the few existing pending changes
> - Move the analyzer to `clang/lib/Analysis` (likely remove `PseudoConstantAnalysis` there as well since it appears to be dead code for years)
> - Implement `findPointeeMutation`


Sounds like a solid plan. I think the `clang-tidy/utils/DeclRefExprUtils.{h,cpp}` are not necessary anymore, too. They are used in 2 clang-tidy checks. Maybe i can remove them as well :)


Repository:
  rCTE Clang Tools Extra

https://reviews.llvm.org/D45679





More information about the cfe-commits mailing list