| 2848 | } |
| 2849 | |
| 2850 | void functionArgs9() { // #7657 |
| 2851 | GET_SYMBOL_DB("struct A {\n" |
| 2852 | " struct B {\n" |
| 2853 | " enum C { };\n" |
| 2854 | " };\n" |
| 2855 | "};\n" |
| 2856 | "void foo(A::B::C c) { }"); |
| 2857 | ASSERT_EQUALS(true, db != nullptr); |
| 2858 | const Token *f = Token::findsimplematch(tokenizer.tokens(), "foo ("); |
| 2859 | ASSERT_EQUALS(true, f && f->function()); |
| 2860 | const Function *func = f->function(); |
| 2861 | ASSERT_EQUALS(true, func->argumentList.size() == 1 && func->argumentList.front().type()); |
| 2862 | const Type * type = func->argumentList.front().type(); |
| 2863 | ASSERT_EQUALS(true, type->isEnumType()); |
| 2864 | } |
| 2865 | |
| 2866 | void functionArgs10() { |
| 2867 | GET_SYMBOL_DB("class Fred {\n" |
nothing calls this directly
no test coverage detected