Skip to content

Commit b60a80a

Browse files
committedJan 18, 2018
[analyzer] NFC: Use "= default" for default ProgramPoint constructors.
Differential Revision: https://reviews.llvm.org/D41935 llvm-svn: 322798
1 parent e941dae commit b60a80a

File tree

1 file changed

+26
-26
lines changed

1 file changed

+26
-26
lines changed
 

‎clang/include/clang/Analysis/ProgramPoint.h

+26-26
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ class ProgramPoint {
9898
llvm::PointerIntPair<const ProgramPointTag *, 2, unsigned> Tag;
9999

100100
protected:
101-
ProgramPoint() {}
101+
ProgramPoint() = default;
102102
ProgramPoint(const void *P,
103103
Kind k,
104104
const LocationContext *l,
@@ -234,7 +234,7 @@ class BlockEntrance : public ProgramPoint {
234234

235235
private:
236236
friend class ProgramPoint;
237-
BlockEntrance() {}
237+
BlockEntrance() = default;
238238
static bool isKind(const ProgramPoint &Location) {
239239
return Location.getKind() == BlockEntranceKind;
240240
}
@@ -255,7 +255,7 @@ class BlockExit : public ProgramPoint {
255255

256256
private:
257257
friend class ProgramPoint;
258-
BlockExit() {}
258+
BlockExit() = default;
259259
static bool isKind(const ProgramPoint &Location) {
260260
return Location.getKind() == BlockExitKind;
261261
}
@@ -275,7 +275,7 @@ class StmtPoint : public ProgramPoint {
275275
const T* getStmtAs() const { return dyn_cast<T>(getStmt()); }
276276

277277
protected:
278-
StmtPoint() {}
278+
StmtPoint() = default;
279279
private:
280280
friend class ProgramPoint;
281281
static bool isKind(const ProgramPoint &Location) {
@@ -295,15 +295,15 @@ class PreStmt : public StmtPoint {
295295

296296
private:
297297
friend class ProgramPoint;
298-
PreStmt() {}
298+
PreStmt() = default;
299299
static bool isKind(const ProgramPoint &Location) {
300300
return Location.getKind() == PreStmtKind;
301301
}
302302
};
303303

304304
class PostStmt : public StmtPoint {
305305
protected:
306-
PostStmt() {}
306+
PostStmt() = default;
307307
PostStmt(const Stmt *S, const void *data, Kind k, const LocationContext *L,
308308
const ProgramPointTag *tag = nullptr)
309309
: StmtPoint(S, data, k, L, tag) {}
@@ -334,15 +334,15 @@ class PostCondition : public PostStmt {
334334

335335
private:
336336
friend class ProgramPoint;
337-
PostCondition() {}
337+
PostCondition() = default;
338338
static bool isKind(const ProgramPoint &Location) {
339339
return Location.getKind() == PostConditionKind;
340340
}
341341
};
342342

343343
class LocationCheck : public StmtPoint {
344344
protected:
345-
LocationCheck() {}
345+
LocationCheck() = default;
346346
LocationCheck(const Stmt *S, const LocationContext *L,
347347
ProgramPoint::Kind K, const ProgramPointTag *tag)
348348
: StmtPoint(S, nullptr, K, L, tag) {}
@@ -363,7 +363,7 @@ class PreLoad : public LocationCheck {
363363

364364
private:
365365
friend class ProgramPoint;
366-
PreLoad() {}
366+
PreLoad() = default;
367367
static bool isKind(const ProgramPoint &location) {
368368
return location.getKind() == PreLoadKind;
369369
}
@@ -377,7 +377,7 @@ class PreStore : public LocationCheck {
377377

378378
private:
379379
friend class ProgramPoint;
380-
PreStore() {}
380+
PreStore() = default;
381381
static bool isKind(const ProgramPoint &location) {
382382
return location.getKind() == PreStoreKind;
383383
}
@@ -391,7 +391,7 @@ class PostLoad : public PostStmt {
391391

392392
private:
393393
friend class ProgramPoint;
394-
PostLoad() {}
394+
PostLoad() = default;
395395
static bool isKind(const ProgramPoint &Location) {
396396
return Location.getKind() == PostLoadKind;
397397
}
@@ -418,7 +418,7 @@ class PostStore : public PostStmt {
418418

419419
private:
420420
friend class ProgramPoint;
421-
PostStore() {}
421+
PostStore() = default;
422422
static bool isKind(const ProgramPoint &Location) {
423423
return Location.getKind() == PostStoreKind;
424424
}
@@ -432,7 +432,7 @@ class PostLValue : public PostStmt {
432432

433433
private:
434434
friend class ProgramPoint;
435-
PostLValue() {}
435+
PostLValue() = default;
436436
static bool isKind(const ProgramPoint &Location) {
437437
return Location.getKind() == PostLValueKind;
438438
}
@@ -448,7 +448,7 @@ class PreStmtPurgeDeadSymbols : public StmtPoint {
448448

449449
private:
450450
friend class ProgramPoint;
451-
PreStmtPurgeDeadSymbols() {}
451+
PreStmtPurgeDeadSymbols() = default;
452452
static bool isKind(const ProgramPoint &Location) {
453453
return Location.getKind() == PreStmtPurgeDeadSymbolsKind;
454454
}
@@ -464,7 +464,7 @@ class PostStmtPurgeDeadSymbols : public StmtPoint {
464464

465465
private:
466466
friend class ProgramPoint;
467-
PostStmtPurgeDeadSymbols() {}
467+
PostStmtPurgeDeadSymbols() = default;
468468
static bool isKind(const ProgramPoint &Location) {
469469
return Location.getKind() == PostStmtPurgeDeadSymbolsKind;
470470
}
@@ -488,7 +488,7 @@ class BlockEdge : public ProgramPoint {
488488

489489
private:
490490
friend class ProgramPoint;
491-
BlockEdge() {}
491+
BlockEdge() = default;
492492
static bool isKind(const ProgramPoint &Location) {
493493
return Location.getKind() == BlockEdgeKind;
494494
}
@@ -517,7 +517,7 @@ class PostInitializer : public ProgramPoint {
517517

518518
private:
519519
friend class ProgramPoint;
520-
PostInitializer() {}
520+
PostInitializer() = default;
521521
static bool isKind(const ProgramPoint &Location) {
522522
return Location.getKind() == PostInitializerKind;
523523
}
@@ -538,7 +538,7 @@ class ImplicitCallPoint : public ProgramPoint {
538538
}
539539

540540
protected:
541-
ImplicitCallPoint() {}
541+
ImplicitCallPoint() = default;
542542
private:
543543
friend class ProgramPoint;
544544
static bool isKind(const ProgramPoint &Location) {
@@ -558,7 +558,7 @@ class PreImplicitCall : public ImplicitCallPoint {
558558

559559
private:
560560
friend class ProgramPoint;
561-
PreImplicitCall() {}
561+
PreImplicitCall() = default;
562562
static bool isKind(const ProgramPoint &Location) {
563563
return Location.getKind() == PreImplicitCallKind;
564564
}
@@ -575,7 +575,7 @@ class PostImplicitCall : public ImplicitCallPoint {
575575

576576
private:
577577
friend class ProgramPoint;
578-
PostImplicitCall() {}
578+
PostImplicitCall() = default;
579579
static bool isKind(const ProgramPoint &Location) {
580580
return Location.getKind() == PostImplicitCallKind;
581581
}
@@ -589,7 +589,7 @@ class PostAllocatorCall : public StmtPoint {
589589

590590
private:
591591
friend class ProgramPoint;
592-
PostAllocatorCall() {}
592+
PostAllocatorCall() = default;
593593
static bool isKind(const ProgramPoint &Location) {
594594
return Location.getKind() == PostAllocatorCallKind;
595595
}
@@ -620,7 +620,7 @@ class CallEnter : public ProgramPoint {
620620

621621
private:
622622
friend class ProgramPoint;
623-
CallEnter() {}
623+
CallEnter() = default;
624624
static bool isKind(const ProgramPoint &Location) {
625625
return Location.getKind() == CallEnterKind;
626626
}
@@ -643,7 +643,7 @@ class CallExitBegin : public ProgramPoint {
643643

644644
private:
645645
friend class ProgramPoint;
646-
CallExitBegin() {}
646+
CallExitBegin() = default;
647647
static bool isKind(const ProgramPoint &Location) {
648648
return Location.getKind() == CallExitBeginKind;
649649
}
@@ -664,7 +664,7 @@ class CallExitEnd : public ProgramPoint {
664664

665665
private:
666666
friend class ProgramPoint;
667-
CallExitEnd() {}
667+
CallExitEnd() = default;
668668
static bool isKind(const ProgramPoint &Location) {
669669
return Location.getKind() == CallExitEndKind;
670670
}
@@ -687,7 +687,7 @@ class LoopExit : public ProgramPoint {
687687

688688
private:
689689
friend class ProgramPoint;
690-
LoopExit() {}
690+
LoopExit() = default;
691691
static bool isKind(const ProgramPoint &Location) {
692692
return Location.getKind() == LoopExitKind;
693693
}
@@ -706,7 +706,7 @@ class EpsilonPoint : public ProgramPoint {
706706

707707
private:
708708
friend class ProgramPoint;
709-
EpsilonPoint() {}
709+
EpsilonPoint() = default;
710710
static bool isKind(const ProgramPoint &Location) {
711711
return Location.getKind() == EpsilonKind;
712712
}

0 commit comments

Comments
 (0)
Please sign in to comment.