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

Unified Diff: tools/clang/plugins/tests/virtual_dtor_only_virtual.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: . 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_dtor_only_virtual.txt
diff --git a/tools/clang/plugins/tests/virtual_dtor_only_virtual.txt b/tools/clang/plugins/tests/virtual_dtor_only_virtual.txt
new file mode 100644
index 0000000000000000000000000000000000000000..05872583f2f17a9306417eb92c8c6f4fbbd167b2
--- /dev/null
+++ b/tools/clang/plugins/tests/virtual_dtor_only_virtual.txt
@@ -0,0 +1,13 @@
+virtual_dtor_only_virtual.cpp:12:22: warning: [chromium-style] virtual destructors should not be annotated with 'override'
+ virtual ~Derived() OVERRIDE FINAL {}
+ ^~~~~~~~~
+virtual_dtor_only_virtual.cpp:1:18: note: expanded from macro 'OVERRIDE'
+#define OVERRIDE override
+ ^
+virtual_dtor_only_virtual.cpp:12:31: warning: [chromium-style] virtual destructors should not be annotated with 'final'
+ virtual ~Derived() OVERRIDE FINAL {}
+ ^~~~~~
+virtual_dtor_only_virtual.cpp:2:15: note: expanded from macro 'FINAL'
+#define FINAL final
+ ^
+2 warnings generated.

Powered by Google App Engine
This is Rietveld 408576698