Skip to content

Commit 59c5c95

Browse files
committed
Addressed review comments.
1 parent 8793d4c commit 59c5c95

File tree

8 files changed

+18
-18
lines changed

8 files changed

+18
-18
lines changed

clang-tools-extra/clang-tidy/ClangTidyDiagnosticConsumer.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -81,8 +81,8 @@ class ClangTidyContext {
8181

8282
~ClangTidyContext();
8383

84-
ClangTidyContext(const ClangTidyContext &) = default;
85-
ClangTidyContext &operator=(const ClangTidyContext &) = default;
84+
ClangTidyContext(const ClangTidyContext &) = delete;
85+
ClangTidyContext &operator=(const ClangTidyContext &) = delete;
8686

8787
/// Report any errors detected using this method.
8888
///

clang-tools-extra/clang-tidy/NoLintDirectiveHandler.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,8 @@ class NoLintDirectiveHandler {
3131
public:
3232
NoLintDirectiveHandler();
3333
~NoLintDirectiveHandler();
34-
NoLintDirectiveHandler(const NoLintDirectiveHandler &) = default;
35-
NoLintDirectiveHandler &operator=(const NoLintDirectiveHandler &) = default;
34+
NoLintDirectiveHandler(const NoLintDirectiveHandler &) = delete;
35+
NoLintDirectiveHandler &operator=(const NoLintDirectiveHandler &) = delete;
3636

3737
bool shouldSuppress(DiagnosticsEngine::Level DiagLevel,
3838
const Diagnostic &Diag, llvm::StringRef DiagName,

clang-tools-extra/clangd/ClangdLSPServer.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -73,8 +73,8 @@ class ClangdLSPServer : private ClangdServer::Callbacks,
7373
/// The destructor blocks on any outstanding background tasks.
7474
~ClangdLSPServer();
7575

76-
ClangdLSPServer(const ClangdLSPServer &other) = default;
77-
ClangdLSPServer &operator=(const ClangdLSPServer &other) = default;
76+
ClangdLSPServer(const ClangdLSPServer &other) = delete;
77+
ClangdLSPServer &operator=(const ClangdLSPServer &other) = delete;
7878

7979
/// Run LSP server loop, communicating with the Transport provided in the
8080
/// constructor. This method must not be executed more than once.

clang-tools-extra/clangd/ParsedAST.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,8 +59,8 @@ class ParsedAST {
5959

6060
~ParsedAST();
6161

62-
ParsedAST(const ParsedAST &Other) = default;
63-
ParsedAST &operator=(const ParsedAST &Other) = default;
62+
ParsedAST(const ParsedAST &Other) = delete;
63+
ParsedAST &operator=(const ParsedAST &Other) = delete;
6464

6565
/// Note that the returned ast will not contain decls from the preamble that
6666
/// were not deserialized during parsing. Clients should expect only decls

clang-tools-extra/clangd/TUScheduler.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -411,9 +411,9 @@ class PreambleThrottlerRequest {
411411
if (Throttler)
412412
Throttler->release(ID);
413413
}
414-
PreambleThrottlerRequest(const PreambleThrottlerRequest &) = default;
414+
PreambleThrottlerRequest(const PreambleThrottlerRequest &) = delete;
415415
PreambleThrottlerRequest &
416-
operator=(const PreambleThrottlerRequest &) = default;
416+
operator=(const PreambleThrottlerRequest &) = delete;
417417

418418
private:
419419
PreambleThrottler::RequestID ID;
@@ -624,8 +624,8 @@ class ASTWorker {
624624
AsyncTaskRunner *Tasks, Semaphore &Barrier,
625625
const TUScheduler::Options &Opts, ParsingCallbacks &Callbacks);
626626
~ASTWorker();
627-
ASTWorker(const ASTWorker &other) = default;
628-
ASTWorker &operator=(const ASTWorker &other) = default;
627+
ASTWorker(const ASTWorker &other) = delete;
628+
ASTWorker &operator=(const ASTWorker &other) = delete;
629629
void update(ParseInputs Inputs, WantDiagnostics, bool ContentChanged);
630630
void
631631
runWithAST(llvm::StringRef Name,

clang-tools-extra/clangd/TUScheduler.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -242,8 +242,8 @@ class TUScheduler {
242242
std::unique_ptr<ParsingCallbacks> ASTCallbacks = nullptr);
243243
~TUScheduler();
244244

245-
TUScheduler(const TUScheduler &other) = default;
246-
TUScheduler &operator=(const TUScheduler &other) = default;
245+
TUScheduler(const TUScheduler &other) = delete;
246+
TUScheduler &operator=(const TUScheduler &other) = delete;
247247

248248
struct FileStats {
249249
std::size_t UsedBytesAST = 0;

clang-tools-extra/clangd/support/DirectiveTree.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -328,8 +328,8 @@ class Preprocessor {
328328
Preprocessor(const TokenStream &In, TokenStream &Out) : In(In), Out(Out) {}
329329
~Preprocessor() { Out.finalize(); }
330330

331-
Preprocessor(const Preprocessor &other) = default;
332-
Preprocessor &operator=(const Preprocessor &other) = default;
331+
Preprocessor(const Preprocessor &other) = delete;
332+
Preprocessor &operator=(const Preprocessor &other) = delete;
333333

334334
void walk(const DirectiveTree &T) {
335335
for (const auto &C : T.Chunks)

clang-tools-extra/modularize/ModuleAssistant.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,8 +46,8 @@ class Module {
4646
public:
4747
Module(llvm::StringRef Name, bool Problem);
4848
~Module();
49-
Module(const Module &other) = default;
50-
Module &operator=(const Module &other) = default;
49+
Module(const Module &other) = delete;
50+
Module &operator=(const Module &other) = delete;
5151
bool output(llvm::raw_fd_ostream &OS, int Indent);
5252
Module *findSubModule(llvm::StringRef SubName);
5353

0 commit comments

Comments
 (0)