| 8938 | } |
| 8939 | |
| 8940 | void funcnameInParenthesis2() { // #13578 |
| 8941 | const char code[] = "int f(double a, double b, double c) {\n" |
| 8942 | " return static_cast<int>(std::ceil((std::min)(a, (std::min)(b, c))));\n" |
| 8943 | "}\n"; |
| 8944 | SimpleTokenizer tokenizer(settings1, *this); |
| 8945 | ASSERT_LOC(tokenizer.tokenize(code), __FILE__, __LINE__); |
| 8946 | const Token *f = Token::findsimplematch(tokenizer.tokens(), "min"); |
| 8947 | ASSERT(f); |
| 8948 | const Token *par = f->next(); |
| 8949 | ASSERT(par); |
| 8950 | ASSERT(Token::simpleMatch(par, "(")); |
| 8951 | ASSERT_EQUALS(par->astOperand1(), f->astParent() /* :: */); |
| 8952 | ASSERT(Token::simpleMatch(par->astOperand2(), ",")); |
| 8953 | } |
| 8954 | |
| 8955 | void funcnameInParenthesis3() { // #13585 |
| 8956 | const char code[] = "int f(int a, int b) {\n" |
nothing calls this directly
no test coverage detected