Commit 8cb536b7 authored by Zentaro Kavanagh's avatar Zentaro Kavanagh Committed by Commit Bot

Mark classes with final dtors as final

- -Wfinal-dtor-non-final-class warns on classes with final dtors but
  not final classes.
- Error messages are better when the class is marked final.
- Fix existing issues in code base and a follow up will remove warning
  exemption.

Bug: 999886
Test: no errors building
Change-Id: I1c7d6c834958298ff1b369f47be2efd2a8227338
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2508187Reviewed-by: default avatarKentaro Hara <haraken@chromium.org>
Commit-Queue: Zentaro Kavanagh <zentaro@chromium.org>
Cr-Commit-Position: refs/heads/master@{#827841}
parent 5bf0d095
...@@ -88,7 +88,7 @@ class InheritedClipChecker : public CSSInterpolationType::CSSConversionChecker { ...@@ -88,7 +88,7 @@ class InheritedClipChecker : public CSSInterpolationType::CSSConversionChecker {
const Vector<Length> inherited_length_list_; const Vector<Length> inherited_length_list_;
}; };
class CSSClipNonInterpolableValue : public NonInterpolableValue { class CSSClipNonInterpolableValue final : public NonInterpolableValue {
public: public:
~CSSClipNonInterpolableValue() final = default; ~CSSClipNonInterpolableValue() final = default;
...@@ -121,7 +121,7 @@ struct DowncastTraits<CSSClipNonInterpolableValue> { ...@@ -121,7 +121,7 @@ struct DowncastTraits<CSSClipNonInterpolableValue> {
} }
}; };
class UnderlyingAutosChecker class UnderlyingAutosChecker final
: public CSSInterpolationType::CSSConversionChecker { : public CSSInterpolationType::CSSConversionChecker {
public: public:
explicit UnderlyingAutosChecker(const ClipAutos& underlying_autos) explicit UnderlyingAutosChecker(const ClipAutos& underlying_autos)
......
...@@ -11,7 +11,8 @@ ...@@ -11,7 +11,8 @@
namespace blink { namespace blink {
class CORE_EXPORT CSSDefaultNonInterpolableValue : public NonInterpolableValue { class CORE_EXPORT CSSDefaultNonInterpolableValue final
: public NonInterpolableValue {
public: public:
~CSSDefaultNonInterpolableValue() final = default; ~CSSDefaultNonInterpolableValue() final = default;
......
...@@ -16,7 +16,7 @@ ...@@ -16,7 +16,7 @@
namespace blink { namespace blink {
class CSSFontVariationSettingsNonInterpolableValue class CSSFontVariationSettingsNonInterpolableValue final
: public NonInterpolableValue { : public NonInterpolableValue {
public: public:
~CSSFontVariationSettingsNonInterpolableValue() final = default; ~CSSFontVariationSettingsNonInterpolableValue() final = default;
...@@ -65,7 +65,8 @@ static bool TagsMatch(const NonInterpolableValue& a, ...@@ -65,7 +65,8 @@ static bool TagsMatch(const NonInterpolableValue& a,
return GetTags(a) == GetTags(b); return GetTags(a) == GetTags(b);
} }
class UnderlyingTagsChecker : public InterpolationType::ConversionChecker { class UnderlyingTagsChecker final
: public InterpolationType::ConversionChecker {
public: public:
explicit UnderlyingTagsChecker(const Vector<uint32_t>& tags) : tags_(tags) {} explicit UnderlyingTagsChecker(const Vector<uint32_t>& tags) : tags_(tags) {}
~UnderlyingTagsChecker() final = default; ~UnderlyingTagsChecker() final = default;
...@@ -79,7 +80,7 @@ class UnderlyingTagsChecker : public InterpolationType::ConversionChecker { ...@@ -79,7 +80,7 @@ class UnderlyingTagsChecker : public InterpolationType::ConversionChecker {
const Vector<uint32_t> tags_; const Vector<uint32_t> tags_;
}; };
class InheritedFontVariationSettingsChecker class InheritedFontVariationSettingsChecker final
: public CSSInterpolationType::CSSConversionChecker { : public CSSInterpolationType::CSSConversionChecker {
public: public:
explicit InheritedFontVariationSettingsChecker( explicit InheritedFontVariationSettingsChecker(
......
...@@ -34,7 +34,7 @@ const StyleImage* GetStyleImage(const CSSProperty& property, ...@@ -34,7 +34,7 @@ const StyleImage* GetStyleImage(const CSSProperty& property,
} }
} // namespace } // namespace
class CSSImageNonInterpolableValue : public NonInterpolableValue { class CSSImageNonInterpolableValue final : public NonInterpolableValue {
public: public:
~CSSImageNonInterpolableValue() final = default; ~CSSImageNonInterpolableValue() final = default;
...@@ -165,7 +165,7 @@ bool CSSImageInterpolationType::EqualNonInterpolableValues( ...@@ -165,7 +165,7 @@ bool CSSImageInterpolationType::EqualNonInterpolableValues(
To<CSSImageNonInterpolableValue>(*b)); To<CSSImageNonInterpolableValue>(*b));
} }
class UnderlyingImageChecker class UnderlyingImageChecker final
: public CSSInterpolationType::CSSConversionChecker { : public CSSInterpolationType::CSSConversionChecker {
public: public:
UnderlyingImageChecker(const InterpolationValue& underlying) UnderlyingImageChecker(const InterpolationValue& underlying)
...@@ -203,7 +203,7 @@ InterpolationValue CSSImageInterpolationType::MaybeConvertInitial( ...@@ -203,7 +203,7 @@ InterpolationValue CSSImageInterpolationType::MaybeConvertInitial(
return nullptr; return nullptr;
} }
class InheritedImageChecker class InheritedImageChecker final
: public CSSInterpolationType::CSSConversionChecker { : public CSSInterpolationType::CSSConversionChecker {
public: public:
InheritedImageChecker(const CSSProperty& property, InheritedImageChecker(const CSSProperty& property,
......
...@@ -18,7 +18,7 @@ ...@@ -18,7 +18,7 @@
namespace blink { namespace blink {
class UnderlyingImageListChecker class UnderlyingImageListChecker final
: public CSSInterpolationType::CSSConversionChecker { : public CSSInterpolationType::CSSConversionChecker {
public: public:
explicit UnderlyingImageListChecker(const InterpolationValue& underlying) explicit UnderlyingImageListChecker(const InterpolationValue& underlying)
...@@ -65,7 +65,7 @@ InterpolationValue CSSImageListInterpolationType::MaybeConvertStyleImageList( ...@@ -65,7 +65,7 @@ InterpolationValue CSSImageListInterpolationType::MaybeConvertStyleImageList(
}); });
} }
class InheritedImageListChecker class InheritedImageListChecker final
: public CSSInterpolationType::CSSConversionChecker { : public CSSInterpolationType::CSSConversionChecker {
public: public:
InheritedImageListChecker(const CSSProperty& property, InheritedImageListChecker(const CSSProperty& property,
......
...@@ -65,7 +65,7 @@ InterpolationValue CSSLengthListInterpolationType::MaybeConvertInitial( ...@@ -65,7 +65,7 @@ InterpolationValue CSSLengthListInterpolationType::MaybeConvertInitial(
return MaybeConvertLengthList(initial_length_list, 1); return MaybeConvertLengthList(initial_length_list, 1);
} }
class InheritedLengthListChecker class InheritedLengthListChecker final
: public CSSInterpolationType::CSSConversionChecker { : public CSSInterpolationType::CSSConversionChecker {
public: public:
InheritedLengthListChecker(const CSSProperty& property, InheritedLengthListChecker(const CSSProperty& property,
......
...@@ -81,7 +81,7 @@ class InheritedScaleChecker ...@@ -81,7 +81,7 @@ class InheritedScaleChecker
} // namespace } // namespace
class CSSScaleNonInterpolableValue : public NonInterpolableValue { class CSSScaleNonInterpolableValue final : public NonInterpolableValue {
public: public:
~CSSScaleNonInterpolableValue() final = default; ~CSSScaleNonInterpolableValue() final = default;
......
...@@ -18,7 +18,7 @@ ...@@ -18,7 +18,7 @@
namespace blink { namespace blink {
class UnderlyingSizeListChecker class UnderlyingSizeListChecker final
: public CSSInterpolationType::CSSConversionChecker { : public CSSInterpolationType::CSSConversionChecker {
public: public:
explicit UnderlyingSizeListChecker(const NonInterpolableList& underlying_list) explicit UnderlyingSizeListChecker(const NonInterpolableList& underlying_list)
...@@ -47,7 +47,7 @@ class UnderlyingSizeListChecker ...@@ -47,7 +47,7 @@ class UnderlyingSizeListChecker
scoped_refptr<const NonInterpolableList> underlying_list_; scoped_refptr<const NonInterpolableList> underlying_list_;
}; };
class InheritedSizeListChecker class InheritedSizeListChecker final
: public CSSInterpolationType::CSSConversionChecker { : public CSSInterpolationType::CSSConversionChecker {
public: public:
InheritedSizeListChecker(const CSSProperty& property, InheritedSizeListChecker(const CSSProperty& property,
......
...@@ -13,7 +13,7 @@ ...@@ -13,7 +13,7 @@
namespace blink { namespace blink {
class CSSVisibilityNonInterpolableValue : public NonInterpolableValue { class CSSVisibilityNonInterpolableValue final : public NonInterpolableValue {
public: public:
~CSSVisibilityNonInterpolableValue() final = default; ~CSSVisibilityNonInterpolableValue() final = default;
...@@ -59,7 +59,7 @@ struct DowncastTraits<CSSVisibilityNonInterpolableValue> { ...@@ -59,7 +59,7 @@ struct DowncastTraits<CSSVisibilityNonInterpolableValue> {
} }
}; };
class UnderlyingVisibilityChecker class UnderlyingVisibilityChecker final
: public CSSInterpolationType::CSSConversionChecker { : public CSSInterpolationType::CSSConversionChecker {
public: public:
explicit UnderlyingVisibilityChecker(EVisibility visibility) explicit UnderlyingVisibilityChecker(EVisibility visibility)
......
...@@ -81,7 +81,7 @@ class CORE_EXPORT ListInterpolationFunctions { ...@@ -81,7 +81,7 @@ class CORE_EXPORT ListInterpolationFunctions {
const NonInterpolableValue* b); const NonInterpolableValue* b);
}; };
class CORE_EXPORT NonInterpolableList : public NonInterpolableValue { class CORE_EXPORT NonInterpolableList final : public NonInterpolableValue {
public: public:
~NonInterpolableList() final = default; ~NonInterpolableList() final = default;
......
...@@ -100,7 +100,7 @@ InterpolationValue PathInterpolationFunctions::ConvertValue( ...@@ -100,7 +100,7 @@ InterpolationValue PathInterpolationFunctions::ConvertValue(
path_seg_types, style_path->GetWindRule())); path_seg_types, style_path->GetWindRule()));
} }
class UnderlyingPathSegTypesChecker class UnderlyingPathSegTypesChecker final
: public InterpolationType::ConversionChecker { : public InterpolationType::ConversionChecker {
public: public:
~UnderlyingPathSegTypesChecker() final = default; ~UnderlyingPathSegTypesChecker() final = default;
......
...@@ -12,7 +12,8 @@ ...@@ -12,7 +12,8 @@
namespace blink { namespace blink {
class CORE_EXPORT CoopAccessViolationReportBody : public LocationReportBody { class CORE_EXPORT CoopAccessViolationReportBody final
: public LocationReportBody {
DEFINE_WRAPPERTYPEINFO(); DEFINE_WRAPPERTYPEINFO();
public: public:
......
...@@ -40,7 +40,7 @@ namespace blink { ...@@ -40,7 +40,7 @@ namespace blink {
// //
// There should only be one instance of AudioRendererMixerManager per render // There should only be one instance of AudioRendererMixerManager per render
// thread. // thread.
class BLINK_MODULES_EXPORT AudioRendererMixerManager class BLINK_MODULES_EXPORT AudioRendererMixerManager final
: public media::AudioRendererMixerPool { : public media::AudioRendererMixerPool {
public: public:
~AudioRendererMixerManager() final; ~AudioRendererMixerManager() final;
......
...@@ -22,7 +22,7 @@ class LocalFrame; ...@@ -22,7 +22,7 @@ class LocalFrame;
// using the parameters and session ID found in MediaStreamDevice, just before // using the parameters and session ID found in MediaStreamDevice, just before
// the first track is connected. Audio data is transported directly to the // the first track is connected. Audio data is transported directly to the
// tracks (i.e., there is no audio processing). // tracks (i.e., there is no audio processing).
class MODULES_EXPORT LocalMediaStreamAudioSource class MODULES_EXPORT LocalMediaStreamAudioSource final
: public MediaStreamAudioSource, : public MediaStreamAudioSource,
public media::AudioCapturerSource::CaptureCallback { public media::AudioCapturerSource::CaptureCallback {
public: public:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment