File tree Expand file tree Collapse file tree 8 files changed +24
-1
lines changed Expand file tree Collapse file tree 8 files changed +24
-1
lines changed Original file line number Diff line number Diff line change @@ -81,6 +81,9 @@ class ClangTidyContext {
81
81
82
82
~ClangTidyContext ();
83
83
84
+ ClangTidyContext (const ClangTidyContext &) = delete ;
85
+ ClangTidyContext &operator =(const ClangTidyContext &) = delete ;
86
+
84
87
// / Report any errors detected using this method.
85
88
// /
86
89
// / This is still under heavy development and will likely change towards using
Original file line number Diff line number Diff line change @@ -31,6 +31,8 @@ class NoLintDirectiveHandler {
31
31
public:
32
32
NoLintDirectiveHandler ();
33
33
~NoLintDirectiveHandler ();
34
+ NoLintDirectiveHandler (const NoLintDirectiveHandler &) = delete ;
35
+ NoLintDirectiveHandler &operator =(const NoLintDirectiveHandler &) = delete ;
34
36
35
37
bool shouldSuppress (DiagnosticsEngine::Level DiagLevel,
36
38
const Diagnostic &Diag, llvm::StringRef DiagName,
Original file line number Diff line number Diff line change @@ -73,6 +73,9 @@ class ClangdLSPServer : private ClangdServer::Callbacks,
73
73
// / The destructor blocks on any outstanding background tasks.
74
74
~ClangdLSPServer ();
75
75
76
+ ClangdLSPServer (const ClangdLSPServer &other) = delete ;
77
+ ClangdLSPServer &operator =(const ClangdLSPServer &other) = delete ;
78
+
76
79
// / Run LSP server loop, communicating with the Transport provided in the
77
80
// / constructor. This method must not be executed more than once.
78
81
// /
Original file line number Diff line number Diff line change @@ -59,6 +59,9 @@ class ParsedAST {
59
59
60
60
~ParsedAST ();
61
61
62
+ ParsedAST (const ParsedAST &Other) = delete ;
63
+ ParsedAST &operator =(const ParsedAST &Other) = delete ;
64
+
62
65
// / Note that the returned ast will not contain decls from the preamble that
63
66
// / were not deserialized during parsing. Clients should expect only decls
64
67
// / from the main file to be in the AST.
Original file line number Diff line number Diff line change @@ -411,6 +411,9 @@ class PreambleThrottlerRequest {
411
411
if (Throttler)
412
412
Throttler->release (ID);
413
413
}
414
+ PreambleThrottlerRequest (const PreambleThrottlerRequest &) = delete ;
415
+ PreambleThrottlerRequest &
416
+ operator =(const PreambleThrottlerRequest &) = delete ;
414
417
415
418
private:
416
419
PreambleThrottler::RequestID ID;
@@ -621,7 +624,8 @@ class ASTWorker {
621
624
AsyncTaskRunner *Tasks, Semaphore &Barrier,
622
625
const TUScheduler::Options &Opts, ParsingCallbacks &Callbacks);
623
626
~ASTWorker ();
624
-
627
+ ASTWorker (const ASTWorker &other) = delete ;
628
+ ASTWorker &operator =(const ASTWorker &other) = delete ;
625
629
void update (ParseInputs Inputs, WantDiagnostics, bool ContentChanged);
626
630
void
627
631
runWithAST (llvm::StringRef Name,
Original file line number Diff line number Diff line change @@ -242,6 +242,9 @@ class TUScheduler {
242
242
std::unique_ptr<ParsingCallbacks> ASTCallbacks = nullptr );
243
243
~TUScheduler ();
244
244
245
+ TUScheduler (const TUScheduler &other) = delete ;
246
+ TUScheduler &operator =(const TUScheduler &other) = delete ;
247
+
245
248
struct FileStats {
246
249
std::size_t UsedBytesAST = 0 ;
247
250
std::size_t UsedBytesPreamble = 0 ;
Original file line number Diff line number Diff line change @@ -328,6 +328,9 @@ class Preprocessor {
328
328
Preprocessor (const TokenStream &In, TokenStream &Out) : In(In), Out(Out) {}
329
329
~Preprocessor () { Out.finalize (); }
330
330
331
+ Preprocessor (const Preprocessor &other) = delete ;
332
+ Preprocessor &operator =(const Preprocessor &other) = delete ;
333
+
331
334
void walk (const DirectiveTree &T) {
332
335
for (const auto &C : T.Chunks )
333
336
std::visit (*this , C);
Original file line number Diff line number Diff line change @@ -46,6 +46,8 @@ class Module {
46
46
public:
47
47
Module (llvm::StringRef Name, bool Problem);
48
48
~Module ();
49
+ Module (const Module &other) = delete ;
50
+ Module &operator =(const Module &other) = delete ;
49
51
bool output (llvm::raw_fd_ostream &OS, int Indent);
50
52
Module *findSubModule (llvm::StringRef SubName);
51
53
You can’t perform that action at this time.
0 commit comments