File tree Expand file tree Collapse file tree 15 files changed +92
-2
lines changed Expand file tree Collapse file tree 15 files changed +92
-2
lines changed Original file line number Diff line number Diff line change @@ -3210,7 +3210,6 @@ class ASTContext : public RefCountedBase<ASTContext> {
3210
3210
3211
3211
public:
3212
3212
ObjCEncOptions () : Bits(0 ) {}
3213
- ObjCEncOptions (const ObjCEncOptions &RHS) : Bits(RHS.Bits) {}
3214
3213
3215
3214
#define OPT_LIST (V ) \
3216
3215
V (ExpandPointedToStructures, 0 ) \
Original file line number Diff line number Diff line change @@ -155,6 +155,10 @@ namespace consumed {
155
155
ConsumedStateMap (const ConsumedStateMap &Other)
156
156
: Reachable(Other.Reachable), From(Other.From), VarMap(Other.VarMap) {}
157
157
158
+ // The copy assignment operator is defined as deleted pending further
159
+ // motivation.
160
+ ConsumedStateMap &operator =(const ConsumedStateMap &) = delete ;
161
+
158
162
// / Warn if any of the parameters being tracked are not in the state
159
163
// / they were declared to be in upon return from a function.
160
164
void checkParamsForReturnTypestate (SourceLocation BlameLoc,
Original file line number Diff line number Diff line change @@ -488,6 +488,10 @@ class Undefined : public SExpr {
488
488
Undefined (const Stmt *S = nullptr ) : SExpr(COP_Undefined), Cstmt(S) {}
489
489
Undefined (const Undefined &U) : SExpr(U), Cstmt(U.Cstmt) {}
490
490
491
+ // The copy assignment operator is defined as deleted pending further
492
+ // motivation.
493
+ Undefined &operator =(const Undefined &) = delete ;
494
+
491
495
static bool classof (const SExpr *E) { return E->opcode () == COP_Undefined; }
492
496
493
497
template <class V >
@@ -566,6 +570,10 @@ class LiteralT : public Literal {
566
570
LiteralT (T Dat) : Literal(ValueType::getValueType<T>()), Val(Dat) {}
567
571
LiteralT (const LiteralT<T> &L) : Literal(L), Val(L.Val) {}
568
572
573
+ // The copy assignment operator is defined as deleted pending further
574
+ // motivation.
575
+ LiteralT &operator =(const LiteralT<T> &) = delete ;
576
+
569
577
T value () const { return Val;}
570
578
T& value () { return Val; }
571
579
Original file line number Diff line number Diff line change @@ -240,6 +240,10 @@ class CopyOnWriteVector {
240
240
241
241
VectorData () = default ;
242
242
VectorData (const VectorData &VD) : Vect(VD.Vect) {}
243
+
244
+ // The copy assignment operator is defined as deleted pending further
245
+ // motivation.
246
+ VectorData &operator =(const VectorData &) = delete ;
243
247
};
244
248
245
249
public:
Original file line number Diff line number Diff line change @@ -42,6 +42,15 @@ class BumpVectorContext {
42
42
Other.Alloc .setPointer (nullptr );
43
43
}
44
44
45
+ // The move assignment operator is defined as deleted pending further
46
+ // motivation.
47
+ BumpVectorContext &operator =(BumpVectorContext &&) = delete ;
48
+
49
+ // The copy constrcutor and copy assignment operator is defined as deleted
50
+ // pending further motivation.
51
+ BumpVectorContext (const BumpVectorContext &) = delete ;
52
+ BumpVectorContext &operator =(const BumpVectorContext &) = delete ;
53
+
45
54
// / Construct a new BumpVectorContext that reuses an existing
46
55
// / BumpPtrAllocator. This BumpPtrAllocator is not destroyed when the
47
56
// / BumpVectorContext object is destroyed.
Original file line number Diff line number Diff line change @@ -181,6 +181,10 @@ class RewriteRope {
181
181
RewriteRope () = default ;
182
182
RewriteRope (const RewriteRope &RHS) : Chunks(RHS.Chunks) {}
183
183
184
+ // The copy assignment operator is defined as deleted pending further
185
+ // motivation.
186
+ RewriteRope &operator =(const RewriteRope &) = delete ;
187
+
184
188
using iterator = RopePieceBTree::iterator;
185
189
using const_iterator = RopePieceBTree::iterator;
186
190
Original file line number Diff line number Diff line change @@ -657,6 +657,15 @@ class LookupResult {
657
657
F.CalledDone = true ;
658
658
}
659
659
660
+ // The move assignment operator is defined as deleted pending
661
+ // further motivation.
662
+ Filter &operator =(Filter &&) = delete ;
663
+
664
+ // The copy constrcutor and copy assignment operator is defined as deleted
665
+ // pending further motivation.
666
+ Filter (const Filter &) = delete;
667
+ Filter &operator =(const Filter &) = delete ;
668
+
660
669
~Filter () {
661
670
assert (CalledDone &&
662
671
" LookupResult::Filter destroyed without done() call" );
Original file line number Diff line number Diff line change @@ -696,13 +696,19 @@ class AttributePool {
696
696
AttributePool (AttributeFactory &factory) : Factory(factory) {}
697
697
698
698
AttributePool (const AttributePool &) = delete ;
699
+ // The copy assignment operator is defined as deleted pending further
700
+ // motivation.
699
701
AttributePool &operator =(const AttributePool &) = delete ;
700
702
701
703
~AttributePool () { Factory.reclaimPool (*this ); }
702
704
703
705
// / Move the given pool's allocations to this pool.
704
706
AttributePool (AttributePool &&pool) = default ;
705
707
708
+ // The move assignment operator is defined as deleted pending further
709
+ // motivation.
710
+ AttributePool &operator =(AttributePool &&pool) = delete ;
711
+
706
712
AttributeFactory &getFactory () const { return Factory; }
707
713
708
714
void clear () {
Original file line number Diff line number Diff line change @@ -1787,6 +1787,12 @@ class Sema final {
1787
1787
const FunctionDecl *Fn, Sema &S);
1788
1788
SemaDiagnosticBuilder(SemaDiagnosticBuilder &&D);
1789
1789
SemaDiagnosticBuilder(const SemaDiagnosticBuilder &) = default;
1790
+
1791
+ // The copy and move assignment operator is defined as deleted pending
1792
+ // further motivation.
1793
+ SemaDiagnosticBuilder &operator=(const SemaDiagnosticBuilder &) = delete;
1794
+ SemaDiagnosticBuilder &operator=(SemaDiagnosticBuilder &&) = delete;
1795
+
1790
1796
~SemaDiagnosticBuilder();
1791
1797
1792
1798
bool isImmediate() const { return ImmediateDiag.has_value(); }
Original file line number Diff line number Diff line change @@ -51,6 +51,12 @@ class BugReporterVisitor : public llvm::FoldingSetNode {
51
51
BugReporterVisitor () = default ;
52
52
BugReporterVisitor (const BugReporterVisitor &) = default ;
53
53
BugReporterVisitor (BugReporterVisitor &&) {}
54
+
55
+ // The copy and move assignment operator is defined as deleted pending further
56
+ // motivation.
57
+ BugReporterVisitor &operator =(const BugReporterVisitor &) = delete ;
58
+ BugReporterVisitor &operator =(BugReporterVisitor &&) = delete ;
59
+
54
60
virtual ~BugReporterVisitor ();
55
61
56
62
// / Return a diagnostic piece which should be associated with the
Original file line number Diff line number Diff line change @@ -672,6 +672,11 @@ class SymbolVisitor {
672
672
SymbolVisitor (const SymbolVisitor &) = default ;
673
673
SymbolVisitor (SymbolVisitor &&) {}
674
674
675
+ // The copy and move assignment operator is defined as deleted pending further
676
+ // motivation.
677
+ SymbolVisitor &operator =(const SymbolVisitor &) = delete ;
678
+ SymbolVisitor &operator =(SymbolVisitor &&) = delete ;
679
+
675
680
// / A visitor method invoked by ProgramStateManager::scanReachableSymbols.
676
681
// /
677
682
// / The method returns \c true if symbols should continue be scanned and \c
Original file line number Diff line number Diff line change @@ -829,7 +829,13 @@ class ApplyDebugLocation {
829
829
ApplyDebugLocation (ApplyDebugLocation &&Other) : CGF(Other.CGF) {
830
830
Other.CGF = nullptr ;
831
831
}
832
- ApplyDebugLocation &operator =(ApplyDebugLocation &&) = default ;
832
+
833
+ // Define copy assignment operator.
834
+ ApplyDebugLocation &operator =(ApplyDebugLocation &&Other) {
835
+ CGF = Other.CGF ;
836
+ Other.CGF = nullptr ;
837
+ return *this ;
838
+ }
833
839
834
840
~ApplyDebugLocation ();
835
841
Original file line number Diff line number Diff line change @@ -148,6 +148,12 @@ class EHScopeStack {
148
148
public:
149
149
Cleanup (const Cleanup &) = default ;
150
150
Cleanup (Cleanup &&) {}
151
+
152
+ // The copy and move assignment operator is defined as deleted pending
153
+ // further motivation.
154
+ Cleanup &operator =(const Cleanup &) = delete ;
155
+ Cleanup &operator =(Cleanup &&) = delete ;
156
+
151
157
Cleanup () = default ;
152
158
153
159
virtual bool isRedundantBeforeReturn () { return false ; }
Original file line number Diff line number Diff line change @@ -199,6 +199,16 @@ struct AccessTarget : public AccessedEntity {
199
199
: Target(S.Target), Has(S.Has) {
200
200
S.Target = nullptr ;
201
201
}
202
+
203
+ // The move assignment operator is defined as deleted pending further
204
+ // motivation.
205
+ SavedInstanceContext &operator =(SavedInstanceContext &&) = delete ;
206
+
207
+ // The copy constrcutor and copy assignment operator is defined as deleted
208
+ // pending further motivation.
209
+ SavedInstanceContext (const SavedInstanceContext &) = delete ;
210
+ SavedInstanceContext &operator =(const SavedInstanceContext &) = delete ;
211
+
202
212
~SavedInstanceContext () {
203
213
if (Target)
204
214
Target->HasInstanceContext = Has;
Original file line number Diff line number Diff line change @@ -653,6 +653,14 @@ struct DiagnosticTextBuilder {
653
653
Root (O.Root) {
654
654
O.Root = nullptr ;
655
655
}
656
+ // The move assignment operator is defined as deleted pending further
657
+ // motivation.
658
+ DiagText &operator =(DiagText &&) = delete ;
659
+
660
+ // The copy constrcutor and copy assignment operator is defined as deleted
661
+ // pending further motivation.
662
+ DiagText (const DiagText &) = delete;
663
+ DiagText &operator =(const DiagText &) = delete ;
656
664
657
665
~DiagText () {
658
666
for (Piece *P : AllocatedPieces)
You can’t perform that action at this time.
0 commit comments