Index: tools/clang/plugins/tests/virtual_base_method_also_final.txt |
diff --git a/tools/clang/plugins/tests/virtual_base_method_also_final.txt b/tools/clang/plugins/tests/virtual_base_method_also_final.txt |
new file mode 100644 |
index 0000000000000000000000000000000000000000..f84f80869d0f8ccd28aee54085a89eb9020c3080 |
--- /dev/null |
+++ b/tools/clang/plugins/tests/virtual_base_method_also_final.txt |
@@ -0,0 +1,19 @@ |
+virtual_base_method_also_final.cpp:5:3: warning: [chromium-style] 'virtual' is redundant; 'final' implies 'virtual'. |
+ VIRTUAL void F() final {} |
+ ^~~~~~~~ |
+virtual_base_method_also_final.cpp:1:17: note: expanded from macro 'VIRTUAL' |
+#define VIRTUAL virtual |
+ ^ |
+virtual_base_method_also_final.cpp:5:3: warning: [chromium-style] The virtual method does not override anything and is final; consider making it non-virtual. |
+ VIRTUAL void F() final {} |
+ ^~~~~~~~ ~~~~~~ |
+virtual_base_method_also_final.cpp:1:17: note: expanded from macro 'VIRTUAL' |
+#define VIRTUAL virtual |
+ ^ |
+virtual_base_method_also_final.cpp:8:3: warning: [chromium-style] 'virtual' is redundant; 'final' implies 'virtual'. |
+ void VIRTUAL G() final {} |
+ ^ |
+virtual_base_method_also_final.cpp:8:3: warning: [chromium-style] The virtual method does not override anything and is final; consider making it non-virtual. |
+ void VIRTUAL G() final {} |
+ ^ ~~~~~~ |
+4 warnings generated. |