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

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

Issue 597863002: Update plugin to handle new style rules for virtual annotations. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: s/annotation/specifier/g Created 6 years, 3 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
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.

Powered by Google App Engine
This is Rietveld 408576698