Lines Matching defs:Foo
173 struct Foo { struct
251 struct Foo { struct
258 struct Foo<int> { struct
300 struct Foo { struct
301 int i;
302 constexpr Foo(int i): i(i) {} in Foo() argument
303 constexpr bool isFooable() const { return i; } in isFooable()
305 …id go() const _diagnose_if(isFooable(), "oh no", "error") {} // expected-note{{from 'diagnose_if'}} in go()
306 …st _diagnose_if(isFooable(), "oh no", "error") { return 1; } // expected-note{{from 'diagnose_if'}} in operator int()
308 …void go2() const _diagnose_if(isFooable(), "oh no", "error") // expected-note{{from 'diagnose_if'}} in go2()
310 void go2() const _diagnose_if(isFooable(), "oh no", "error") {} in go2()
312 constexpr int go3() const _diagnose_if(isFooable(), "oh no", "error") in go3()
317 constexpr int go4() const _diagnose_if(isFooable(), "oh no", "error") { in go4()
320 constexpr int go4() const _diagnose_if(isFooable(), "oh no", "error") in go4()
326 constexpr int runGo() const { in runGo()
349 struct Foo { struct
350 int i;
351 constexpr Foo(int i): i(i) {} in Foo() function
352 constexpr bool bad() const { return i; } in bad()
354 …pename T> T getVal() _diagnose_if(bad(), "oh no", "error") { // expected-note{{from 'diagnose_if'}} in getVal()
359 …pr T getVal2() const _diagnose_if(bad(), "oh no", "error") { // expected-note{{from 'diagnose_if'}} in getVal2()
364 …r operator T() const _diagnose_if(bad(), "oh no", "error") { // expected-note{{from 'diagnose_if'}} in operator T()
369 int run() { return getVal<int>() + getVal2<int>() + int(*this); } in run()
386 struct Foo { struct
387 int i;
388 constexpr Foo(int i): i(i) {} in Foo() function
389 constexpr bool bad() const { return i; } in bad()
390 … *operator->() const _diagnose_if(bad(), "oh no", "error") { // expected-note{{from 'diagnose_if'}} in operator ->()
393 … operator()() const _diagnose_if(bad(), "oh no", "error") {} // expected-note{{from 'diagnose_if'}} in operator ()()
477 struct Foo { struct
478 int I;
479 constexpr Foo(int I): I(I) {} in Foo() argument
481 constexpr const Foo &operator=(const Foo &) const in operator =()
486 constexpr const Foo &operator=(const Foo &&) const in operator =()
514 struct Foo { struct
515 int i;
516 constexpr Foo(int i): i(i) {} in Foo() function
555 struct Foo { struct
563 struct Foo { struct
564 int i;
565 constexpr Foo(int i): i(i) {} in Foo() argument
591 struct Foo { struct
607 struct Foo { struct
608 int i;
609 constexpr Foo(int i): i(i) {} in Foo() argument
635 struct Foo { struct
636 int j;
652 struct Foo { struct
653 int i;
654 constexpr Foo(int i): i(i) {} in Foo() argument
655 …perator int() const _diagnose_if(i == 1, "oh no", "warning") // expected-note{{from 'diagnose_if'}} in operator int()