[clang] 7727d2a - [analyzer][NFC] Remove unused default SVal constructors
Balazs Benics via cfe-commits
cfe-commits at lists.llvm.org
Fri May 27 01:57:18 PDT 2022
Author: Balazs Benics
Date: 2022-05-27T10:54:25+02:00
New Revision: 7727d2abece6855ec6486ca0600998bfa35882a1
URL: https://github.com/llvm/llvm-project/commit/7727d2abece6855ec6486ca0600998bfa35882a1
DIFF: https://github.com/llvm/llvm-project/commit/7727d2abece6855ec6486ca0600998bfa35882a1.diff
LOG: [analyzer][NFC] Remove unused default SVal constructors
Reviewed By: martong, xazax.hun
Differential Revision: https://reviews.llvm.org/D125708
Added:
Modified:
clang/include/clang/StaticAnalyzer/Core/PathSensitive/SVals.h
Removed:
################################################################################
diff --git a/clang/include/clang/StaticAnalyzer/Core/PathSensitive/SVals.h b/clang/include/clang/StaticAnalyzer/Core/PathSensitive/SVals.h
index 7086b889e6d1..5865ccea76c0 100644
--- a/clang/include/clang/StaticAnalyzer/Core/PathSensitive/SVals.h
+++ b/clang/include/clang/StaticAnalyzer/Core/PathSensitive/SVals.h
@@ -231,7 +231,6 @@ class DefinedOrUnknownSVal : public SVal {
static bool classof(SVal V) { return !V.isUndef(); }
protected:
- DefinedOrUnknownSVal() = default;
explicit DefinedOrUnknownSVal(const void *d, bool isLoc, unsigned ValKind)
: SVal(d, isLoc, ValKind) {}
explicit DefinedOrUnknownSVal(BaseKind k, void *D = nullptr) : SVal(k, D) {}
@@ -255,15 +254,12 @@ class DefinedSVal : public DefinedOrUnknownSVal {
static bool classof(SVal V) { return !V.isUnknownOrUndef(); }
protected:
- DefinedSVal() = default;
explicit DefinedSVal(const void *d, bool isLoc, unsigned ValKind)
: DefinedOrUnknownSVal(d, isLoc, ValKind) {}
};
/// Represents an SVal that is guaranteed to not be UnknownVal.
class KnownSVal : public SVal {
- KnownSVal() = default;
-
public:
KnownSVal(const DefinedSVal &V) : SVal(V) {}
KnownSVal(const UndefinedVal &V) : SVal(V) {}
@@ -272,7 +268,6 @@ class KnownSVal : public SVal {
class NonLoc : public DefinedSVal {
protected:
- NonLoc() = default;
explicit NonLoc(unsigned SubKind, const void *d)
: DefinedSVal(d, false, SubKind) {}
@@ -289,7 +284,6 @@ class NonLoc : public DefinedSVal {
class Loc : public DefinedSVal {
protected:
- Loc() = default;
explicit Loc(unsigned SubKind, const void *D)
: DefinedSVal(const_cast<void *>(D), true, SubKind) {}
@@ -353,9 +347,6 @@ class ConcreteInt : public NonLoc {
}
static bool classof(NonLoc V) { return V.getSubKind() == ConcreteIntKind; }
-
-private:
- ConcreteInt() = default;
};
class LocAsInteger : public NonLoc {
@@ -388,9 +379,6 @@ class LocAsInteger : public NonLoc {
}
static bool classof(NonLoc V) { return V.getSubKind() == LocAsIntegerKind; }
-
-private:
- LocAsInteger() = default;
};
class CompoundVal : public NonLoc {
@@ -413,9 +401,6 @@ class CompoundVal : public NonLoc {
}
static bool classof(NonLoc V) { return V.getSubKind() == CompoundValKind; }
-
-private:
- CompoundVal() = default;
};
class LazyCompoundVal : public NonLoc {
@@ -440,9 +425,6 @@ class LazyCompoundVal : public NonLoc {
static bool classof(NonLoc V) {
return V.getSubKind() == LazyCompoundValKind;
}
-
-private:
- LazyCompoundVal() = default;
};
/// Value representing pointer-to-member.
@@ -490,7 +472,6 @@ class PointerToMember : public NonLoc {
}
private:
- PointerToMember() = default;
explicit PointerToMember(const PTMDataType D)
: NonLoc(PointerToMemberKind, D.getOpaqueValue()) {}
};
@@ -518,9 +499,6 @@ class GotoLabel : public Loc {
}
static bool classof(Loc V) { return V.getSubKind() == GotoLabelKind; }
-
-private:
- GotoLabel() = default;
};
class MemRegionVal : public Loc {
@@ -555,9 +533,6 @@ class MemRegionVal : public Loc {
}
static bool classof(Loc V) { return V.getSubKind() == MemRegionValKind; }
-
-private:
- MemRegionVal() = default;
};
class ConcreteInt : public Loc {
@@ -573,9 +548,6 @@ class ConcreteInt : public Loc {
}
static bool classof(Loc V) { return V.getSubKind() == ConcreteIntKind; }
-
-private:
- ConcreteInt() = default;
};
} // namespace loc
More information about the cfe-commits
mailing list