• Home
  • Raw
  • Download

Lines Matching refs:functionDecl

166       Program, callExpr(allOf(callee(functionDecl(hasName("f"))),  in TEST_P()
171 allOf(callee(functionDecl(hasName("f"))), in TEST_P()
176 callee(functionDecl(hasName("f"))), in TEST_P()
182 callee(functionDecl(hasName("f"))), in TEST_P()
947 DeclarationMatcher AnyOpStar = functionDecl(hasOverloadedOperatorName("*")); in TEST_P()
951 functionDecl(hasAnyOverloadedOperatorName("&", "&&")); in TEST_P()
1205 DeclarationMatcher Function1Arg = functionDecl(parameterCountIs(1)); in TEST_P()
1217 DeclarationMatcher Function1Arg = functionDecl(parameterCountIs(1)); in TEST_P()
1261 EXPECT_TRUE(matches("extern \"C\" void f() {}", functionDecl(isExternC()))); in TEST_P()
1263 matches("extern \"C\" { void f() {} }", functionDecl(isExternC()))); in TEST_P()
1264 EXPECT_TRUE(notMatches("void f() {}", functionDecl(isExternC()))); in TEST_P()
1279 matches("static void f() {}", functionDecl(isStaticStorageClass()))); in TEST_P()
1283 EXPECT_TRUE(notMatches("void f() {}", functionDecl(isStaticStorageClass()))); in TEST_P()
1292 functionDecl(hasName("~A"), isDefaulted()))); in TEST_P()
1294 functionDecl(hasName("~B"), isDefaulted()))); in TEST_P()
1303 notMatches("void Func();", functionDecl(hasName("Func"), isDeleted()))); in TEST_P()
1305 functionDecl(hasName("Func"), isDeleted()))); in TEST_P()
1313 EXPECT_TRUE(notMatches("void f();", functionDecl(isNoThrow()))); in TEST_P()
1314 EXPECT_TRUE(notMatches("void f() throw(int);", functionDecl(isNoThrow()))); in TEST_P()
1315 EXPECT_TRUE(matches("void f() throw();", functionDecl(isNoThrow()))); in TEST_P()
1329 notMatches("void f() noexcept(false);", functionDecl(isNoThrow()))); in TEST_P()
1330 EXPECT_TRUE(matches("void f() noexcept;", functionDecl(isNoThrow()))); in TEST_P()
1345 functionDecl(hasName("bar"), isConstexpr()))); in TEST_P()
2047 EXPECT_TRUE(matches(code, functionDecl(hasName("test")))); in TEST_P()
2048 EXPECT_TRUE(matches(code, functionDecl(hasName("foo::test")))); in TEST_P()
2049 EXPECT_TRUE(matches(code, functionDecl(hasName("::foo::test")))); in TEST_P()
2050 EXPECT_TRUE(notMatches(code, functionDecl(hasName("::test")))); in TEST_P()
2053 EXPECT_TRUE(matches(code, functionDecl(hasName("test")))); in TEST_P()
2054 EXPECT_TRUE(matches(code, functionDecl(hasName("foo::test")))); in TEST_P()
2055 EXPECT_TRUE(matches(code, functionDecl(hasName("::foo::test")))); in TEST_P()
2056 EXPECT_TRUE(notMatches(code, functionDecl(hasName("::test")))); in TEST_P()
2284 EXPECT_TRUE(notMatches("void f();", functionDecl(hasDynamicExceptionSpec()))); in TEST_P()
2286 matches("void j() throw();", functionDecl(hasDynamicExceptionSpec()))); in TEST_P()
2288 matches("void k() throw(int);", functionDecl(hasDynamicExceptionSpec()))); in TEST_P()
2290 matches("void l() throw(...);", functionDecl(hasDynamicExceptionSpec()))); in TEST_P()
2309 functionDecl(hasDynamicExceptionSpec()))); in TEST_P()
2311 functionDecl(hasDynamicExceptionSpec()))); in TEST_P()
2313 functionDecl(hasDynamicExceptionSpec()))); in TEST_P()
2531 functionDecl(hasParameter(0, hasType(recordDecl(hasName("A")))), in TEST_P()
2671 functionDecl(isInstantiated()))); in TEST_P()
2810 functionDecl(isExplicitTemplateSpecialization()))); in TEST_P()
2827 functionDecl(isExplicitTemplateSpecialization()))); in TEST_P()
2841 functionDecl(isExplicitTemplateSpecialization()))); in TEST_P()
2856 functionDecl(isExplicitTemplateSpecialization()))); in TEST_P()
2860 EXPECT_TRUE(notMatches("void func();", functionDecl(isNoReturn()))); in TEST_P()
2861 EXPECT_TRUE(notMatches("void func() {}", functionDecl(isNoReturn()))); in TEST_P()
2864 functionDecl(isNoReturn()))); in TEST_P()
2866 functionDecl(isNoReturn()))); in TEST_P()
2868 EXPECT_TRUE(matches("_Noreturn void func();", functionDecl(isNoReturn()))); in TEST_P()
2869 EXPECT_TRUE(matches("_Noreturn void func() {}", functionDecl(isNoReturn()))); in TEST_P()
2878 notMatches("struct S { void func(); };", functionDecl(isNoReturn()))); in TEST_P()
2880 notMatches("struct S { void func() {} };", functionDecl(isNoReturn()))); in TEST_P()
2883 functionDecl(isNoReturn()))); in TEST_P()
2885 functionDecl(isNoReturn()))); in TEST_P()
2887 EXPECT_TRUE(notMatches("struct S { S(); };", functionDecl(isNoReturn()))); in TEST_P()
2888 EXPECT_TRUE(notMatches("struct S { S() {} };", functionDecl(isNoReturn()))); in TEST_P()
2893 functionDecl(isNoReturn()))); in TEST_P()
2895 functionDecl(isNoReturn()))); in TEST_P()
2899 functionDecl(isNoReturn()))); in TEST_P()
2902 functionDecl(isNoReturn()))); in TEST_P()
2905 functionDecl(isNoReturn()))); in TEST_P()
2907 functionDecl(isNoReturn()))); in TEST_P()
2915 EXPECT_TRUE(matches("[[noreturn]] void func();", functionDecl(isNoReturn()))); in TEST_P()
2917 matches("[[noreturn]] void func() {}", functionDecl(isNoReturn()))); in TEST_P()
2920 functionDecl(isNoReturn()))); in TEST_P()
2922 functionDecl(isNoReturn()))); in TEST_P()
2925 functionDecl(isNoReturn()))); in TEST_P()
2927 functionDecl(isNoReturn()))); in TEST_P()
2930 matches("struct S { [[noreturn]] S(); };", functionDecl(isNoReturn()))); in TEST_P()
2932 matches("struct S { [[noreturn]] S() {} };", functionDecl(isNoReturn()))); in TEST_P()
3168 functionDecl( in TEST_P()
3183 functionDecl( in TEST_P()
3420 functionDecl(hasTrailingReturn()))); in TEST_P()
3421 EXPECT_TRUE(matches("auto X() -> int;", functionDecl(hasTrailingReturn()))); in TEST_P()
3423 notMatches("int X() { return 0; }", functionDecl(hasTrailingReturn()))); in TEST_P()
3424 EXPECT_TRUE(notMatches("int X();", functionDecl(hasTrailingReturn()))); in TEST_P()
3425 EXPECT_TRUE(notMatches("void X();", functionDecl(hasTrailingReturn()))); in TEST_P()
3435 functionDecl(hasTrailingReturn()))); in TEST_P()
3438 functionDecl(hasTrailingReturn()))); in TEST_P()
3490 EXPECT_TRUE(matches("int main() {}", functionDecl(isMain()))); in TEST_P()
3492 EXPECT_TRUE(notMatches("int main2() {}", functionDecl(isMain()))); in TEST_P()