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

Side by Side 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: And one more thing... Created 6 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 unified diff | Download patch
OLDNEW
(Empty)
1 virtual_base_method_also_final.cpp:5:3: warning: [chromium-style] 'virtual' is r edundant; 'final' implies 'virtual'.
2 VIRTUAL void F() final {}
3 ^~~~~~~~
4 virtual_base_method_also_final.cpp:1:17: note: expanded from macro 'VIRTUAL'
5 #define VIRTUAL virtual
6 ^
7 virtual_base_method_also_final.cpp:5:3: warning: [chromium-style] The virtual me thod does not override anything and is final; consider making it non-virtual.
8 VIRTUAL void F() final {}
9 ^~~~~~~~ ~~~~~~
10 virtual_base_method_also_final.cpp:1:17: note: expanded from macro 'VIRTUAL'
11 #define VIRTUAL virtual
12 ^
13 virtual_base_method_also_final.cpp:8:3: warning: [chromium-style] 'virtual' is r edundant; 'final' implies 'virtual'.
14 void VIRTUAL G() final {}
15 ^
16 virtual_base_method_also_final.cpp:8:3: warning: [chromium-style] The virtual me thod does not override anything and is final; consider making it non-virtual.
17 void VIRTUAL G() final {}
18 ^ ~~~~~~
19 4 warnings generated.
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698