Run clang-tidy (modernize-use-override) (#4251)

This commit is contained in:
Eisuke Kawashima
2021-07-01 12:18:56 +09:00
committed by GitHub
parent 333ae7d655
commit 013ba4f21d
103 changed files with 542 additions and 507 deletions

View File

@@ -47,7 +47,7 @@ class RDKIT_FRAGCATALOG_EXPORT FragCatParams : public RDCatalog::CatalogParams {
//! construct from a pickle string (serialized representation)
FragCatParams(const std::string &pickle);
~FragCatParams();
~FragCatParams() override;
//! returns our lower fragment length
unsigned int getLowerFragLength() const { return d_lowerFragLen; }
@@ -75,10 +75,10 @@ class RDKIT_FRAGCATALOG_EXPORT FragCatParams : public RDCatalog::CatalogParams {
//! returns a pointer to a specific functional group
const ROMol *getFuncGroup(unsigned int fid) const;
void toStream(std::ostream &) const;
std::string Serialize() const;
void initFromStream(std::istream &ss);
void initFromString(const std::string &text);
void toStream(std::ostream &) const override;
std::string Serialize() const override;
void initFromStream(std::istream &ss) override;
void initFromString(const std::string &text) override;
private:
unsigned int d_lowerFragLen;

View File

@@ -36,7 +36,7 @@ class RDKIT_FRAGCATALOG_EXPORT FragCatalogEntry
const MatchVectType &aidToFid);
FragCatalogEntry(const std::string &pickle);
~FragCatalogEntry() {
~FragCatalogEntry() override {
delete dp_mol;
dp_mol = nullptr;
if (dp_props) {
@@ -45,7 +45,7 @@ class RDKIT_FRAGCATALOG_EXPORT FragCatalogEntry
}
}
std::string getDescription() const { return d_descrip; }
std::string getDescription() const override { return d_descrip; }
void setDescription(const std::string &val) { d_descrip = val; }
@@ -111,10 +111,10 @@ class RDKIT_FRAGCATALOG_EXPORT FragCatalogEntry
void clearProp(const std::string &key) const { clearProp(key.c_str()); }
void toStream(std::ostream &ss) const;
std::string Serialize() const;
void initFromStream(std::istream &ss);
void initFromString(const std::string &text);
void toStream(std::ostream &ss) const override;
std::string Serialize() const override;
void initFromStream(std::istream &ss) override;
void initFromString(const std::string &text) override;
private:
ROMol *dp_mol{nullptr};