[clang][dataflow] Make `Value` and `StorageLocation` non-copyable
authorStanislav Gatev <sgatev@google.com>
Wed, 15 Jun 2022 14:58:13 +0000 (14:58 +0000)
committerStanislav Gatev <sgatev@google.com>
Wed, 15 Jun 2022 16:14:27 +0000 (16:14 +0000)
commit0c2edf27a22efb648b36343d49a5dbe72903b549
tree406494550d7781f66604448d800565950b0f3a73
parent4cd04d1687f1096990119304a3eb22081ab4bb29
[clang][dataflow] Make `Value` and `StorageLocation` non-copyable

This makes it harder to misuse APIs that return references by
accidentally copying the results which could happen when assigning the
them to variables declared as `auto`.

Differential Revision: https://reviews.llvm.org/D127865

Reviewed-by: ymandel, xazax.hun
clang/include/clang/Analysis/FlowSensitive/StorageLocation.h
clang/include/clang/Analysis/FlowSensitive/Value.h