Index: include/clang/Analysis/ProgramPoint.h =================================================================== --- include/clang/Analysis/ProgramPoint.h +++ include/clang/Analysis/ProgramPoint.h @@ -98,7 +98,7 @@ llvm::PointerIntPair Tag; protected: - ProgramPoint() {} + ProgramPoint() = default; ProgramPoint(const void *P, Kind k, const LocationContext *l, @@ -234,7 +234,7 @@ private: friend class ProgramPoint; - BlockEntrance() {} + BlockEntrance() = default; static bool isKind(const ProgramPoint &Location) { return Location.getKind() == BlockEntranceKind; } @@ -255,7 +255,7 @@ private: friend class ProgramPoint; - BlockExit() {} + BlockExit() = default; static bool isKind(const ProgramPoint &Location) { return Location.getKind() == BlockExitKind; } @@ -275,7 +275,7 @@ const T* getStmtAs() const { return dyn_cast(getStmt()); } protected: - StmtPoint() {} + StmtPoint() = default; private: friend class ProgramPoint; static bool isKind(const ProgramPoint &Location) { @@ -295,7 +295,7 @@ private: friend class ProgramPoint; - PreStmt() {} + PreStmt() = default; static bool isKind(const ProgramPoint &Location) { return Location.getKind() == PreStmtKind; } @@ -303,7 +303,7 @@ class PostStmt : public StmtPoint { protected: - PostStmt() {} + PostStmt() = default; PostStmt(const Stmt *S, const void *data, Kind k, const LocationContext *L, const ProgramPointTag *tag = nullptr) : StmtPoint(S, data, k, L, tag) {} @@ -334,7 +334,7 @@ private: friend class ProgramPoint; - PostCondition() {} + PostCondition() = default; static bool isKind(const ProgramPoint &Location) { return Location.getKind() == PostConditionKind; } @@ -342,7 +342,7 @@ class LocationCheck : public StmtPoint { protected: - LocationCheck() {} + LocationCheck() = default; LocationCheck(const Stmt *S, const LocationContext *L, ProgramPoint::Kind K, const ProgramPointTag *tag) : StmtPoint(S, nullptr, K, L, tag) {} @@ -363,7 +363,7 @@ private: friend class ProgramPoint; - PreLoad() {} + PreLoad() = default; static bool isKind(const ProgramPoint &location) { return location.getKind() == PreLoadKind; } @@ -377,7 +377,7 @@ private: friend class ProgramPoint; - PreStore() {} + PreStore() = default; static bool isKind(const ProgramPoint &location) { return location.getKind() == PreStoreKind; } @@ -391,7 +391,7 @@ private: friend class ProgramPoint; - PostLoad() {} + PostLoad() = default; static bool isKind(const ProgramPoint &Location) { return Location.getKind() == PostLoadKind; } @@ -418,7 +418,7 @@ private: friend class ProgramPoint; - PostStore() {} + PostStore() = default; static bool isKind(const ProgramPoint &Location) { return Location.getKind() == PostStoreKind; } @@ -432,7 +432,7 @@ private: friend class ProgramPoint; - PostLValue() {} + PostLValue() = default; static bool isKind(const ProgramPoint &Location) { return Location.getKind() == PostLValueKind; } @@ -448,7 +448,7 @@ private: friend class ProgramPoint; - PreStmtPurgeDeadSymbols() {} + PreStmtPurgeDeadSymbols() = default; static bool isKind(const ProgramPoint &Location) { return Location.getKind() == PreStmtPurgeDeadSymbolsKind; } @@ -464,7 +464,7 @@ private: friend class ProgramPoint; - PostStmtPurgeDeadSymbols() {} + PostStmtPurgeDeadSymbols() = default; static bool isKind(const ProgramPoint &Location) { return Location.getKind() == PostStmtPurgeDeadSymbolsKind; } @@ -488,7 +488,7 @@ private: friend class ProgramPoint; - BlockEdge() {} + BlockEdge() = default; static bool isKind(const ProgramPoint &Location) { return Location.getKind() == BlockEdgeKind; } @@ -517,7 +517,7 @@ private: friend class ProgramPoint; - PostInitializer() {} + PostInitializer() = default; static bool isKind(const ProgramPoint &Location) { return Location.getKind() == PostInitializerKind; } @@ -538,7 +538,7 @@ } protected: - ImplicitCallPoint() {} + ImplicitCallPoint() = default; private: friend class ProgramPoint; static bool isKind(const ProgramPoint &Location) { @@ -558,7 +558,7 @@ private: friend class ProgramPoint; - PreImplicitCall() {} + PreImplicitCall() = default; static bool isKind(const ProgramPoint &Location) { return Location.getKind() == PreImplicitCallKind; } @@ -575,7 +575,7 @@ private: friend class ProgramPoint; - PostImplicitCall() {} + PostImplicitCall() = default; static bool isKind(const ProgramPoint &Location) { return Location.getKind() == PostImplicitCallKind; } @@ -589,7 +589,7 @@ private: friend class ProgramPoint; - PostAllocatorCall() {} + PostAllocatorCall() = default; static bool isKind(const ProgramPoint &Location) { return Location.getKind() == PostAllocatorCallKind; } @@ -620,7 +620,7 @@ private: friend class ProgramPoint; - CallEnter() {} + CallEnter() = default; static bool isKind(const ProgramPoint &Location) { return Location.getKind() == CallEnterKind; } @@ -643,7 +643,7 @@ private: friend class ProgramPoint; - CallExitBegin() {} + CallExitBegin() = default; static bool isKind(const ProgramPoint &Location) { return Location.getKind() == CallExitBeginKind; } @@ -664,7 +664,7 @@ private: friend class ProgramPoint; - CallExitEnd() {} + CallExitEnd() = default; static bool isKind(const ProgramPoint &Location) { return Location.getKind() == CallExitEndKind; } @@ -687,7 +687,7 @@ private: friend class ProgramPoint; - LoopExit() {} + LoopExit() = default; static bool isKind(const ProgramPoint &Location) { return Location.getKind() == LoopExitKind; } @@ -706,7 +706,7 @@ private: friend class ProgramPoint; - EpsilonPoint() {} + EpsilonPoint() = default; static bool isKind(const ProgramPoint &Location) { return Location.getKind() == EpsilonKind; }