]> git.ipfire.org Git - thirdparty/gcc.git/blobdiff - libcc1/connection.hh
Update copyright years.
[thirdparty/gcc.git] / libcc1 / connection.hh
index 50e8a8b5a032807cc461f17130a7e6355c55de5c..f251b4667d38843f0bcfc518ff59eecd4f05557a 100644 (file)
@@ -1,5 +1,5 @@
 /* Plugin connection declarations
-   Copyright (C) 2014-2021 Free Software Foundation, Inc.
+   Copyright (C) 2014-2024 Free Software Foundation, Inc.
 
 This file is part of GCC.
 
@@ -46,7 +46,10 @@ namespace cc1_plugin
     {
     }
 
-    virtual ~connection ();
+    virtual ~connection () = default;
+
+    connection (const connection &) = delete;
+    connection &operator= (const connection &) = delete;
 
     // Send a single character.  This is used to introduce various
     // higher-level protocol elements.
@@ -89,14 +92,12 @@ namespace cc1_plugin
       m_callbacks.add_callback (name, func);
     }
 
-    virtual void print (const char *);
+    virtual void print (const char *)
+    {
+    }
 
   private:
 
-    // Declared but not defined, to prevent use.
-    connection (const connection &);
-    connection &operator= (const connection &);
-
     // Helper function for the wait_* methods.
     status do_wait (bool);