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

Side by Side Diff: tools/clang/plugins/tests/ipc.txt

Issue 1665363002: Clang plugin to check that unstable types are not used in IPC. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Blacklist types instead Created 4 years, 10 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 ipc.cpp:91:5: error: [chromium-ipc] IPC::WriteParam() must explicitly specify te mplate argument (use WriteParam<T>(...)).
2 IPC::WriteParam(pickle, container.value); // ERROR
3 ^
4 ipc.cpp:92:5: error: [chromium-ipc] IPC::WriteParam() must explicitly specify te mplate argument (use WriteParam<T>(...)).
5 WriteParam(pickle, container.value); // ERROR
6 ^
7 ipc.cpp:102:24: error: [chromium-ipc] IPC::WriteParam() is called on blacklisted type 'long'.
8 WriteParam(pickle, static_cast<long>(container.value)); // ERROR
9 ^
10 ipc.cpp:125:5: error: [chromium-ipc] IPC::WriteParam() can only be used in IPC:: ParamTraits<> templates.
11 IPC::WriteParam(pickle, p); // ERROR
12 ^
13 ipc.cpp:133:3: error: [chromium-ipc] IPC::WriteParam() can only be used in IPC:: ParamTraits<> templates.
14 IPC::WriteParam(pickle, p); // ERROR
15 ^
16 ipc.cpp:135:5: error: [chromium-ipc] IPC::WriteParam() can only be used in IPC:: ParamTraits<> templates.
17 IPC::WriteParam(pickle, p); // ERROR
18 ^
19 ipc.cpp:162:1: error: [chromium-ipc] IPC tuple references banned type 'size_t'.
20 IPC_TEST_MESSAGE(__COUNTER__, (bool, size_t, Empty, long)) // 2 ERRORs
21 ^
22 ipc.cpp:158:3: note: expanded from macro 'IPC_TEST_MESSAGE'
23 IPC_MESSAGE_DECL(TestMessage, id, IPC_TUPLE in)
24 ^
25 ipc.cpp:154:5: note: expanded from macro 'IPC_MESSAGE_DECL'
26 using InTuple = in_tuple; \
27 ^
28 ipc.cpp:162:1: error: [chromium-ipc] IPC tuple references banned type 'long'.
29 ipc.cpp:158:3: note: expanded from macro 'IPC_TEST_MESSAGE'
30 IPC_MESSAGE_DECL(TestMessage, id, IPC_TUPLE in)
31 ^
32 ipc.cpp:154:5: note: expanded from macro 'IPC_MESSAGE_DECL'
33 using InTuple = in_tuple; \
34 ^
35 ipc.cpp:166:1: error: [chromium-ipc] IPC tuple references banned type 'long' via 'long2D'.
36 IPC_TEST_MESSAGE(__COUNTER__, (bool, long2D)) // ERROR
37 ^
38 ipc.cpp:158:3: note: expanded from macro 'IPC_TEST_MESSAGE'
39 IPC_MESSAGE_DECL(TestMessage, id, IPC_TUPLE in)
40 ^
41 ipc.cpp:154:5: note: expanded from macro 'IPC_MESSAGE_DECL'
42 using InTuple = in_tuple; \
43 ^
44 ipc.cpp:165:29: note:
45 typedef std::vector<long1D> long2D;
46 ^
47 ipc.cpp:164:27: note:
48 typedef std::vector<long> long1D;
49 ^
50 ipc.cpp:168:1: error: [chromium-ipc] IPC tuple references banned type 'size_t' v ia 'std::pair<size_t, _Bool>'.
51 IPC_TEST_MESSAGE(__COUNTER__, (char, short, std::pair<size_t, bool>)) // ERROR
52 ^
53 ipc.cpp:158:3: note: expanded from macro 'IPC_TEST_MESSAGE'
54 IPC_MESSAGE_DECL(TestMessage, id, IPC_TUPLE in)
55 ^
56 ipc.cpp:154:5: note: expanded from macro 'IPC_MESSAGE_DECL'
57 using InTuple = in_tuple; \
58 ^
59 ipc.cpp:184:3: error: [chromium-ipc] IPC::WriteParam() is called on blacklisted type 'long'.
60 CALL_WRITEPARAM(long) // ERROR
61 ^
62 ipc.cpp:180:32: note: expanded from macro 'CALL_WRITEPARAM'
63 IPC::WriteParam(nullptr, p); \
64 ^
65 ipc.cpp:185:3: error: [chromium-ipc] IPC::WriteParam() is called on blacklisted type 'unsigned long'.
66 CALL_WRITEPARAM(unsigned long) // ERROR
67 ^
68 ipc.cpp:180:32: note: expanded from macro 'CALL_WRITEPARAM'
69 IPC::WriteParam(nullptr, p); \
70 ^
71 ipc.cpp:186:3: error: [chromium-ipc] IPC::WriteParam() is called on blacklisted type 'intmax_t'.
72 CALL_WRITEPARAM(intmax_t) // ERROR
73 ^
74 ipc.cpp:180:32: note: expanded from macro 'CALL_WRITEPARAM'
75 IPC::WriteParam(nullptr, p); \
76 ^
77 ipc.cpp:187:3: error: [chromium-ipc] IPC::WriteParam() is called on blacklisted type 'uintmax_t'.
78 CALL_WRITEPARAM(uintmax_t) // ERROR
79 ^
80 ipc.cpp:180:32: note: expanded from macro 'CALL_WRITEPARAM'
81 IPC::WriteParam(nullptr, p); \
82 ^
83 ipc.cpp:188:3: error: [chromium-ipc] IPC::WriteParam() is called on blacklisted type 'intptr_t'.
84 CALL_WRITEPARAM(intptr_t) // ERROR
85 ^
86 ipc.cpp:180:32: note: expanded from macro 'CALL_WRITEPARAM'
87 IPC::WriteParam(nullptr, p); \
88 ^
89 ipc.cpp:189:3: error: [chromium-ipc] IPC::WriteParam() is called on blacklisted type 'uintptr_t'.
90 CALL_WRITEPARAM(uintptr_t) // ERROR
91 ^
92 ipc.cpp:180:32: note: expanded from macro 'CALL_WRITEPARAM'
93 IPC::WriteParam(nullptr, p); \
94 ^
95 ipc.cpp:190:3: error: [chromium-ipc] IPC::WriteParam() is called on blacklisted type 'wint_t'.
96 CALL_WRITEPARAM(wint_t) // ERROR
97 ^
98 ipc.cpp:180:32: note: expanded from macro 'CALL_WRITEPARAM'
99 IPC::WriteParam(nullptr, p); \
100 ^
101 ipc.cpp:191:3: error: [chromium-ipc] IPC::WriteParam() is called on blacklisted type 'size_t'.
102 CALL_WRITEPARAM(size_t) // ERROR
103 ^
104 ipc.cpp:180:32: note: expanded from macro 'CALL_WRITEPARAM'
105 IPC::WriteParam(nullptr, p); \
106 ^
107 ipc.cpp:192:3: error: [chromium-ipc] IPC::WriteParam() is called on blacklisted type 'rsize_t'.
108 CALL_WRITEPARAM(rsize_t) // ERROR
109 ^
110 ipc.cpp:180:32: note: expanded from macro 'CALL_WRITEPARAM'
111 IPC::WriteParam(nullptr, p); \
112 ^
113 ipc.cpp:193:3: error: [chromium-ipc] IPC::WriteParam() is called on blacklisted type 'ssize_t'.
114 CALL_WRITEPARAM(ssize_t) // ERROR
115 ^
116 ipc.cpp:180:32: note: expanded from macro 'CALL_WRITEPARAM'
117 IPC::WriteParam(nullptr, p); \
118 ^
119 ipc.cpp:194:3: error: [chromium-ipc] IPC::WriteParam() is called on blacklisted type 'ptrdiff_t'.
120 CALL_WRITEPARAM(ptrdiff_t) // ERROR
121 ^
122 ipc.cpp:180:32: note: expanded from macro 'CALL_WRITEPARAM'
123 IPC::WriteParam(nullptr, p); \
124 ^
125 ipc.cpp:195:3: error: [chromium-ipc] IPC::WriteParam() is called on blacklisted type 'dev_t'.
126 CALL_WRITEPARAM(dev_t) // ERROR
127 ^
128 ipc.cpp:180:32: note: expanded from macro 'CALL_WRITEPARAM'
129 IPC::WriteParam(nullptr, p); \
130 ^
131 ipc.cpp:196:3: error: [chromium-ipc] IPC::WriteParam() is called on blacklisted type 'off_t'.
132 CALL_WRITEPARAM(off_t) // ERROR
133 ^
134 ipc.cpp:180:32: note: expanded from macro 'CALL_WRITEPARAM'
135 IPC::WriteParam(nullptr, p); \
136 ^
137 ipc.cpp:197:3: error: [chromium-ipc] IPC::WriteParam() is called on blacklisted type 'clock_t'.
138 CALL_WRITEPARAM(clock_t) // ERROR
139 ^
140 ipc.cpp:180:32: note: expanded from macro 'CALL_WRITEPARAM'
141 IPC::WriteParam(nullptr, p); \
142 ^
143 ipc.cpp:198:3: error: [chromium-ipc] IPC::WriteParam() is called on blacklisted type 'time_t'.
144 CALL_WRITEPARAM(time_t) // ERROR
145 ^
146 ipc.cpp:180:32: note: expanded from macro 'CALL_WRITEPARAM'
147 IPC::WriteParam(nullptr, p); \
148 ^
149 ipc.cpp:199:3: error: [chromium-ipc] IPC::WriteParam() is called on blacklisted type 'suseconds_t'.
150 CALL_WRITEPARAM(suseconds_t) // ERROR
151 ^
152 ipc.cpp:180:32: note: expanded from macro 'CALL_WRITEPARAM'
153 IPC::WriteParam(nullptr, p); \
154 ^
155 ipc.cpp:203:3: error: [chromium-ipc] IPC::WriteParam() is called on blacklisted type 'size_t' via 'my_size'.
156 CALL_WRITEPARAM(my_size) // ERROR
157 ^
158 ipc.cpp:180:32: note: expanded from macro 'CALL_WRITEPARAM'
159 IPC::WriteParam(nullptr, p); \
160 ^
161 ipc.cpp:202:18: note:
162 typedef size_t my_size;
163 ^
164 ipc.cpp:208:30: error: [chromium-ipc] IPC::WriteParam() is called on blacklisted type 'unsigned long'.
165 IPC::WriteParam(nullptr, p + 1); // ERROR
166 ^
167 ipc.cpp:217:30: error: [chromium-ipc] IPC::WriteParam() is called on blacklisted type 'size_t' via 'my_size'.
168 IPC::WriteParam(nullptr, p); // ERROR
169 ^
170 ipc.cpp:214:32: note:
171 typedef const my_size_base my_size;
172 ^
173 ipc.cpp:213:20: note:
174 typedef size_t my_size_base;
175 ^
176 ipc.cpp:278:28: error: [chromium-ipc] IPC::WriteParam() is called on blacklisted type 'long'.
177 IPC::WriteParam(nullptr, p.get<long>()); // ERROR
178 ^
179 ipc.cpp:279:28: error: [chromium-ipc] IPC::WriteParam() is called on blacklisted type 'long'.
180 IPC::WriteParam(nullptr, p.get_long()); // ERROR
181 ^
182 ipc.cpp:280:28: error: [chromium-ipc] IPC::WriteParam() is called on blacklisted type 'long'.
183 IPC::WriteParam(nullptr, p.long_data); // ERROR
184 ^
185 ipc.cpp:282:28: error: [chromium-ipc] IPC::WriteParam() is called on blacklisted type 'unsigned long'.
186 IPC::WriteParam(nullptr, p.get<size_t>()); // ERROR
187 ^
188 ipc.cpp:283:28: error: [chromium-ipc] IPC::WriteParam() is called on blacklisted type 'size_t'.
189 IPC::WriteParam(nullptr, p.get_size()); // ERROR
190 ^
191 ipc.cpp:284:28: error: [chromium-ipc] IPC::WriteParam() is called on blacklisted type 'size_t'.
192 IPC::WriteParam(nullptr, p.size_data); // ERROR
193 ^
194 ipc.cpp:288:28: error: [chromium-ipc] IPC::WriteParam() is called on blacklisted type 'unsigned long'.
195 IPC::WriteParam(nullptr, p.get<uint64_t>()); // ERROR
196 ^
197 36 errors generated.
OLDNEW
« ppapi/proxy/ppapi_messages.h ('K') | « tools/clang/plugins/tests/ipc.flags ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698