Lines Matching +full:0 +full:x1ab

3 // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
398 "struct A { static const int n = 0; };\n"
473 // "void *operator new(size_t size) { return 0; } "
495 "return (0 + ... + args); }",
681 EXPECT_TRUE(matches("void f();", functionDecl(parameterCountIs(0))));
711 EXPECT_TRUE(matches("void f(...);", functionDecl(parameterCountIs(0))));
803 EXPECT_TRUE(matches("class X { public: X(int); }; void x() { X x = 0; }",
912 matches("class X { public: X(int); }; void x() { new X(0); }", New));
933 EXPECT_TRUE(notMatches("void foo() noexcept(0+1);", NoExcept));
942 EXPECT_TRUE(matches("void x(int, int = 0) { int y; x(y); }", Arg));
944 matches("class X { void x(int, int = 0) { int y; x(y); } };", Arg));
945 EXPECT_TRUE(notMatches("void x(int, int = 0) { int y; x(y, 0); }", Arg));
966 EXPECT_TRUE(notMatches("const char c = 0x1;", characterLiteral()));
976 EXPECT_TRUE(notMatches("const wchar_t c = 0x2126;", characterLiteral()));
982 EXPECT_TRUE(matches("int i = 0x1AB;", HasIntLiteral));
1067 " { [2].y = 1.0, [2].x = 2.0, [0].x = 1.0 }; }",
1077 hasDescendant(integerLiteral(equals(0))))))))));
1088 " { [2].y = 1.0, [2].x = 2.0, [0].x = 1.0 }; }",
1178 hasFalseExpression(integerLiteral(equals(0)))));
1180 EXPECT_TRUE(matches("void x() { 1 ?: 0; }", AlwaysOne));
1243 EXPECT_TRUE(matches("char c = char(0);", castExpr()));
1248 EXPECT_TRUE(matches("char c = 0;", traverse(TK_AsIs, castExpr())));
1250 EXPECT_TRUE(matches("void f() { char c = 0, d = c; }",
1257 EXPECT_TRUE(matches("char c = '0';", implicitCastExpr()));
1259 EXPECT_TRUE(notMatches("char c = '0';", castExpr()));
1261 EXPECT_TRUE(notMatches("int i = (0);", castExpr()));
1262 EXPECT_TRUE(notMatches("int i = 0;", castExpr()));
1356 EXPECT_TRUE(notMatches("char* p = static_cast<char*>(0);"
1368 matches("void f() { int x = 0; const int y = x; }",
1372 matches("char c = 0;",
1386 notMatches("int x = 0;", varDecl(hasInitializer(implicitCastExpr()))));
1388 notMatches("int x = (0);", varDecl(hasInitializer(implicitCastExpr()))));
1389 EXPECT_TRUE(notMatches("void f() { int x = 0; double d = (double) x; }",
1397 EXPECT_TRUE(notMatches("int x = 0, &y = x;",
1439 matches("int i[1] = {42, [0] = 43};", integerLiteral(equals(42))));
1466 code + "A a{0};",
1471 code + "A a = {0};",
1530 EXPECT_TRUE(matches("void x() { do ; while(0); }", doStmt()));
1597 EXPECT_TRUE(notMatches("void f() { int a[] = { 2, 3 }; int b[a[0]]; }",
1613 notMatches("int a[42]; int b[] = { 2, 3 }; void f() { int c[b[0]]; }",
1627 notMatches("int a[42]; int b[] = { 2, 3 }; void f() { int c[b[0]]; }",
1635 EXPECT_TRUE(notMatches("int a[42]; void f() { int b[a[0]]; }",
1705 EXPECT_TRUE(matches("void f(void);", functionProtoType(parameterCountIs(0))));
1719 EXPECT_TRUE(matches("void f();", functionProtoType(parameterCountIs(0))));
2203 EXPECT_TRUE(matches("const int x = 0;",
2213 EXPECT_TRUE(notMatches("int x = 0;", qualifiedTypeLoc(loc(asString("int")))));
2218 notMatches("const int x = 0;", qualifiedTypeLoc(loc(asString("int")))));
2223 notMatches("const float x = 0;", qualifiedTypeLoc(loc(asString("int")))));
2584 numSelectorArgs(0))));
2587 argumentCountIs(0))));
2666 Code, decompositionDecl(hasBinding(0, bindingDecl(hasName("f")))), true,
2672 Code, decompositionDecl(hasBinding(0, bindingDecl(hasName("s")))), true,
2787 EXPECT_EQ(GlobalBoundNodes[0].getMap().size(), 1u);
2789 auto GlobalMethodNode = GlobalBoundNodes[0].getNodeAs<FunctionDecl>("method");
2795 EXPECT_EQ(MethodBoundNodes[0].getMap().size(), 1u);
2797 auto MethodNode = MethodBoundNodes[0].getNodeAs<FunctionDecl>("method");