diff options
| author | Aaron Ballman <aaron@aaronballman.com> | 2018-06-13 14:41:42 +0000 |
|---|---|---|
| committer | Aaron Ballman <aaron@aaronballman.com> | 2018-06-13 14:41:42 +0000 |
| commit | 0d78a90a7dac97c1b15f9ae4fbcc887accf6b422 (patch) | |
| tree | 9e03ffc9cea1a7a67d05c3d9a390d7fb052d0338 /llvm/lib/Target/Sparc/SparcMachineFunctionInfo.cpp | |
| parent | f37bd01ddca91f6c0bfc987fe6457d9c2b116c1e (diff) | |
| download | bcm5719-llvm-0d78a90a7dac97c1b15f9ae4fbcc887accf6b422.tar.gz bcm5719-llvm-0d78a90a7dac97c1b15f9ae4fbcc887accf6b422.zip | |
Add a new class to analyze whether an expression is mutated within a statement.
ExprMutationAnalyzer is a generally useful helper that can be used in different clang-tidy checks for checking whether a given expression is (potentially) mutated within a statement (typically the enclosing compound statement.) This is a more general and more powerful/accurate version of isOnlyUsedAsConst, which is used in ForRangeCopyCheck, UnnecessaryCopyInitialization.
Patch by Shuai Wang
llvm-svn: 334604
Diffstat (limited to 'llvm/lib/Target/Sparc/SparcMachineFunctionInfo.cpp')
0 files changed, 0 insertions, 0 deletions

