apply clang-tidy modernize-use-override
authorVictor Gao <vgao@fb.com>
Fri, 9 Jun 2017 18:26:26 +0000 (11:26 -0700)
committerFacebook Github Bot <facebook-github-bot@users.noreply.github.com>
Fri, 9 Jun 2017 18:27:15 +0000 (11:27 -0700)
Summary: Use clang-tidy to mechanically add missing `override` and remove redundant `virtual`.

Reviewed By: igorsugak

Differential Revision: D5211868

fbshipit-source-id: 6a85f7c4a543a4c9345ec5b0681a8853707343dc

folly/io/Compression.cpp
folly/io/Compression.h

index d014b69abc6e8202a8e1f25c8cca205f8771c1de..8dd19bc79ae80db4f05a64d20df4961a9b43e637 100644 (file)
@@ -997,7 +997,7 @@ class ZlibStreamCodec final : public StreamCodec {
   static std::unique_ptr<Codec> createCodec(int level, CodecType type);
   static std::unique_ptr<StreamCodec> createStream(int level, CodecType type);
   explicit ZlibStreamCodec(int level, CodecType type);
   static std::unique_ptr<Codec> createCodec(int level, CodecType type);
   static std::unique_ptr<StreamCodec> createStream(int level, CodecType type);
   explicit ZlibStreamCodec(int level, CodecType type);
-  ~ZlibStreamCodec();
+  ~ZlibStreamCodec() override;
 
   std::vector<std::string> validPrefixes() const override;
   bool canUncompress(const IOBuf* data, Optional<uint64_t> uncompressedLength)
 
   std::vector<std::string> validPrefixes() const override;
   bool canUncompress(const IOBuf* data, Optional<uint64_t> uncompressedLength)
index e9bcd2a5a38defaf49b7fe2ffafa77d183203552..0a2423bf7d115c305d2ca463a687c5b6e19f0237 100644 (file)
@@ -237,7 +237,7 @@ class Codec {
 
 class StreamCodec : public Codec {
  public:
 
 class StreamCodec : public Codec {
  public:
-  virtual ~StreamCodec() {}
+  ~StreamCodec() override {}
 
   /**
    * Does the codec need the data length before compression streaming?
 
   /**
    * Does the codec need the data length before compression streaming?
@@ -359,7 +359,7 @@ class StreamCodec : public Codec {
  private:
   // default: Implemented using the streaming API.
   std::unique_ptr<IOBuf> doCompress(const folly::IOBuf* data) override;
  private:
   // default: Implemented using the streaming API.
   std::unique_ptr<IOBuf> doCompress(const folly::IOBuf* data) override;
-  virtual std::unique_ptr<IOBuf> doUncompress(
+  std::unique_ptr<IOBuf> doUncompress(
       const folly::IOBuf* data,
       folly::Optional<uint64_t> uncompressedLength) override;
 
       const folly::IOBuf* data,
       folly::Optional<uint64_t> uncompressedLength) override;