Skip to content

Commit d948d91

Browse files
committed
[clang][dataflow] Remove deprecated synonyms related to RecordStorageLocation and RecordValue
Reviewed By: ymandel, xazax.hun Differential Revision: https://reviews.llvm.org/D159264
1 parent 66a652a commit d948d91

File tree

3 files changed

+0
-22
lines changed

3 files changed

+0
-22
lines changed

clang/include/clang/Analysis/FlowSensitive/DataflowEnvironment.h

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -690,15 +690,6 @@ RecordValue &refreshRecordValue(RecordStorageLocation &Loc, Environment &Env);
690690
/// See also documentation for the overload above.
691691
RecordValue &refreshRecordValue(const Expr &Expr, Environment &Env);
692692

693-
/// Deprecated synonym for `refreshRecordValue()`.
694-
inline RecordValue &refreshStructValue(RecordStorageLocation &Loc,
695-
Environment &Env) {
696-
return refreshRecordValue(Loc, Env);
697-
}
698-
inline RecordValue &refreshStructValue(const Expr &Expr, Environment &Env) {
699-
return refreshRecordValue(Expr, Env);
700-
}
701-
702693
} // namespace dataflow
703694
} // namespace clang
704695

clang/include/clang/Analysis/FlowSensitive/StorageLocation.h

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,6 @@ class StorageLocation {
3434
enum class Kind {
3535
Scalar,
3636
Record,
37-
// Deprecated synonym for `Record`
38-
Aggregate = Record,
3937
};
4038

4139
StorageLocation(Kind LocKind, QualType Type) : LocKind(LocKind), Type(Type) {
@@ -155,9 +153,6 @@ class RecordStorageLocation final : public StorageLocation {
155153
FieldToLoc Children;
156154
};
157155

158-
/// Deprecated synonym for `RecordStorageLocation`.
159-
using AggregateStorageLocation = RecordStorageLocation;
160-
161156
} // namespace dataflow
162157
} // namespace clang
163158

clang/include/clang/Analysis/FlowSensitive/Value.h

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -36,8 +36,6 @@ class Value {
3636
Integer,
3737
Pointer,
3838
Record,
39-
// Deprecated synonym for `Record`
40-
Struct = Record,
4139

4240
// TODO: Top values should not be need to be type-specific.
4341
TopBool,
@@ -227,9 +225,6 @@ class RecordValue final : public Value {
227225
/// Returns the storage location that this `RecordValue` is associated with.
228226
RecordStorageLocation &getLoc() const { return Loc; }
229227

230-
/// Deprecated synonym for `getLoc()`.
231-
RecordStorageLocation &getAggregateLoc() const { return Loc; }
232-
233228
/// Convenience function that returns the child storage location for `Field`.
234229
/// See also the documentation for `RecordStorageLocation::getChild()`.
235230
StorageLocation *getChild(const ValueDecl &Field) const {
@@ -240,9 +235,6 @@ class RecordValue final : public Value {
240235
RecordStorageLocation &Loc;
241236
};
242237

243-
/// Deprecated synonym for `RecordValue`.
244-
using StructValue = RecordValue;
245-
246238
raw_ostream &operator<<(raw_ostream &OS, const Value &Val);
247239

248240
} // namespace dataflow

0 commit comments

Comments
 (0)