Fix clang-6 strictness surrounding virtual destructors

Reviewed By: smeenai

Differential Revision: D7326765

fbshipit-source-id: 9df477dfa89812e05e79b5e6d510bcbbc793381c
This commit is contained in:
Naris Siamwalla 2018-03-19 14:23:24 -07:00 committed by Facebook Github Bot
parent ff70ecf868
commit 12535ae69d
4 changed files with 8 additions and 0 deletions

View File

@ -16,6 +16,8 @@ namespace react {
*/
class ExceptionManager {
public:
virtual ~ExceptionManager() = default;
virtual void handleSoftException(const std::exception &e) const = 0;
virtual void handleFatalException(const std::exception &e) const = 0;
};

View File

@ -26,6 +26,8 @@ using SharedComponentDescriptor = std::shared_ptr<ComponentDescriptor>;
class ComponentDescriptor {
public:
virtual ~ComponentDescriptor() = default;
/*
* Returns `componentHandle` associated with particular kind of components.
* All `ShadowNode`s of this type must return same `componentHandle`.

View File

@ -28,6 +28,8 @@ class Props:
public virtual DebugStringConvertible {
public:
virtual ~Props() = default;
virtual void apply(const RawProps &rawProps);
private:

View File

@ -31,6 +31,8 @@ struct DebugStringConvertibleOptions {
class DebugStringConvertible {
public:
virtual ~DebugStringConvertible() = default;
// Returns a name of the object.
// Default implementation returns "Node".
virtual std::string getDebugName() const;