MCPcopy Create free account
hub / github.com/cppcheck-opensource/cppcheck / exprid14

Method exprid14

test/testvarid.cpp:4520–4531  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

4518 }
4519
4520 void exprid14()
4521 {
4522 const Settings s = settingsBuilder(settings).library("std.cfg").build();
4523
4524 const char code[] = "int f(double a, double b, double c) {\n" // #13578
4525 " return static_cast<int>(std::ceil((std::min)(a, (std::min)(b, c))));\n"
4526 "}\n";
4527 const char* exp = "1: int f ( double a@1 , double b@2 , double c@3 ) {\n"
4528 "2: return static_cast < int > ( std :: ceil ( std :: min ( a@1 , std :: min ( b@2 , c@3 ) ) ) ) ;\n"
4529 "3: }\n";
4530 ASSERT_EQUALS(exp, tokenize(code, s)); // don't crash
4531 }
4532
4533 void exprid15()
4534 {

Callers

nothing calls this directly

Calls 2

buildMethod · 0.80
libraryMethod · 0.80

Tested by

no test coverage detected