Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(257)

Unified Diff: tools/clang/plugins/tests/overridden_methods.txt

Issue 1385193002: Bisect clang Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: 246985 Created 5 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « tools/clang/plugins/tests/overridden_methods.flags ('k') | tools/clang/plugins/tests/system/windows.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/clang/plugins/tests/overridden_methods.txt
diff --git a/tools/clang/plugins/tests/overridden_methods.txt b/tools/clang/plugins/tests/overridden_methods.txt
new file mode 100644
index 0000000000000000000000000000000000000000..037d4348bc00fb054cb18da7c4d55d6fc87f5ce1
--- /dev/null
+++ b/tools/clang/plugins/tests/overridden_methods.txt
@@ -0,0 +1,94 @@
+In file included from overridden_methods.cpp:5:
+./overridden_methods.h:25:29: warning: [chromium-style] Overriding method must be marked with 'override' or 'final'.
+ virtual void SomeMethod() = 0;
+ ^
+ override
+./overridden_methods.h:38:42: warning: [chromium-style] Overriding method must be marked with 'override' or 'final'.
+ virtual void WebKitModifiedSomething() {};
+ ^
+ override
+./overridden_methods.h:46:27: warning: [chromium-style] Overriding method must be marked with 'override' or 'final'.
+ virtual ~DerivedClass() {}
+ ^
+ override
+./overridden_methods.h:48:28: warning: [chromium-style] Overriding method must be marked with 'override' or 'final'.
+ virtual void SomeMethod();
+ ^
+ override
+./overridden_methods.h:52:35: warning: [chromium-style] Overriding method must be marked with 'override' or 'final'.
+ virtual void SomeInlineMethod() {}
+ ^
+ override
+./overridden_methods.h:54:41: warning: [chromium-style] Overriding method must be marked with 'override' or 'final'.
+ virtual void WebKitModifiedSomething();
+ ^
+ override
+./overridden_methods.h:56:40: warning: [chromium-style] Overriding method must be marked with 'override' or 'final'.
+ virtual void SomeConstMethod() const {}
+ ^
+ override
+./overridden_methods.h:58:54: warning: [chromium-style] Overriding method must be marked with 'override' or 'final'.
+ virtual void SomeMethodWithExceptionSpec() throw() {}
+ ^
+ override
+./overridden_methods.h:61:68: warning: [chromium-style] Overriding method must be marked with 'override' or 'final'.
+ virtual void SomeConstMethodWithExceptionSpec() const throw(int) {}
+ ^
+ override
+./overridden_methods.h:63:40: warning: [chromium-style] Overriding method must be marked with 'override' or 'final'.
+ virtual void SomeNonPureBaseMethod() {}
+ ^
+ override
+./overridden_methods.h:65:39: warning: [chromium-style] Overriding method must be marked with 'override' or 'final'.
+ virtual void SomeMethodWithComment(); // This is a comment.
+ ^
+ override
+./overridden_methods.h:67:47: warning: [chromium-style] Overriding method must be marked with 'override' or 'final'.
+ virtual void SomeMethodWithCommentAndBody() {} // This is a comment.
+ ^
+ override
+overridden_methods.cpp:15:29: warning: [chromium-style] Overriding method must be marked with 'override' or 'final'.
+ virtual void SomeMethod() = 0;
+ ^
+ override
+overridden_methods.cpp:22:41: warning: [chromium-style] Overriding method must be marked with 'override' or 'final'.
+ virtual ~ImplementationDerivedClass() {}
+ ^
+ override
+overridden_methods.cpp:24:28: warning: [chromium-style] Overriding method must be marked with 'override' or 'final'.
+ virtual void SomeMethod();
+ ^
+ override
+overridden_methods.cpp:28:35: warning: [chromium-style] Overriding method must be marked with 'override' or 'final'.
+ virtual void SomeInlineMethod() {}
+ ^
+ override
+overridden_methods.cpp:30:41: warning: [chromium-style] Overriding method must be marked with 'override' or 'final'.
+ virtual void WebKitModifiedSomething();
+ ^
+ override
+overridden_methods.cpp:32:40: warning: [chromium-style] Overriding method must be marked with 'override' or 'final'.
+ virtual void SomeConstMethod() const {}
+ ^
+ override
+overridden_methods.cpp:34:54: warning: [chromium-style] Overriding method must be marked with 'override' or 'final'.
+ virtual void SomeMethodWithExceptionSpec() throw() {}
+ ^
+ override
+overridden_methods.cpp:37:68: warning: [chromium-style] Overriding method must be marked with 'override' or 'final'.
+ virtual void SomeConstMethodWithExceptionSpec() const throw(int) {}
+ ^
+ override
+overridden_methods.cpp:39:40: warning: [chromium-style] Overriding method must be marked with 'override' or 'final'.
+ virtual void SomeNonPureBaseMethod() {}
+ ^
+ override
+overridden_methods.cpp:41:39: warning: [chromium-style] Overriding method must be marked with 'override' or 'final'.
+ virtual void SomeMethodWithComment(); // This is a comment.
+ ^
+ override
+overridden_methods.cpp:43:47: warning: [chromium-style] Overriding method must be marked with 'override' or 'final'.
+ virtual void SomeMethodWithCommentAndBody() {} // This is a comment.
+ ^
+ override
+23 warnings generated.
« no previous file with comments | « tools/clang/plugins/tests/overridden_methods.flags ('k') | tools/clang/plugins/tests/system/windows.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698