This changes libcc1 to use "override" where appropriate.
libcc1
* libcp1.cc (class compiler_triplet_regexp)
(class compiler_driver_filename, class libcp1_connection): Use
"override".
* libcc1.cc (class compiler_triplet_regexp)
(class compiler_driver_filename, class libcc1_connection): Use
"override".
private:
std::string triplet_regexp_;
public:
- virtual char *find (std::string &compiler) const;
+ char *find (std::string &compiler) const override;
compiler_triplet_regexp (libcc1 *self, std::string triplet_regexp)
: compiler (self), triplet_regexp_ (triplet_regexp)
{
private:
std::string driver_filename_;
public:
- virtual char *find (std::string &compiler) const;
+ char *find (std::string &compiler) const override;
compiler_driver_filename (libcc1 *self, std::string driver_filename)
: compiler (self), driver_filename_ (driver_filename)
{
{
}
- virtual void print (const char *buf)
+ void print (const char *buf) override
{
back_ptr->print (buf);
}
private:
std::string triplet_regexp_;
public:
- virtual char *find (std::string &compiler) const;
+ char *find (std::string &compiler) const override;
compiler_triplet_regexp (libcp1 *self, std::string triplet_regexp)
: compiler (self), triplet_regexp_ (triplet_regexp)
{
private:
std::string driver_filename_;
public:
- virtual char *find (std::string &compiler) const;
+ char *find (std::string &compiler) const override;
compiler_driver_filename (libcp1 *self, std::string driver_filename)
: compiler (self), driver_filename_ (driver_filename)
{
{
}
- virtual void print (const char *buf)
+ void print (const char *buf) override
{
back_ptr->print (buf);
}