MCPcopy Create free account
hub / github.com/KDAB/codebrowser / Uses

Class Uses

tests/test.cc:339–389  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

337} valval;
338const Val operator+(const Val&, const Val&);
339struct Uses {
340 void operator[](int);
341 void refFunc(int&);
342 int hello;
343 Val hello2;
344 Uses(int i) : hello(value), hello2({valval.v}) {}
345 int r() {
346 auto v = value;
347 v = value;
348 v = { value };
349 v = Uses{value}.hello;
350 long v2 = value;
351 Val vvv = valval;
352 vvv = valval;
353 vvv = hello2;
354 (*this)[value];
355 while(value) { }
356 return value;
357 }
358 int w() {
359 Val q;
360 valval = q + q;
361 q.v = 4;
362 (&q)->v = 45 + 45;
363 hello = 4;
364 hello2 = Val() + Val();
365 Uses *u = this;
366 u->hello2 = Val() + Val();
367 (*u).hello2 = Val() + Val();
368 hello2 += Val() + Val();
369 value = 2;
370 value += 2;
371 value++;
372 ++value;
373 switch(0) { case 0: value = 1; }
374 return 12;
375 }
376 int &a() {
377 auto *val = &valval;
378 auto &v1 = value;
379 auto v2 = &value;
380 int &v3 { value };
381 auto &xx = (&valval)->v;
382 auto *hi = &hello;
383 refFunc(value);
384 return value;
385 }
386 void o() {
387 (void) value;
388 }
389};
390
391int &func(int &x, int &y)
392{ return x == 1 ? func(y, func(y, func(y, x))) : x; }

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected