Chromium Code Reviews| 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..b81eb60e0ced7b5a4f62f16dcb49fafa70149db2 |
| --- /dev/null |
| +++ b/tools/clang/plugins/tests/virtual_base_method_also_final.txt |
| @@ -0,0 +1,7 @@ |
| +virtual_base_method_also_final.cpp:3:3: warning: [chromium-style] virtual is redundant; 'final' implies virtual. |
| + virtual void F() final {} |
| + ^~~~~~~~ |
| +virtual_base_method_also_final.cpp:3:3: warning: [chromium-style] a virtual method on a base class should not also be final; method should be devirtualized |
| + virtual void F() final {} |
| + ^~~~~~~~ ~~~~~~ |
| +2 warnings generated. |