Lines Matching refs:check

158     void check(const char code[], bool inconclusive = false, const char filename[] = "test.cpp") {  in check()  function in TestNullPointer
205 check("void foo(const Token *tok)\n" in nullpointerAfterLoop()
223 check(code); in nullpointerAfterLoop()
227 check("void foo()\n" in nullpointerAfterLoop()
237 check("void foo(Token &tok)\n" in nullpointerAfterLoop()
247 check("void foo()\n" in nullpointerAfterLoop()
258 check("void foo()\n" in nullpointerAfterLoop()
268 check("void foo(A*a)\n" in nullpointerAfterLoop()
284 check("void foo(int x, const Token *tok) {\n" in nullpointerAfterLoop()
292 check("int foo(const Token *tok)\n" in nullpointerAfterLoop()
298 check("int foo(const Token *tok)\n" in nullpointerAfterLoop()
305 check("struct b {\n" in nullpointerAfterLoop()
317 check("struct b {\n" in nullpointerAfterLoop()
331 check("void f(A *a)\n" in nullpointer1()
343 check("void f() {\n" in nullpointer1()
353 check("void f(Bar *p) {\n" in nullpointer1()
364 check("void foo()\n" in nullpointer2()
380 check("void foo(struct ABC *abc)\n" in structDerefAndCheck()
388 check("void foo(struct ABC *abc) {\n" in structDerefAndCheck()
399 check("void foo(ABC *abc) {\n" in structDerefAndCheck()
409 check("void f(ABC *abc) {\n" in structDerefAndCheck()
418 check("void foo(ABC *abc) {\n" in structDerefAndCheck()
425 check("void foo(ABC *abc) {\n" in structDerefAndCheck()
435 check("void foo(struct ABC *abc)\n" in structDerefAndCheck()
443 check("void f(struct ABC *abc) {\n" in structDerefAndCheck()
450 check("void foo(struct ABC *abc)\n" in structDerefAndCheck()
458 check("void f(struct ABC *abc) {\n" in structDerefAndCheck()
465 check("void foo(struct ABC *abc)\n" in structDerefAndCheck()
474 check("void foo(struct ABC *abc)\n" in structDerefAndCheck()
484 check("void foo(struct ABC *abc)\n" in structDerefAndCheck()
498 check("void foo(struct ABC *abc)\n" in structDerefAndCheck()
511 check("void f()\n" in structDerefAndCheck()
524 check("void foo(ABC *abc)\n" in structDerefAndCheck()
533 check("ABC *abc;\n" in structDerefAndCheck()
541 check("Fred *fred;\n" in structDerefAndCheck()
549 check("void f() {\n" in structDerefAndCheck()
560 check("void f(ABC *abc) {\n" in structDerefAndCheck()
570 check("void f(ABC *abc) {\n" in structDerefAndCheck()
583 check("void f(ABC *abc) {\n" in structDerefAndCheck()
589 check("void f(ABC *abc) {\n" in structDerefAndCheck()
595 check("void f(ABC *abc) {\n" in structDerefAndCheck()
601 check("void f(ABC *abc) {\n" in structDerefAndCheck()
613 check(code); in structDerefAndCheck()
627 check("void foo() {\n" in structDerefAndCheck()
641 check("void foo(int *p)\n" in pointerDerefAndCheck()
649 check("void foo(int *p)\n" in pointerDerefAndCheck()
658 check("void foo(int *p)\n" in pointerDerefAndCheck()
667 check("void foo(int *p)\n" in pointerDerefAndCheck()
675 check("void foo(char *p)\n" in pointerDerefAndCheck()
683 check("void foo(char *p)\n" in pointerDerefAndCheck()
691 check("void foo()\n" in pointerDerefAndCheck()
700 check("void foo()\n" in pointerDerefAndCheck()
708 check("void foo(int *p)\n" in pointerDerefAndCheck()
719 check("void foo(int x)\n" in pointerDerefAndCheck()
727 check("void foo(int *p)\n" in pointerDerefAndCheck()
735 check("void foo(int *p, bool x)\n" in pointerDerefAndCheck()
746 check("void f(int *p) {\n" in pointerDerefAndCheck()
752 check("void f(int *p) {\n" in pointerDerefAndCheck()
761 check("void foo(ABC *p)\n" in pointerDerefAndCheck()
769 check("void foo(ABC *p)\n" in pointerDerefAndCheck()
777 check("void f() {\n" in pointerDerefAndCheck()
785 check("void f() {\n" in pointerDerefAndCheck()
792 check("void f() {\n" in pointerDerefAndCheck()
799 check("void foo(P *p)\n" in pointerDerefAndCheck()
809 check("void f(Document *doc) {\n" in pointerDerefAndCheck()
818 check("void f(int *p) {\n" in pointerDerefAndCheck()
824 check("void f(int *p) {\n" in pointerDerefAndCheck()
830 check("void f(int *p) {\n" in pointerDerefAndCheck()
839 check("void foo(x *p)\n" in pointerDerefAndCheck()
847 check("void foo(x *p)\n" in pointerDerefAndCheck()
855 check("void foo(x *p)\n" in pointerDerefAndCheck()
863 check("void foo(x *p)\n" in pointerDerefAndCheck()
871 check("void foo(struct ABC *abc)\n" in pointerDerefAndCheck()
879 check("void f(struct ABC *abc) {\n" // #4523 in pointerDerefAndCheck()
885 check("void f(struct ABC *abc) {\n" // #4523 in pointerDerefAndCheck()
891 check("int f(Item *item) {\n" in pointerDerefAndCheck()
897 check("int f(Item *item) {\n" in pointerDerefAndCheck()
906 check("BOOL GotoFlyAnchor()\n" // #2243 in pointerDerefAndCheck()
919 check("struct A\n" in pointerDerefAndCheck()
939 check("void f() {\n" in pointerDerefAndCheck()
947 check("void f(type* p) {\n" // #4983 in pointerDerefAndCheck()
955 check("void f(struct ABC *abc) {\n" in pointerDerefAndCheck()
960 check("void f(struct ABC *abc) {\n" in pointerDerefAndCheck()
974 check("void f() {\n" // #3914 - false positive in pointerDerefAndCheck()
984 check("void foo(A &a)\n" in nullpointer5()
996 check("static void foo()\n" in nullpointerExecutionPaths()
1008 check("static void foo() {\n" in nullpointerExecutionPaths()
1013 check("static void foo(int x) {\n" in nullpointerExecutionPaths()
1024 check(code); in nullpointerExecutionPaths()
1028 check("static void foo() {\n" in nullpointerExecutionPaths()
1033 check("void f()\n" in nullpointerExecutionPaths()
1043 check("static void foo() {\n" in nullpointerExecutionPaths()
1049 check("static void foo()\n" in nullpointerExecutionPaths()
1057 check("void foo()\n" in nullpointerExecutionPaths()
1063 check("void get_offset(long &offset)\n" in nullpointerExecutionPaths()
1071 check("int *test(int *Z)\n" in nullpointerExecutionPaths()
1089 check("int *test(int *Z)\n" in nullpointerExecutionPaths()
1106 check("void f() {\n" in nullpointerExecutionPaths()
1117 check("void foo()\n" in nullpointerExecutionPaths()
1126 check("void f() {\n" in nullpointerExecutionPaths()
1134 check("void f(int a) {\n" in nullpointerExecutionPaths()
1146 check("void f() {\n" in nullpointerExecutionPaths()
1153 check("void f() {\n" in nullpointerExecutionPaths()
1161 check("void f() {\n" in nullpointerExecutionPaths()
1168 check("void f() {\n" in nullpointerExecutionPaths()
1175 check("void f() {\n" in nullpointerExecutionPaths()
1186 check("void f(int *p, int *q) {\n" in nullpointerExecutionPaths()
1204 check("void foo() {\n" in nullpointerExecutionPathsLoop()
1219 check("void foo() {\n" in nullpointerExecutionPathsLoop()
1235 check("void f() {\n" in nullpointerExecutionPathsLoop()
1251 check("void foo()\n" in nullpointer7()
1260 check("void foo()\n" in nullpointer9()
1270 check("void foo()\n" in nullpointer10()
1281 check("int foo()\n" in nullpointer11()
1297 check(code, false, "test.cpp"); // C++ file => nullptr means NULL in nullpointer12()
1300 check(code, false, "test.c"); // C file => nullptr does not mean NULL in nullpointer12()
1305 check("void f() {\n" in nullpointer15()
1314 check("void foo() {\n" in nullpointer16()
1323 check("int foo() {\n" in nullpointer17()
1330 check("int foo() {\n" in nullpointer17()
1339 check("void f ()\n" in nullpointer18()
1352 check("int foo() {\n" in nullpointer19()
1359 check("void f(int x) {\n" in nullpointer20()
1366 check("void f(int x) {\n" // false negative in nullpointer20()
1375 check("void f(int x) {\n" in nullpointer21()
1385 check("void f(){\n" in nullpointer23()
1394 check("void f(){\n" in nullpointer24()
1403 check("void f(int *data, int i)\n" in nullpointer25()
1413 check("double foo() {\n" in nullpointer26()
1430 check("template<class Type>\n" in nullpointer27()
1444 check("typedef struct { int value; } S;\n" in nullpointer28()
1454 check("void f(std::vector<std::string> *values)\n" in nullpointer30()
1471 check("struct F\n" in nullpointer31()
1484 check("typedef struct\n" in nullpointer31()
1503 check("int f(int * ptr) {\n" in nullpointer32()
1515 check("void f(int * x) {\n" in nullpointer33()
1525 check("void g() {\n" in nullpointer34()
1537 check("bool f(int*);\n" in nullpointer35()
1548 check("bool f(int*);\n" in nullpointer35()
1563 check("char* f(char* s) {\n" in nullpointer36()
1575 check("void f(int value, char *string) {\n" in nullpointer37()
1594 check("void f(int * x) {\n" in nullpointer38()
1606 check("struct A { int * x; };\n" in nullpointer39()
1617 check("struct A { std::unique_ptr<int> x; };\n" in nullpointer40()
1628 check("struct A { int * g() const; };\n" in nullpointer41()
1637 check("struct A { int * g(); };\n" in nullpointer41()
1646 check("struct A { std::unique_ptr<int> g() const; };\n" in nullpointer42()
1657 check("struct A { int* x; };\n" in nullpointer43()
1669 check("int foo( ) {\n" in nullpointer44()
1678 check("extern F* GetF();\n" in nullpointer44()
1697 check("struct a {\n" in nullpointer45()
1712 check("struct a {\n" in nullpointer45()
1730 check("void f() {\n" in nullpointer46()
1738 check("void f(int *p) {\n" in nullpointer47()
1747 check("template<class T>\n" in nullpointer48()
1756 check("void f(int *p, int n) {\n" in nullpointer49()
1764 check("void f(int *p, int n) {\n" in nullpointer49()
1774 check("void f(int *p, int a) {\n" in nullpointer50()
1790 check("struct a {\n" in nullpointer51()
1804 check("int f(int a, int* b) {\n" in nullpointer52()
1812 check("int f(int a, int* b) {\n" in nullpointer52()
1821 check("struct A { int* x; };\n" in nullpointer52()
1831 check("struct A { int* x; };\n" in nullpointer52()
1842 check("struct A { int* x; };\n" in nullpointer52()
1855 check("void f(int nParams, int* params) {\n" in nullpointer53()
1867 check("int foo (int **array, size_t n_array) {\n" in nullpointer54()
1883 check("void f(const Token* tok) {\n" in nullpointer55()
1893 check("void f(int* t1, int* t2) {\n" in nullpointer55()
1904 check("bool f(int* i);\n" in nullpointer55()
1914 check("struct ListEntry {\n" in nullpointer56()
1926 check("void f() {\n" in nullpointer57()
1941 check("struct myStruct { char entry[0]; };\n" in nullpointer58()
1951 check("struct Box {\n" in nullpointer59()
1966 check("void f(){\n" in nullpointer60()
1979 check("struct a {\n" in nullpointer61()
1995 check("struct A {\n" in nullpointer61()
2012 check("struct A {\n" in nullpointer62()
2021 check("struct A {\n" in nullpointer62()
2030 check("struct A {\n" in nullpointer62()
2042 check("struct A {\n" in nullpointer63()
2056 check("struct A {\n" in nullpointer64()
2072 check("struct A {\n" in nullpointer64()
2091 check("struct A {\n" in nullpointer65()
2111 check("int f() {\n" in nullpointer66()
2128 check("int result;\n" in nullpointer67()
2141 check("int result;\n" in nullpointer67()
2155 check("struct A {\n" in nullpointer68()
2164 check("struct A {\n" in nullpointer68()
2176 check("void f(const Scope *scope) {\n" in nullpointer69()
2187 check("void f(const Scope *scope) {\n" in nullpointer69()
2201 check("struct a {\n" in nullpointer69()
2216 check("struct Token {\n" in nullpointer70()
2236 check("struct Token {\n" in nullpointer70()
2255 check("void f() {\n" in nullpointer71()
2263 check("void f() {\n" in nullpointer71()
2273 check("int test() {\n" in nullpointer72()
2283 check("int test2() {\n" in nullpointer72()
2291 check("int test3() {\n" in nullpointer72()
2303 check("void f(bool flag2, int* ptr) {\n" in nullpointer73()
2316 check("void f(bool flag2, int* ptr) {\n" in nullpointer73()
2331 check("struct d {\n" in nullpointer74()
2342 check("struct d {\n" in nullpointer74()
2356 check("struct d {\n" in nullpointer74()
2370 check("struct a {\n" in nullpointer75()
2386 check("int* foo(int y) {\n" in nullpointer76()
2398 check("bool h(int*);\n" in nullpointer77()
2405 check("bool h(int*);\n" in nullpointer77()
2413 check("bool h(int*);\n" in nullpointer77()
2425 check("void f()\n" in nullpointer78()
2437 check("void resize(size_t nF, size_t nT) {\n" in nullpointer79()
2449 check("int f(int* a, int* b) {\n" in nullpointer80()
2463 check("void f(A **list) {\n" in nullpointer81()
2480 check("bool g();\n" in nullpointer82()
2499 check("void f() {\n" in nullpointer_addressOf()
2505 check("void f() {\n" in nullpointer_addressOf()
2514 check("char *f(int x) {\n" in nullpointerSwitch()
2529 check("char *nasm_skip_spaces(const char *p) {\n" in nullpointer_cast()
2539 check("void f () {\n" in nullpointer_castToVoid()
2547 check("int f(int* x, int* y) {\n" in nullpointer_subfunction()
2560 check("void foo(char *p) {\n" in pointerCheckAndDeRef()
2567 check("void foo(char *p) {\n" in pointerCheckAndDeRef()
2574 check("void foo(char *p) {\n" in pointerCheckAndDeRef()
2580 check("void foo(char *p) {\n" in pointerCheckAndDeRef()
2587 check("void foo(char *p) {\n" in pointerCheckAndDeRef()
2595 check("void foo(abc *p) {\n" in pointerCheckAndDeRef()
2611 check(code, false); in pointerCheckAndDeRef()
2614 check(code, true); in pointerCheckAndDeRef()
2618 check("void foo(char *p) {\n" in pointerCheckAndDeRef()
2626 check("void foo(char *p) {\n" in pointerCheckAndDeRef()
2634 check("void foo(char *p) {\n" in pointerCheckAndDeRef()
2642 check("void foo(char *p) {\n" in pointerCheckAndDeRef()
2649 check("void foo(char *p) {\n" in pointerCheckAndDeRef()
2656 check("int foo(int *p) {\n" in pointerCheckAndDeRef()
2666 check("void f() {\n" in pointerCheckAndDeRef()
2675 check("void f(Foo *foo) {\n" in pointerCheckAndDeRef()
2683 check("Fred *fred;\n" in pointerCheckAndDeRef()
2693 check("void foo(char *p) {\n" in pointerCheckAndDeRef()
2702 check("void f(Fred *fred) {\n" in pointerCheckAndDeRef()
2711 check("void f(Fred *fred) {\n" in pointerCheckAndDeRef()
2724 check("void f(char *p) {\n" in pointerCheckAndDeRef()
2732 check("class Fred {\n" in pointerCheckAndDeRef()
2748 check("void test(int *i) {\n" in pointerCheckAndDeRef()
2757 check("void f()\n" in pointerCheckAndDeRef()
2770 check("void f()\n" in pointerCheckAndDeRef()
2783 check("void f()\n" in pointerCheckAndDeRef()
2795 check("int foo(struct Fred *fred) {\n" in pointerCheckAndDeRef()
2802 check("void f() {\n" in pointerCheckAndDeRef()
2810 check("void f() {\n" in pointerCheckAndDeRef()
2819 check("void f() {\n" in pointerCheckAndDeRef()
2828 check("void f() {\n" in pointerCheckAndDeRef()
2837 check("void f() {\n" in pointerCheckAndDeRef()
2846 check("void f() {\n" in pointerCheckAndDeRef()
2855 check("void f() {\n" in pointerCheckAndDeRef()
2864 check("void f(struct X *p, int x) {\n" in pointerCheckAndDeRef()
2877 check(code); // inconclusive in pointerCheckAndDeRef()
2881 check("void f(char *s) {\n" // #3358 in pointerCheckAndDeRef()
2888 check("void f(struct fred_t *fred) {\n" in pointerCheckAndDeRef()
2895 check("void f(int *x) {\n" in pointerCheckAndDeRef()
2902 check("int f(ABC *p) {\n" // FP : return ?: in pointerCheckAndDeRef()
2907 check("int f(ABC *p) {\n" // no fn in pointerCheckAndDeRef()
2913 check("int f(ABC *p) {\n" // FP : return && in pointerCheckAndDeRef()
2919 check("void f(int x, int *p) {\n" in pointerCheckAndDeRef()
2926 check("void f() {\n" in pointerCheckAndDeRef()
2935 check("int f() {\n" in nullConstantDereference()
2941 check("void f() {\n" in nullConstantDereference()
2946 check("int * f() {\n" in nullConstantDereference()
2957 check("void f(struct ABC *abc) {\n" in gcc_statement_expression()
2965 check("void f() {\n" in snprintf_with_zero_size()
2973 check("void f() {\n" in snprintf_with_non_zero_size()
2980 check("void f() {\n" in printf_with_invalid_va_argument()
2985 check("void f(char* s) {\n" in printf_with_invalid_va_argument()
2990 check("void f() {\n" in printf_with_invalid_va_argument()
2996 check("void f() {\n" in printf_with_invalid_va_argument()
3002 check("void f() {\n" in printf_with_invalid_va_argument()
3007 check("void f(char* s) {\n" in printf_with_invalid_va_argument()
3012 check("void f() {\n" in printf_with_invalid_va_argument()
3019 check("void f() {\n" in printf_with_invalid_va_argument()
3024 check("void f(char* s) {\n" in printf_with_invalid_va_argument()
3030 check("void f() {\n" in printf_with_invalid_va_argument()
3037 check("void f(char* s) {\n" in printf_with_invalid_va_argument()
3042 check("void f(char* s) {\n" in printf_with_invalid_va_argument()
3048 check("void f() {\n" in printf_with_invalid_va_argument()
3056 check("void f(char* s) {\n" in scanf_with_invalid_va_argument()
3061 check("void f() {\n" in scanf_with_invalid_va_argument()
3066 check("void f(char* foo) {\n" in scanf_with_invalid_va_argument()
3073 check("void f(char *dummy) {\n" in scanf_with_invalid_va_argument()
3079 check("void f(char *dummy) {\n" in scanf_with_invalid_va_argument()
3085 check("void f(char *dummy) {\n" in scanf_with_invalid_va_argument()
3091 check("void f(char *dummy) {\n" in scanf_with_invalid_va_argument()
3097 check("void f(char* dummy) {\n" in scanf_with_invalid_va_argument()
3105 check("int foo() {\n" in nullpointer_in_return()
3112 check("int foo(int* iVal) {\n" in nullpointer_in_return()
3120 check("struct PolymorphicA { virtual ~A() {} };\n" in nullpointer_in_typeid()
3127 check("struct NonPolymorphicA { ~A() {} };\n" in nullpointer_in_typeid()
3134 check("bool foo() {\n" in nullpointer_in_typeid()
3144 check("void f(int* ptr, int cnt){\n" in nullpointer_in_for_loop()
3154 check("void f() {\n" in nullpointerDelete()
3162 check("void f() {\n" in nullpointerDelete()
3173 check("void g(int* x) { *x; }\n" in nullpointerSubFunction()
3182 check("void f() {\n" in nullpointerExit()
3192 check("void f(std::string s1) {\n" in nullpointerStdString()
3215 check("void f(std::string s1) {\n" in nullpointerStdString()
3227 check("void f(std::string s1) {\n" in nullpointerStdString()
3239 check("void f(std::string s1, const std::string& s2, const std::string* s3) {\n" in nullpointerStdString()
3254 check("void f(std::string s1, const std::string& s2, const std::string* s3) {\n" in nullpointerStdString()
3266 check("void f(std::string s1, const std::string& s2) {\n" in nullpointerStdString()
3275 check("void f(std::string s1, const std::string& s2) {\n" in nullpointerStdString()
3284 check("class Bar {\n" in nullpointerStdString()
3296 check("void f() {\n" in nullpointerStdString()
3301 check("void f() {\n" in nullpointerStdString()
3307 check("void foo(int i, std::string s);\n" in nullpointerStdString()
3323 check("void f(std::ifstream& is) {\n" in nullpointerStdStream()
3329 check("void f(const std::ostringstream& oss, char* q) {\n" in nullpointerStdStream()
3340 check("void f(const char* p) {\n" in nullpointerStdStream()
3356 check("void f() {\n" in nullpointerStdStream()
3365 check("void f(const std::string& str) {\n" in nullpointerStdStream()
3373 check("void f(int* i) {\n" in nullpointerStdStream()
3380 check("using namespace std;\n" in nullpointerStdStream()
3388 check("void deserialize(const std::string &data) {\n" in nullpointerStdStream()
3401 check("struct Fred { int x; };\n" in nullpointerSmartPointer()
3408 check("struct Fred { int x; };\n" in nullpointerSmartPointer()
3415 check("struct Fred { int x; };\n" in nullpointerSmartPointer()
3422 check("struct Fred { int x; };\n" in nullpointerSmartPointer()
3429 check("struct Fred { int x; };\n" in nullpointerSmartPointer()
3436 check("struct Fred { int x; };\n" in nullpointerSmartPointer()
3443 check("struct Fred { int x; };\n" in nullpointerSmartPointer()
3451 check("struct Fred { int x; };\n" in nullpointerSmartPointer()
3459 check("struct Fred { int x; };\n" in nullpointerSmartPointer()
3466 check("struct Fred { int x; };\n" in nullpointerSmartPointer()
3473 check("struct A {};\n" in nullpointerSmartPointer()
3481 check("struct A {\n" in nullpointerSmartPointer()
3492 check("char* g();\n" in nullpointerSmartPointer()
3501 check("std::shared_ptr<int> f() {\n" in nullpointerSmartPointer()
3515 check("void f(int *p) {\n" in functioncall()
3523 check("void foo(int *p) { }\n" in functioncall()
3535 check("void foo(int *&p) { }\n" in functioncall()
3545 check("void foo(int *p);\n" in functioncall()
3557 check("void f(int *p) {\n" in functioncall()
3570 check("void f(struct ABC *abc) {\n" in functioncall()
3578 check("void foo(struct ABC *abc) { }\n" in functioncall()
3590 check("void foo(struct ABC *abc);\n" in functioncall()
3602 check("void f(struct ABC *abc) {\n" in functioncall()
3651 check("void f(int *p = 0) {\n" in functioncallDefaultArguments()
3656 check("void f(int *p = 0) {\n" in functioncallDefaultArguments()
3663 check("void f(char a, int *p = 0) {\n" in functioncallDefaultArguments()
3668 check("void f(int *p = 0) {\n" in functioncallDefaultArguments()
3673 check("void f(int *p = 0) {\n" in functioncallDefaultArguments()
3678 check("void f(int *p = 0) {\n" in functioncallDefaultArguments()
3683 check("void f(int *p = 0) {\n" in functioncallDefaultArguments()
3689 check("void f(int *p) {\n" in functioncallDefaultArguments()
3694 check("void f(int *p = 0) {\n" in functioncallDefaultArguments()
3700 check("void f(int *p = 0) {\n" in functioncallDefaultArguments()
3708 check("void f(int a, int *p = 0) {\n" in functioncallDefaultArguments()
3716 check("void f(int *p = 0) {\n" in functioncallDefaultArguments()
3722 check("void f(int *p = 0) {\n" in functioncallDefaultArguments()
3728 check("int f(int *p = 0) {\n" in functioncallDefaultArguments()
3736 check("void f(int *p = 0) {\n" in functioncallDefaultArguments()
3741 check("void f(char *p = 0) {\n" in functioncallDefaultArguments()
3746 check("void f(int *p = 0) {\n" in functioncallDefaultArguments()
3751 check("void f(int *p = 0) {\n" in functioncallDefaultArguments()
3756 check("void f(int *p = 0) {\n" in functioncallDefaultArguments()
3761 check("void isEmpty(int *p = 0) {\n" in functioncallDefaultArguments()
3766 check("void g(int *p = 0) {\n" in functioncallDefaultArguments()
3774 check("void f(int *p = 0) {\n" in functioncallDefaultArguments()
3780 check("void f(int *p = 0) {\n" in functioncallDefaultArguments()
3789 check("void f(int *p = 0) {\n" in functioncallDefaultArguments()
3795 check("void init(int* &g);\n" in functioncallDefaultArguments()
3802 check("void f(int *p = 0) {\n" in functioncallDefaultArguments()
3810 check("void f(int *p = 0) {\n" in functioncallDefaultArguments()
3818 check("void foo(int x, int *p = 0) {\n" in functioncallDefaultArguments()
3825 check("struct A { unsigned int size; };\n" in nullpointer_internal_error()
3836 check("void foo(MythSocket *socket) {\n" in ticket6505()
3852 check("void foo(char *s) {\n" in subtract()
3859 check("void foo(char *s) {\n" in subtract()
3865 check("void foo(char *s) {\n" in subtract()
3872 check("void foo(char *s) {\n" in subtract()
3878 check("int* f8() { int *x = NULL; return --x; }"); in subtract()
3881 check("int* f9() { int *x = NULL; return x--; }"); in subtract()
3886 check("void foo(char *s) {\n" in addNull()
3892 check("void foo(char *s) {\n" in addNull()
3898 check("void foo(char *s) {\n" in addNull()
3904 check("void foo(char *s) {\n" in addNull()
3910 check("void foo(char *s) {\n" in addNull()
3916 check("void foo(char *s) {\n" in addNull()
3922 check("int* f7() { int *x = NULL; return ++x; }"); in addNull()
3925 check("int* f10() { int *x = NULL; return x++; }"); in addNull()
3928 check("class foo {};\n" in addNull()
3935 check("const char** get() { return 0; }"); in isPointerDeRefFunctionDecl()