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

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: Fix typos 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:89: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:90: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:100: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:124:5: error: [chromium-ipc] IPC::WriteParam() can only be used in IPC:: ParamTraits<> templates.
11 IPC::WriteParam(pickle, p); // ERROR
12 ^
13 ipc.cpp:132:3: error: [chromium-ipc] IPC::WriteParam() can only be used in IPC:: ParamTraits<> templates.
14 IPC::WriteParam(pickle, p); // ERROR
15 ^
16 ipc.cpp:134:5: error: [chromium-ipc] IPC::WriteParam() can only be used in IPC:: ParamTraits<> templates.
17 IPC::WriteParam(pickle, p); // ERROR
18 ^
19 ipc.cpp:161: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:157:3: note: expanded from macro 'IPC_TEST_MESSAGE'
23 IPC_MESSAGE_DECL(TestMessage, id, IPC_TUPLE in)
24 ^
25 ipc.cpp:153:5: note: expanded from macro 'IPC_MESSAGE_DECL'
26 using InTuple = in_tuple; \
27 ^
28 ipc.cpp:161:1: error: [chromium-ipc] IPC tuple references banned type 'long'.
29 ipc.cpp:157:3: note: expanded from macro 'IPC_TEST_MESSAGE'
30 IPC_MESSAGE_DECL(TestMessage, id, IPC_TUPLE in)
31 ^
32 ipc.cpp:153:5: note: expanded from macro 'IPC_MESSAGE_DECL'
33 using InTuple = in_tuple; \
34 ^
35 ipc.cpp:165:1: error: [chromium-ipc] IPC tuple references banned type 'long' via 'long2D'.
36 IPC_TEST_MESSAGE(__COUNTER__, (bool, long2D)) // ERROR
37 ^
38 ipc.cpp:157:3: note: expanded from macro 'IPC_TEST_MESSAGE'
39 IPC_MESSAGE_DECL(TestMessage, id, IPC_TUPLE in)
40 ^
41 ipc.cpp:153:5: note: expanded from macro 'IPC_MESSAGE_DECL'
42 using InTuple = in_tuple; \
43 ^
44 ipc.cpp:164:29: note:
45 typedef std::vector<long1D> long2D;
46 ^
47 ipc.cpp:163:27: note:
48 typedef std::vector<long> long1D;
49 ^
50 ipc.cpp:167: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:157:3: note: expanded from macro 'IPC_TEST_MESSAGE'
54 IPC_MESSAGE_DECL(TestMessage, id, IPC_TUPLE in)
55 ^
56 ipc.cpp:153:5: note: expanded from macro 'IPC_MESSAGE_DECL'
57 using InTuple = in_tuple; \
58 ^
59 ipc.cpp:169:1: error: [chromium-ipc] IPC tuple references banned type 'long' via 'std::vector<std::vector<long &> &>'.
60 IPC_TEST_MESSAGE(__COUNTER__, (std::vector<std::vector<long&>&>&)) // ERROR
61 ^
62 ipc.cpp:157:3: note: expanded from macro 'IPC_TEST_MESSAGE'
63 IPC_MESSAGE_DECL(TestMessage, id, IPC_TUPLE in)
64 ^
65 ipc.cpp:153:5: note: expanded from macro 'IPC_MESSAGE_DECL'
66 using InTuple = in_tuple; \
67 ^
68 ipc.cpp:186:3: error: [chromium-ipc] IPC::WriteParam() is called on blacklisted type 'long'.
69 CALL_WRITEPARAM(long) // ERROR
70 ^
71 ipc.cpp:182:32: note: expanded from macro 'CALL_WRITEPARAM'
72 IPC::WriteParam(nullptr, p); \
73 ^
74 ipc.cpp:187:3: error: [chromium-ipc] IPC::WriteParam() is called on blacklisted type 'unsigned long'.
75 CALL_WRITEPARAM(unsigned long) // ERROR
76 ^
77 ipc.cpp:182:32: note: expanded from macro 'CALL_WRITEPARAM'
78 IPC::WriteParam(nullptr, p); \
79 ^
80 ipc.cpp:188:3: error: [chromium-ipc] IPC::WriteParam() is called on blacklisted type 'intmax_t'.
81 CALL_WRITEPARAM(intmax_t) // ERROR
82 ^
83 ipc.cpp:182:32: note: expanded from macro 'CALL_WRITEPARAM'
84 IPC::WriteParam(nullptr, p); \
85 ^
86 ipc.cpp:189:3: error: [chromium-ipc] IPC::WriteParam() is called on blacklisted type 'uintmax_t'.
87 CALL_WRITEPARAM(uintmax_t) // ERROR
88 ^
89 ipc.cpp:182:32: note: expanded from macro 'CALL_WRITEPARAM'
90 IPC::WriteParam(nullptr, p); \
91 ^
92 ipc.cpp:190:3: error: [chromium-ipc] IPC::WriteParam() is called on blacklisted type 'intptr_t'.
93 CALL_WRITEPARAM(intptr_t) // ERROR
94 ^
95 ipc.cpp:182:32: note: expanded from macro 'CALL_WRITEPARAM'
96 IPC::WriteParam(nullptr, p); \
97 ^
98 ipc.cpp:191:3: error: [chromium-ipc] IPC::WriteParam() is called on blacklisted type 'uintptr_t'.
99 CALL_WRITEPARAM(uintptr_t) // ERROR
100 ^
101 ipc.cpp:182:32: note: expanded from macro 'CALL_WRITEPARAM'
102 IPC::WriteParam(nullptr, p); \
103 ^
104 ipc.cpp:192:3: error: [chromium-ipc] IPC::WriteParam() is called on blacklisted type 'wint_t'.
105 CALL_WRITEPARAM(wint_t) // ERROR
106 ^
107 ipc.cpp:182:32: note: expanded from macro 'CALL_WRITEPARAM'
108 IPC::WriteParam(nullptr, p); \
109 ^
110 ipc.cpp:193:3: error: [chromium-ipc] IPC::WriteParam() is called on blacklisted type 'size_t'.
111 CALL_WRITEPARAM(size_t) // ERROR
112 ^
113 ipc.cpp:182:32: note: expanded from macro 'CALL_WRITEPARAM'
114 IPC::WriteParam(nullptr, p); \
115 ^
116 ipc.cpp:194:3: error: [chromium-ipc] IPC::WriteParam() is called on blacklisted type 'rsize_t'.
117 CALL_WRITEPARAM(rsize_t) // ERROR
118 ^
119 ipc.cpp:182:32: note: expanded from macro 'CALL_WRITEPARAM'
120 IPC::WriteParam(nullptr, p); \
121 ^
122 ipc.cpp:195:3: error: [chromium-ipc] IPC::WriteParam() is called on blacklisted type 'ssize_t'.
123 CALL_WRITEPARAM(ssize_t) // ERROR
124 ^
125 ipc.cpp:182:32: note: expanded from macro 'CALL_WRITEPARAM'
126 IPC::WriteParam(nullptr, p); \
127 ^
128 ipc.cpp:196:3: error: [chromium-ipc] IPC::WriteParam() is called on blacklisted type 'ptrdiff_t'.
129 CALL_WRITEPARAM(ptrdiff_t) // ERROR
130 ^
131 ipc.cpp:182:32: note: expanded from macro 'CALL_WRITEPARAM'
132 IPC::WriteParam(nullptr, p); \
133 ^
134 ipc.cpp:197:3: error: [chromium-ipc] IPC::WriteParam() is called on blacklisted type 'dev_t'.
135 CALL_WRITEPARAM(dev_t) // ERROR
136 ^
137 ipc.cpp:182:32: note: expanded from macro 'CALL_WRITEPARAM'
138 IPC::WriteParam(nullptr, p); \
139 ^
140 ipc.cpp:198:3: error: [chromium-ipc] IPC::WriteParam() is called on blacklisted type 'off_t'.
141 CALL_WRITEPARAM(off_t) // ERROR
142 ^
143 ipc.cpp:182:32: note: expanded from macro 'CALL_WRITEPARAM'
144 IPC::WriteParam(nullptr, p); \
145 ^
146 ipc.cpp:199:3: error: [chromium-ipc] IPC::WriteParam() is called on blacklisted type 'clock_t'.
147 CALL_WRITEPARAM(clock_t) // ERROR
148 ^
149 ipc.cpp:182:32: note: expanded from macro 'CALL_WRITEPARAM'
150 IPC::WriteParam(nullptr, p); \
151 ^
152 ipc.cpp:200:3: error: [chromium-ipc] IPC::WriteParam() is called on blacklisted type 'time_t'.
153 CALL_WRITEPARAM(time_t) // ERROR
154 ^
155 ipc.cpp:182:32: note: expanded from macro 'CALL_WRITEPARAM'
156 IPC::WriteParam(nullptr, p); \
157 ^
158 ipc.cpp:201:3: error: [chromium-ipc] IPC::WriteParam() is called on blacklisted type 'suseconds_t'.
159 CALL_WRITEPARAM(suseconds_t) // ERROR
160 ^
161 ipc.cpp:182:32: note: expanded from macro 'CALL_WRITEPARAM'
162 IPC::WriteParam(nullptr, p); \
163 ^
164 ipc.cpp:205:3: error: [chromium-ipc] IPC::WriteParam() is called on blacklisted type 'size_t' via 'my_size'.
165 CALL_WRITEPARAM(my_size) // ERROR
166 ^
167 ipc.cpp:182:32: note: expanded from macro 'CALL_WRITEPARAM'
168 IPC::WriteParam(nullptr, p); \
169 ^
170 ipc.cpp:204:18: note:
171 typedef size_t my_size;
172 ^
173 ipc.cpp:210:30: error: [chromium-ipc] IPC::WriteParam() is called on blacklisted type 'unsigned long'.
174 IPC::WriteParam(nullptr, p + 1); // ERROR
175 ^
176 ipc.cpp:219:30: error: [chromium-ipc] IPC::WriteParam() is called on blacklisted type 'size_t' via 'my_size'.
177 IPC::WriteParam(nullptr, p); // ERROR
178 ^
179 ipc.cpp:216:32: note:
180 typedef const my_size_base my_size;
181 ^
182 ipc.cpp:215:20: note:
183 typedef size_t my_size_base;
184 ^
185 ipc.cpp:223:3: error: [chromium-ipc] IPC::WriteParam() is called on blacklisted type 'long' via 'std::vector<long>'.
186 CALL_WRITEPARAM(std::vector<long>) // ERROR
187 ^
188 ipc.cpp:182:32: note: expanded from macro 'CALL_WRITEPARAM'
189 IPC::WriteParam(nullptr, p); \
190 ^
191 ipc.cpp:224:3: error: [chromium-ipc] IPC::WriteParam() is called on blacklisted type 'size_t' via 'std::vector<size_t>'.
192 CALL_WRITEPARAM(std::vector<size_t>) // ERROR
193 ^
194 ipc.cpp:182:32: note: expanded from macro 'CALL_WRITEPARAM'
195 IPC::WriteParam(nullptr, p); \
196 ^
197 ipc.cpp:294:28: error: [chromium-ipc] IPC::WriteParam() is called on blacklisted type 'long'.
198 IPC::WriteParam(nullptr, p.get<long>()); // ERROR
199 ^
200 ipc.cpp:295:28: error: [chromium-ipc] IPC::WriteParam() is called on blacklisted type 'long'.
201 IPC::WriteParam(nullptr, p.get_long()); // ERROR
202 ^
203 ipc.cpp:296:28: error: [chromium-ipc] IPC::WriteParam() is called on blacklisted type 'long'.
204 IPC::WriteParam(nullptr, p.long_data); // ERROR
205 ^
206 ipc.cpp:298:28: error: [chromium-ipc] IPC::WriteParam() is called on blacklisted type 'unsigned long'.
207 IPC::WriteParam(nullptr, p.get<size_t>()); // ERROR
208 ^
209 ipc.cpp:299:28: error: [chromium-ipc] IPC::WriteParam() is called on blacklisted type 'size_t'.
210 IPC::WriteParam(nullptr, p.get_size()); // ERROR
211 ^
212 ipc.cpp:300:28: error: [chromium-ipc] IPC::WriteParam() is called on blacklisted type 'size_t'.
213 IPC::WriteParam(nullptr, p.size_data); // ERROR
214 ^
215 ipc.cpp:304:28: error: [chromium-ipc] IPC::WriteParam() is called on blacklisted type 'unsigned long'.
216 IPC::WriteParam(nullptr, p.get<uint64_t>()); // ERROR
217 ^
218 ipc.cpp:309:28: error: [chromium-ipc] IPC::WriteParam() is called on blacklisted type 'unsigned long' via 'struct std::vector<unsigned long, struct std::allocat or<unsigned long> >'.
219 IPC::WriteParam(nullptr, p.get<std::vector<uint64_t>>()); // ERROR
220 ^
221 ipc.cpp:316:28: error: [chromium-ipc] IPC::WriteParam() is called on blacklisted type 'size_t' via 'std::vector<size_t>'.
222 IPC::WriteParam(nullptr, p.get_sizes()); // ERROR
223 ^
224 ipc.cpp:317:28: error: [chromium-ipc] IPC::WriteParam() is called on blacklisted type 'size_t' via 'std::vector<size_t>'.
225 IPC::WriteParam(nullptr, p.sizes_data); // ERROR
226 ^
227 42 errors generated.
OLDNEW
« tools/clang/plugins/tests/ipc.flags ('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