7 Commits

Author SHA1 Message Date
martinboehme
e8fce95887
[clang][nullability] Remove RecordValue. (#89052)
This class no longer serves any purpose; see also the discussion here:
https://reviews.llvm.org/D155204#inline-1503204

A lot of existing tests in TransferTest.cpp check for the existence of
`RecordValue`s. Some of these checks are now simply redundant and have
been
removed. In other cases, tests were checking for the existence of a
`RecordValue` as a way of testing whether a record has been initialized.
I have
typically changed these test to instead check whether a field of the
record has
a value.
2024-04-19 09:39:52 +02:00
Yitzhak Mandelbaum
65ecbdf61f
[clang][dataflow] Fix bug in Value comparison. (#76746)
Makes value equivalence require that the values have no properties,
except in
the case of equivalence by pointer equality (if the pointers are equal,
nothing
else is checked).

Fixes issue #76459.
2024-01-16 13:03:49 -05:00
Simon Pilgrim
8d72079077 Fix MSVC "not all control paths return a value" warning. NFC. 2023-11-08 10:45:20 +00:00
martinboehme
64ed4edca8
[clang][dataflow] Expand debug dumping of Values. (#71527) 2023-11-08 05:41:26 +01:00
Martin Braenne
1b334a2ae7 [clang][dataflow] Eliminate ReferenceValue.
There are no remaining uses of this class in the framework.

This patch is part of the ongoing migration to strict handling of value categories (see https://discourse.llvm.org/t/70086 for details).

Reviewed By: ymandel, xazax.hun, gribozavr2

Differential Revision: https://reviews.llvm.org/D155922
2023-07-27 13:14:47 +00:00
Yitzhak Mandelbaum
c441f65f91 [clang][dataflow] Add (initial) debug printing for Value and Environment.
Also adds uses of the new printing in analysis inner loop.

Differential Revision: https://reviews.llvm.org/D141716
2023-01-19 14:33:32 +00:00
Yitzhak Mandelbaum
8cadac41e9 [clang][dataflow] Add equivalence relation Value type.
Defines an equivalence relation on the `Value` type to standardize several
places in the code where we replicate the ~same equivalence comparison.

Differential Revision: https://reviews.llvm.org/D135964
2022-10-19 12:23:09 +00:00