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 {
8181
8282 ~ClangTidyContext ();
8383
84+ ClangTidyContext (const ClangTidyContext &) = delete ;
85+ ClangTidyContext &operator =(const ClangTidyContext &) = delete ;
86+
8487 // / Report any errors detected using this method.
8588 // /
8689 // / 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 {
3131public:
3232 NoLintDirectiveHandler ();
3333 ~NoLintDirectiveHandler ();
34+ NoLintDirectiveHandler (const NoLintDirectiveHandler &) = delete ;
35+ NoLintDirectiveHandler &operator =(const NoLintDirectiveHandler &) = delete ;
3436
3537 bool shouldSuppress (DiagnosticsEngine::Level DiagLevel,
3638 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,
7373 // / The destructor blocks on any outstanding background tasks.
7474 ~ClangdLSPServer ();
7575
76+ ClangdLSPServer (const ClangdLSPServer &other) = delete ;
77+ ClangdLSPServer &operator =(const ClangdLSPServer &other) = delete ;
78+
7679 // / Run LSP server loop, communicating with the Transport provided in the
7780 // / constructor. This method must not be executed more than once.
7881 // /
Original file line number Diff line number Diff line change @@ -59,6 +59,9 @@ class ParsedAST {
5959
6060 ~ParsedAST ();
6161
62+ ParsedAST (const ParsedAST &Other) = delete ;
63+ ParsedAST &operator =(const ParsedAST &Other) = delete ;
64+
6265 // / Note that the returned ast will not contain decls from the preamble that
6366 // / were not deserialized during parsing. Clients should expect only decls
6467 // / 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 {
411411 if (Throttler)
412412 Throttler->release (ID);
413413 }
414+ PreambleThrottlerRequest (const PreambleThrottlerRequest &) = delete ;
415+ PreambleThrottlerRequest &
416+ operator =(const PreambleThrottlerRequest &) = delete ;
414417
415418private:
416419 PreambleThrottler::RequestID ID;
@@ -621,7 +624,8 @@ class ASTWorker {
621624 AsyncTaskRunner *Tasks, Semaphore &Barrier,
622625 const TUScheduler::Options &Opts, ParsingCallbacks &Callbacks);
623626 ~ASTWorker ();
624-
627+ ASTWorker (const ASTWorker &other) = delete ;
628+ ASTWorker &operator =(const ASTWorker &other) = delete ;
625629 void update (ParseInputs Inputs, WantDiagnostics, bool ContentChanged);
626630 void
627631 runWithAST (llvm::StringRef Name,
Original file line number Diff line number Diff line change @@ -242,6 +242,9 @@ class TUScheduler {
242242 std::unique_ptr<ParsingCallbacks> ASTCallbacks = nullptr );
243243 ~TUScheduler ();
244244
245+ TUScheduler (const TUScheduler &other) = delete ;
246+ TUScheduler &operator =(const TUScheduler &other) = delete ;
247+
245248 struct FileStats {
246249 std::size_t UsedBytesAST = 0 ;
247250 std::size_t UsedBytesPreamble = 0 ;
Original file line number Diff line number Diff line change @@ -328,6 +328,9 @@ class Preprocessor {
328328 Preprocessor (const TokenStream &In, TokenStream &Out) : In(In), Out(Out) {}
329329 ~Preprocessor () { Out.finalize (); }
330330
331+ Preprocessor (const Preprocessor &other) = delete ;
332+ Preprocessor &operator =(const Preprocessor &other) = delete ;
333+
331334 void walk (const DirectiveTree &T) {
332335 for (const auto &C : T.Chunks )
333336 std::visit (*this , C);
Original file line number Diff line number Diff line change @@ -46,6 +46,8 @@ class Module {
4646public:
4747 Module (llvm::StringRef Name, bool Problem);
4848 ~Module ();
49+ Module (const Module &other) = delete ;
50+ Module &operator =(const Module &other) = delete ;
4951 bool output (llvm::raw_fd_ostream &OS, int Indent);
5052 Module *findSubModule (llvm::StringRef SubName);
5153
You can’t perform that action at this time.
0 commit comments