steakhal created this revision.
steakhal added reviewers: NoQ, martong, Szelethus, balazske, ASDenysPetrov,
bzcheeseman.
Herald added subscribers: manas, dkrupp, donat.nagy, mikhail.ramalho,
a.sidorin, rnkovacs, szepet, baloghadamsoftware, xazax.hun.
Herald added a project: All.
steakhal requested review of this revision.
Herald added a project: clang.
Herald added a subscriber: cfe-commits.
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D125708
Files:
clang/include/clang/StaticAnalyzer/Core/PathSensitive/SVals.h
Index: clang/include/clang/StaticAnalyzer/Core/PathSensitive/SVals.h
===================================================================
--- clang/include/clang/StaticAnalyzer/Core/PathSensitive/SVals.h
+++ clang/include/clang/StaticAnalyzer/Core/PathSensitive/SVals.h
@@ -234,7 +234,6 @@
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) {}
@@ -258,15 +257,12 @@
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) {}
@@ -275,7 +271,6 @@
class NonLoc : public DefinedSVal {
protected:
- NonLoc() = default;
explicit NonLoc(unsigned SubKind, const void *d)
: DefinedSVal(d, false, SubKind) {}
@@ -292,7 +287,6 @@
class Loc : public DefinedSVal {
protected:
- Loc() = default;
explicit Loc(unsigned SubKind, const void *D)
: DefinedSVal(const_cast<void *>(D), true, SubKind) {}
@@ -359,9 +353,6 @@
}
static bool classof(NonLoc V) { return V.getSubKind() == ConcreteIntKind; }
-
-private:
- ConcreteInt() = default;
};
class LocAsInteger : public NonLoc {
@@ -401,9 +392,6 @@
}
static bool classof(NonLoc V) { return V.getSubKind() == LocAsIntegerKind; }
-
-private:
- LocAsInteger() = default;
};
class CompoundVal : public NonLoc {
@@ -426,9 +414,6 @@
}
static bool classof(NonLoc V) { return V.getSubKind() == CompoundValKind; }
-
-private:
- CompoundVal() = default;
};
class LazyCompoundVal : public NonLoc {
@@ -453,9 +438,6 @@
static bool classof(NonLoc V) {
return V.getSubKind() == LazyCompoundValKind;
}
-
-private:
- LazyCompoundVal() = default;
};
/// Value representing pointer-to-member.
@@ -503,7 +485,6 @@
}
private:
- PointerToMember() = default;
explicit PointerToMember(const PTMDataType D)
: NonLoc(PointerToMemberKind, D.getOpaqueValue()) {}
};
@@ -531,9 +512,6 @@
}
static bool classof(Loc V) { return V.getSubKind() == GotoLabelKind; }
-
-private:
- GotoLabel() = default;
};
class MemRegionVal : public Loc {
@@ -568,9 +546,6 @@
}
static bool classof(Loc V) { return V.getSubKind() == MemRegionValKind; }
-
-private:
- MemRegionVal() = default;
};
class ConcreteInt : public Loc {
@@ -590,9 +565,6 @@
}
static bool classof(Loc V) { return V.getSubKind() == ConcreteIntKind; }
-
-private:
- ConcreteInt() = default;
};
} // namespace loc
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits