diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-19 01:13:27 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-19 01:13:27 +0000 |
commit | 40a355a42d4a9444dc753c04c6608dade2f06a23 (patch) | |
tree | 871fc667d2de662f171103ce5ec067014ef85e61 /third_party/libwebrtc/tools/clang/plugins/tests/overridden_methods.h | |
parent | Adding upstream version 124.0.1. (diff) | |
download | firefox-40a355a42d4a9444dc753c04c6608dade2f06a23.tar.xz firefox-40a355a42d4a9444dc753c04c6608dade2f06a23.zip |
Adding upstream version 125.0.1.upstream/125.0.1
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'third_party/libwebrtc/tools/clang/plugins/tests/overridden_methods.h')
-rw-r--r-- | third_party/libwebrtc/tools/clang/plugins/tests/overridden_methods.h | 54 |
1 files changed, 0 insertions, 54 deletions
diff --git a/third_party/libwebrtc/tools/clang/plugins/tests/overridden_methods.h b/third_party/libwebrtc/tools/clang/plugins/tests/overridden_methods.h deleted file mode 100644 index 150c79913f..0000000000 --- a/third_party/libwebrtc/tools/clang/plugins/tests/overridden_methods.h +++ /dev/null @@ -1,54 +0,0 @@ -// Copyright (c) 2011 The Chromium Authors. All rights reserved. -// Use of this source code is governed by a BSD-style license that can be -// found in the LICENSE file. - -#ifndef OVERRIDDEN_METHODS_H_ -#define OVERRIDDEN_METHODS_H_ - -// Should warn about overriding of methods. -class BaseClass { - public: - virtual ~BaseClass() {} - virtual void SomeMethod() = 0; - virtual void SomeOtherMethod() = 0; - virtual void SomeInlineMethod() = 0; - virtual void SomeNonPureBaseMethod() {} -}; - -class InterimClass : public BaseClass { - // Should not warn about pure virtual methods. - virtual void SomeMethod() = 0; -}; - -namespace WebKit { -class WebKitObserver { - public: - virtual void WebKitModifiedSomething() {}; -}; -} // namespace WebKit - -namespace webkit_glue { -class WebKitObserverImpl : WebKit::WebKitObserver { - public: - virtual void WebKitModifiedSomething() {}; -}; -} // namespace webkit_glue - -class DerivedClass : public InterimClass, - public webkit_glue::WebKitObserverImpl { - public: - // Should not warn about destructors. - virtual ~DerivedClass() {} - // Should warn. - virtual void SomeMethod(); - // Should not warn if marked as override. - virtual void SomeOtherMethod() override; - // Should warn for inline implementations. - virtual void SomeInlineMethod() {} - // Should not warn if overriding a method whose origin is WebKit. - virtual void WebKitModifiedSomething(); - // Should warn if overridden method isn't pure. - virtual void SomeNonPureBaseMethod() {} -}; - -#endif // OVERRIDDEN_METHODS_H_ |