Index: tools/clang/plugins/tests/ipc.txt |
diff --git a/tools/clang/plugins/tests/ipc.txt b/tools/clang/plugins/tests/ipc.txt |
new file mode 100644 |
index 0000000000000000000000000000000000000000..01d8932584800ac2c7dddbd467b7cf4be2aa4e88 |
--- /dev/null |
+++ b/tools/clang/plugins/tests/ipc.txt |
@@ -0,0 +1,227 @@ |
+ipc.cpp:89:5: error: [chromium-ipc] IPC::WriteParam() must explicitly specify template argument (use WriteParam<T>(...)). |
+ IPC::WriteParam(pickle, container.value); // ERROR |
+ ^ |
+ipc.cpp:90:5: error: [chromium-ipc] IPC::WriteParam() must explicitly specify template argument (use WriteParam<T>(...)). |
+ WriteParam(pickle, container.value); // ERROR |
+ ^ |
+ipc.cpp:100:24: error: [chromium-ipc] IPC::WriteParam() is called on blacklisted type 'long'. |
+ WriteParam(pickle, static_cast<long>(container.value)); // ERROR |
+ ^ |
+ipc.cpp:124:5: error: [chromium-ipc] IPC::WriteParam() can only be used in IPC::ParamTraits<> templates. |
+ IPC::WriteParam(pickle, p); // ERROR |
+ ^ |
+ipc.cpp:132:3: error: [chromium-ipc] IPC::WriteParam() can only be used in IPC::ParamTraits<> templates. |
+ IPC::WriteParam(pickle, p); // ERROR |
+ ^ |
+ipc.cpp:134:5: error: [chromium-ipc] IPC::WriteParam() can only be used in IPC::ParamTraits<> templates. |
+ IPC::WriteParam(pickle, p); // ERROR |
+ ^ |
+ipc.cpp:161:1: error: [chromium-ipc] IPC tuple references banned type 'size_t'. |
+IPC_TEST_MESSAGE(__COUNTER__, (bool, size_t, Empty, long)) // 2 ERRORs |
+^ |
+ipc.cpp:157:3: note: expanded from macro 'IPC_TEST_MESSAGE' |
+ IPC_MESSAGE_DECL(TestMessage, id, IPC_TUPLE in) |
+ ^ |
+ipc.cpp:153:5: note: expanded from macro 'IPC_MESSAGE_DECL' |
+ using InTuple = in_tuple; \ |
+ ^ |
+ipc.cpp:161:1: error: [chromium-ipc] IPC tuple references banned type 'long'. |
+ipc.cpp:157:3: note: expanded from macro 'IPC_TEST_MESSAGE' |
+ IPC_MESSAGE_DECL(TestMessage, id, IPC_TUPLE in) |
+ ^ |
+ipc.cpp:153:5: note: expanded from macro 'IPC_MESSAGE_DECL' |
+ using InTuple = in_tuple; \ |
+ ^ |
+ipc.cpp:165:1: error: [chromium-ipc] IPC tuple references banned type 'long' via 'long2D'. |
+IPC_TEST_MESSAGE(__COUNTER__, (bool, long2D)) // ERROR |
+^ |
+ipc.cpp:157:3: note: expanded from macro 'IPC_TEST_MESSAGE' |
+ IPC_MESSAGE_DECL(TestMessage, id, IPC_TUPLE in) |
+ ^ |
+ipc.cpp:153:5: note: expanded from macro 'IPC_MESSAGE_DECL' |
+ using InTuple = in_tuple; \ |
+ ^ |
+ipc.cpp:164:29: note: |
+typedef std::vector<long1D> long2D; |
+ ^ |
+ipc.cpp:163:27: note: |
+typedef std::vector<long> long1D; |
+ ^ |
+ipc.cpp:167:1: error: [chromium-ipc] IPC tuple references banned type 'size_t' via 'std::pair<size_t, _Bool>'. |
+IPC_TEST_MESSAGE(__COUNTER__, (char, short, std::pair<size_t, bool>)) // ERROR |
+^ |
+ipc.cpp:157:3: note: expanded from macro 'IPC_TEST_MESSAGE' |
+ IPC_MESSAGE_DECL(TestMessage, id, IPC_TUPLE in) |
+ ^ |
+ipc.cpp:153:5: note: expanded from macro 'IPC_MESSAGE_DECL' |
+ using InTuple = in_tuple; \ |
+ ^ |
+ipc.cpp:169:1: error: [chromium-ipc] IPC tuple references banned type 'long' via 'std::vector<std::vector<long &> &>'. |
+IPC_TEST_MESSAGE(__COUNTER__, (std::vector<std::vector<long&>&>&)) // ERROR |
+^ |
+ipc.cpp:157:3: note: expanded from macro 'IPC_TEST_MESSAGE' |
+ IPC_MESSAGE_DECL(TestMessage, id, IPC_TUPLE in) |
+ ^ |
+ipc.cpp:153:5: note: expanded from macro 'IPC_MESSAGE_DECL' |
+ using InTuple = in_tuple; \ |
+ ^ |
+ipc.cpp:186:3: error: [chromium-ipc] IPC::WriteParam() is called on blacklisted type 'long'. |
+ CALL_WRITEPARAM(long) // ERROR |
+ ^ |
+ipc.cpp:182:32: note: expanded from macro 'CALL_WRITEPARAM' |
+ IPC::WriteParam(nullptr, p); \ |
+ ^ |
+ipc.cpp:187:3: error: [chromium-ipc] IPC::WriteParam() is called on blacklisted type 'unsigned long'. |
+ CALL_WRITEPARAM(unsigned long) // ERROR |
+ ^ |
+ipc.cpp:182:32: note: expanded from macro 'CALL_WRITEPARAM' |
+ IPC::WriteParam(nullptr, p); \ |
+ ^ |
+ipc.cpp:188:3: error: [chromium-ipc] IPC::WriteParam() is called on blacklisted type 'intmax_t'. |
+ CALL_WRITEPARAM(intmax_t) // ERROR |
+ ^ |
+ipc.cpp:182:32: note: expanded from macro 'CALL_WRITEPARAM' |
+ IPC::WriteParam(nullptr, p); \ |
+ ^ |
+ipc.cpp:189:3: error: [chromium-ipc] IPC::WriteParam() is called on blacklisted type 'uintmax_t'. |
+ CALL_WRITEPARAM(uintmax_t) // ERROR |
+ ^ |
+ipc.cpp:182:32: note: expanded from macro 'CALL_WRITEPARAM' |
+ IPC::WriteParam(nullptr, p); \ |
+ ^ |
+ipc.cpp:190:3: error: [chromium-ipc] IPC::WriteParam() is called on blacklisted type 'intptr_t'. |
+ CALL_WRITEPARAM(intptr_t) // ERROR |
+ ^ |
+ipc.cpp:182:32: note: expanded from macro 'CALL_WRITEPARAM' |
+ IPC::WriteParam(nullptr, p); \ |
+ ^ |
+ipc.cpp:191:3: error: [chromium-ipc] IPC::WriteParam() is called on blacklisted type 'uintptr_t'. |
+ CALL_WRITEPARAM(uintptr_t) // ERROR |
+ ^ |
+ipc.cpp:182:32: note: expanded from macro 'CALL_WRITEPARAM' |
+ IPC::WriteParam(nullptr, p); \ |
+ ^ |
+ipc.cpp:192:3: error: [chromium-ipc] IPC::WriteParam() is called on blacklisted type 'wint_t'. |
+ CALL_WRITEPARAM(wint_t) // ERROR |
+ ^ |
+ipc.cpp:182:32: note: expanded from macro 'CALL_WRITEPARAM' |
+ IPC::WriteParam(nullptr, p); \ |
+ ^ |
+ipc.cpp:193:3: error: [chromium-ipc] IPC::WriteParam() is called on blacklisted type 'size_t'. |
+ CALL_WRITEPARAM(size_t) // ERROR |
+ ^ |
+ipc.cpp:182:32: note: expanded from macro 'CALL_WRITEPARAM' |
+ IPC::WriteParam(nullptr, p); \ |
+ ^ |
+ipc.cpp:194:3: error: [chromium-ipc] IPC::WriteParam() is called on blacklisted type 'rsize_t'. |
+ CALL_WRITEPARAM(rsize_t) // ERROR |
+ ^ |
+ipc.cpp:182:32: note: expanded from macro 'CALL_WRITEPARAM' |
+ IPC::WriteParam(nullptr, p); \ |
+ ^ |
+ipc.cpp:195:3: error: [chromium-ipc] IPC::WriteParam() is called on blacklisted type 'ssize_t'. |
+ CALL_WRITEPARAM(ssize_t) // ERROR |
+ ^ |
+ipc.cpp:182:32: note: expanded from macro 'CALL_WRITEPARAM' |
+ IPC::WriteParam(nullptr, p); \ |
+ ^ |
+ipc.cpp:196:3: error: [chromium-ipc] IPC::WriteParam() is called on blacklisted type 'ptrdiff_t'. |
+ CALL_WRITEPARAM(ptrdiff_t) // ERROR |
+ ^ |
+ipc.cpp:182:32: note: expanded from macro 'CALL_WRITEPARAM' |
+ IPC::WriteParam(nullptr, p); \ |
+ ^ |
+ipc.cpp:197:3: error: [chromium-ipc] IPC::WriteParam() is called on blacklisted type 'dev_t'. |
+ CALL_WRITEPARAM(dev_t) // ERROR |
+ ^ |
+ipc.cpp:182:32: note: expanded from macro 'CALL_WRITEPARAM' |
+ IPC::WriteParam(nullptr, p); \ |
+ ^ |
+ipc.cpp:198:3: error: [chromium-ipc] IPC::WriteParam() is called on blacklisted type 'off_t'. |
+ CALL_WRITEPARAM(off_t) // ERROR |
+ ^ |
+ipc.cpp:182:32: note: expanded from macro 'CALL_WRITEPARAM' |
+ IPC::WriteParam(nullptr, p); \ |
+ ^ |
+ipc.cpp:199:3: error: [chromium-ipc] IPC::WriteParam() is called on blacklisted type 'clock_t'. |
+ CALL_WRITEPARAM(clock_t) // ERROR |
+ ^ |
+ipc.cpp:182:32: note: expanded from macro 'CALL_WRITEPARAM' |
+ IPC::WriteParam(nullptr, p); \ |
+ ^ |
+ipc.cpp:200:3: error: [chromium-ipc] IPC::WriteParam() is called on blacklisted type 'time_t'. |
+ CALL_WRITEPARAM(time_t) // ERROR |
+ ^ |
+ipc.cpp:182:32: note: expanded from macro 'CALL_WRITEPARAM' |
+ IPC::WriteParam(nullptr, p); \ |
+ ^ |
+ipc.cpp:201:3: error: [chromium-ipc] IPC::WriteParam() is called on blacklisted type 'suseconds_t'. |
+ CALL_WRITEPARAM(suseconds_t) // ERROR |
+ ^ |
+ipc.cpp:182:32: note: expanded from macro 'CALL_WRITEPARAM' |
+ IPC::WriteParam(nullptr, p); \ |
+ ^ |
+ipc.cpp:205:3: error: [chromium-ipc] IPC::WriteParam() is called on blacklisted type 'size_t' via 'my_size'. |
+ CALL_WRITEPARAM(my_size) // ERROR |
+ ^ |
+ipc.cpp:182:32: note: expanded from macro 'CALL_WRITEPARAM' |
+ IPC::WriteParam(nullptr, p); \ |
+ ^ |
+ipc.cpp:204:18: note: |
+ typedef size_t my_size; |
+ ^ |
+ipc.cpp:210:30: error: [chromium-ipc] IPC::WriteParam() is called on blacklisted type 'unsigned long'. |
+ IPC::WriteParam(nullptr, p + 1); // ERROR |
+ ^ |
+ipc.cpp:219:30: error: [chromium-ipc] IPC::WriteParam() is called on blacklisted type 'size_t' via 'my_size'. |
+ IPC::WriteParam(nullptr, p); // ERROR |
+ ^ |
+ipc.cpp:216:32: note: |
+ typedef const my_size_base my_size; |
+ ^ |
+ipc.cpp:215:20: note: |
+ typedef size_t my_size_base; |
+ ^ |
+ipc.cpp:223:3: error: [chromium-ipc] IPC::WriteParam() is called on blacklisted type 'long' via 'std::vector<long>'. |
+ CALL_WRITEPARAM(std::vector<long>) // ERROR |
+ ^ |
+ipc.cpp:182:32: note: expanded from macro 'CALL_WRITEPARAM' |
+ IPC::WriteParam(nullptr, p); \ |
+ ^ |
+ipc.cpp:224:3: error: [chromium-ipc] IPC::WriteParam() is called on blacklisted type 'size_t' via 'std::vector<size_t>'. |
+ CALL_WRITEPARAM(std::vector<size_t>) // ERROR |
+ ^ |
+ipc.cpp:182:32: note: expanded from macro 'CALL_WRITEPARAM' |
+ IPC::WriteParam(nullptr, p); \ |
+ ^ |
+ipc.cpp:294:28: error: [chromium-ipc] IPC::WriteParam() is called on blacklisted type 'long'. |
+ IPC::WriteParam(nullptr, p.get<long>()); // ERROR |
+ ^ |
+ipc.cpp:295:28: error: [chromium-ipc] IPC::WriteParam() is called on blacklisted type 'long'. |
+ IPC::WriteParam(nullptr, p.get_long()); // ERROR |
+ ^ |
+ipc.cpp:296:28: error: [chromium-ipc] IPC::WriteParam() is called on blacklisted type 'long'. |
+ IPC::WriteParam(nullptr, p.long_data); // ERROR |
+ ^ |
+ipc.cpp:298:28: error: [chromium-ipc] IPC::WriteParam() is called on blacklisted type 'unsigned long'. |
+ IPC::WriteParam(nullptr, p.get<size_t>()); // ERROR |
+ ^ |
+ipc.cpp:299:28: error: [chromium-ipc] IPC::WriteParam() is called on blacklisted type 'size_t'. |
+ IPC::WriteParam(nullptr, p.get_size()); // ERROR |
+ ^ |
+ipc.cpp:300:28: error: [chromium-ipc] IPC::WriteParam() is called on blacklisted type 'size_t'. |
+ IPC::WriteParam(nullptr, p.size_data); // ERROR |
+ ^ |
+ipc.cpp:304:28: error: [chromium-ipc] IPC::WriteParam() is called on blacklisted type 'unsigned long'. |
+ IPC::WriteParam(nullptr, p.get<uint64_t>()); // ERROR |
+ ^ |
+ipc.cpp:309:28: error: [chromium-ipc] IPC::WriteParam() is called on blacklisted type 'unsigned long' via 'struct std::vector<unsigned long, struct std::allocator<unsigned long> >'. |
+ IPC::WriteParam(nullptr, p.get<std::vector<uint64_t>>()); // ERROR |
+ ^ |
+ipc.cpp:316:28: error: [chromium-ipc] IPC::WriteParam() is called on blacklisted type 'size_t' via 'std::vector<size_t>'. |
+ IPC::WriteParam(nullptr, p.get_sizes()); // ERROR |
+ ^ |
+ipc.cpp:317:28: error: [chromium-ipc] IPC::WriteParam() is called on blacklisted type 'size_t' via 'std::vector<size_t>'. |
+ IPC::WriteParam(nullptr, p.sizes_data); // ERROR |
+ ^ |
+42 errors generated. |