MCPcopy Create free account
hub / github.com/andreasfertig/cppinsights / foo

Function foo

tests/InitializerListTest.cpp:39–64  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

37void something(std::initializer_list<T>) {}
38
39void foo() {
40 X{1, 2, 3};
41 X{nullptr, 0};
42
43 X x{3, 4, 5};
44 X b{1};
45
46 X{1, {2, 3}};
47 X c{1, {2, 3}};
48
49 X{{1, 2}, 3};
50 X d{{1, 2}, 3};
51
52 b += {2 ,4};
53
54 takes_y({1, 2});
55
56 bar( {1, 2} );
57
58 something( {1 , 2} );
59
60 something( {1.0f , 2.0f} );
61
62 V v{1};
63 V vv{1, 2};
64}
65

Callers

nothing calls this directly

Calls 2

somethingFunction · 0.85
barFunction · 0.70

Tested by

no test coverage detected