[all-commits] [llvm/llvm-project] 0c2edf: [clang][dataflow] Make `Value` and `StorageLocatio...

Stanislav Gatev via All-commits all-commits at lists.llvm.org
Wed Jun 15 09:15:41 PDT 2022

  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 0c2edf27a22efb648b36343d49a5dbe72903b549
  Author: Stanislav Gatev <sgatev at google.com>
  Date:   2022-06-15 (Wed, 15 Jun 2022)

  Changed paths:
    M clang/include/clang/Analysis/FlowSensitive/StorageLocation.h
    M clang/include/clang/Analysis/FlowSensitive/Value.h

  Log Message:
  [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

More information about the All-commits mailing list