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

Side by Side Diff: tools/clang/plugins/tests/overridden_methods.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: Add copyright blurb 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
« no previous file with comments | « tools/clang/plugins/tests/blacklisted_dirs.txt ('k') | tools/clang/plugins/tests/test.sh » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 In file included from overridden_methods.cpp:5: 1 In file included from overridden_methods.cpp:5:
2 ./overridden_methods.h:48:28: warning: [chromium-style] Overriding method must b e marked with OVERRIDE. 2 ./overridden_methods.h:48:28: warning: [chromium-style] Overriding method must b e marked with 'override' or 'final'.
3 virtual void SomeMethod(); 3 virtual void SomeMethod();
4 ^ 4 ^
5 OVERRIDE 5 override
6 ./overridden_methods.h:52:34: warning: [chromium-style] Overriding method must b e marked with OVERRIDE. 6 ./overridden_methods.h:52:34: warning: [chromium-style] Overriding method must b e marked with 'override' or 'final'.
7 virtual void SomeInlineMethod() {} 7 virtual void SomeInlineMethod() {}
8 ^ 8 ^
9 OVERRIDE 9 override
10 ./overridden_methods.h:56:39: warning: [chromium-style] Overriding method must b e marked with OVERRIDE. 10 ./overridden_methods.h:56:39: warning: [chromium-style] Overriding method must b e marked with 'override' or 'final'.
11 virtual void SomeConstMethod() const {} 11 virtual void SomeConstMethod() const {}
12 ^ 12 ^
13 OVERRIDE 13 override
14 ./overridden_methods.h:58:53: warning: [chromium-style] Overriding method must b e marked with OVERRIDE. 14 ./overridden_methods.h:58:53: warning: [chromium-style] Overriding method must b e marked with 'override' or 'final'.
15 virtual void SomeMethodWithExceptionSpec() throw() {} 15 virtual void SomeMethodWithExceptionSpec() throw() {}
16 ^ 16 ^
17 OVERRIDE 17 override
18 ./overridden_methods.h:61:67: warning: [chromium-style] Overriding method must b e marked with OVERRIDE. 18 ./overridden_methods.h:61:67: warning: [chromium-style] Overriding method must b e marked with 'override' or 'final'.
19 virtual void SomeConstMethodWithExceptionSpec() const throw(int) {} 19 virtual void SomeConstMethodWithExceptionSpec() const throw(int) {}
20 ^ 20 ^
21 OVERRIDE 21 override
22 ./overridden_methods.h:63:39: warning: [chromium-style] Overriding method must b e marked with OVERRIDE. 22 ./overridden_methods.h:63:39: warning: [chromium-style] Overriding method must b e marked with 'override' or 'final'.
23 virtual void SomeNonPureBaseMethod() {} 23 virtual void SomeNonPureBaseMethod() {}
24 ^ 24 ^
25 OVERRIDE 25 override
26 ./overridden_methods.h:65:39: warning: [chromium-style] Overriding method must b e marked with OVERRIDE. 26 ./overridden_methods.h:65:39: warning: [chromium-style] Overriding method must b e marked with 'override' or 'final'.
27 virtual void SomeMethodWithComment(); // This is a comment. 27 virtual void SomeMethodWithComment(); // This is a comment.
28 ^ 28 ^
29 OVERRIDE 29 override
30 ./overridden_methods.h:67:46: warning: [chromium-style] Overriding method must b e marked with OVERRIDE. 30 ./overridden_methods.h:67:46: warning: [chromium-style] Overriding method must b e marked with 'override' or 'final'.
31 virtual void SomeMethodWithCommentAndBody() {} // This is a comment. 31 virtual void SomeMethodWithCommentAndBody() {} // This is a comment.
32 ^ 32 ^
33 OVERRIDE 33 override
34 overridden_methods.cpp:24:28: warning: [chromium-style] Overriding method must b e marked with OVERRIDE. 34 overridden_methods.cpp:24:28: warning: [chromium-style] Overriding method must b e marked with 'override' or 'final'.
35 virtual void SomeMethod(); 35 virtual void SomeMethod();
36 ^ 36 ^
37 OVERRIDE 37 override
38 overridden_methods.cpp:28:34: warning: [chromium-style] Overriding method must b e marked with OVERRIDE. 38 overridden_methods.cpp:28:34: warning: [chromium-style] Overriding method must b e marked with 'override' or 'final'.
39 virtual void SomeInlineMethod() {} 39 virtual void SomeInlineMethod() {}
40 ^ 40 ^
41 OVERRIDE 41 override
42 overridden_methods.cpp:32:39: warning: [chromium-style] Overriding method must b e marked with OVERRIDE. 42 overridden_methods.cpp:32:39: warning: [chromium-style] Overriding method must b e marked with 'override' or 'final'.
43 virtual void SomeConstMethod() const {} 43 virtual void SomeConstMethod() const {}
44 ^ 44 ^
45 OVERRIDE 45 override
46 overridden_methods.cpp:34:53: warning: [chromium-style] Overriding method must b e marked with OVERRIDE. 46 overridden_methods.cpp:34:53: warning: [chromium-style] Overriding method must b e marked with 'override' or 'final'.
47 virtual void SomeMethodWithExceptionSpec() throw() {} 47 virtual void SomeMethodWithExceptionSpec() throw() {}
48 ^ 48 ^
49 OVERRIDE 49 override
50 overridden_methods.cpp:37:67: warning: [chromium-style] Overriding method must b e marked with OVERRIDE. 50 overridden_methods.cpp:37:67: warning: [chromium-style] Overriding method must b e marked with 'override' or 'final'.
51 virtual void SomeConstMethodWithExceptionSpec() const throw(int) {} 51 virtual void SomeConstMethodWithExceptionSpec() const throw(int) {}
52 ^ 52 ^
53 OVERRIDE 53 override
54 overridden_methods.cpp:39:39: warning: [chromium-style] Overriding method must b e marked with OVERRIDE. 54 overridden_methods.cpp:39:39: warning: [chromium-style] Overriding method must b e marked with 'override' or 'final'.
55 virtual void SomeNonPureBaseMethod() {} 55 virtual void SomeNonPureBaseMethod() {}
56 ^ 56 ^
57 OVERRIDE 57 override
58 overridden_methods.cpp:41:39: warning: [chromium-style] Overriding method must b e marked with OVERRIDE. 58 overridden_methods.cpp:41:39: warning: [chromium-style] Overriding method must b e marked with 'override' or 'final'.
59 virtual void SomeMethodWithComment(); // This is a comment. 59 virtual void SomeMethodWithComment(); // This is a comment.
60 ^ 60 ^
61 OVERRIDE 61 override
62 overridden_methods.cpp:43:46: warning: [chromium-style] Overriding method must b e marked with OVERRIDE. 62 overridden_methods.cpp:43:46: warning: [chromium-style] Overriding method must b e marked with 'override' or 'final'.
63 virtual void SomeMethodWithCommentAndBody() {} // This is a comment. 63 virtual void SomeMethodWithCommentAndBody() {} // This is a comment.
64 ^ 64 ^
65 OVERRIDE 65 override
66 16 warnings generated. 66 16 warnings generated.
OLDNEW
« no previous file with comments | « tools/clang/plugins/tests/blacklisted_dirs.txt ('k') | tools/clang/plugins/tests/test.sh » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698