Searched refs:Derived (Results 1 - 25 of 83) sorted by relevance

1234

/external/clang/test/SemaCXX/
H A DPR9884.cpp8 class Derived : public Base { class in inherits:Base
10 Derived(int val);
14 Derived::Derived(int val) function in class:Derived
H A DPR7410.cpp9 struct Derived : Base { struct in inherits:Base
13 Derived d;
H A Ddirect-initializer.cpp42 struct Derived : Base { struct in inherits:Base
46 void foo(const Derived cd, Derived d) {
47 int *pi = cd; // expected-error {{no viable conversion from 'const Derived' to 'int *'}}
H A Dwarn-weak-vtables.cpp41 class Derived : public Parent { class in inherits:Parent
43 Derived();
47 class VeryDerived : public Derived { // expected-warning{{'VeryDerived' has no out-of-line virtual method definitions; its vtable will be emitted in every translation unit}}
54 void uses(Parent &p, Derived &d, VeryDerived &vd) {
H A Dconversion-delete-expr.cpp84 struct Derived : Base { struct in inherits:Base
89 void foo6(const Derived cd, Derived d) {
90 // overload resolution selects Derived::operator int*() const;
/external/clang/test/CXX/conv/conv.mem/
H A Dp4.cpp11 struct Derived : Base {}; struct in namespace:test0
13 int (Derived::*d) = data_ptr;
14 int (Derived::*m)() = method_ptr;
20 struct Derived : private Base {}; // expected-note 2 {{declared private here}} struct in namespace:test1
22 int (Derived::*d) = data_ptr; // expected-error {{cannot cast private base class 'Base' to 'test1::Derived'}}
23 int (Derived::*m)() = method_ptr; // expected-error {{cannot cast private base class 'Base' to 'test1::Derived'}}
31 struct Derived : A, B {}; struct in namespace:test2
33 int (Derived
40 struct Derived : virtual Base {}; struct in namespace:test3
50 struct Derived : Base, virtual A {}; struct in namespace:test4
60 struct Derived : Base, virtual A {}; struct in namespace:test5
[all...]
/external/clang/test/CXX/class.derived/
H A Dp2.cpp7 struct Derived : Base {}; struct in namespace:PR5840
/external/clang/test/PCH/
H A Dcxx-offsetof-base.h4 struct Derived : Base { int y; }; struct in inherits:Base
5 int o = __builtin_offsetof(Derived, x);
H A Dcxx_exprs.h9 struct Derived : Base { Derived(); void g(); }; struct in inherits:Base
11 typedef __typeof__(dynamic_cast<Derived *>(base_ptr)) dynamic_cast_result;
32 void foo(Derived *P) {
47 Derived foo();
49 Derived::Derived() : Base(4) { function in class:Derived
52 void Derived::g() {
64 const Derived &X = foo();
H A Dchain-pending-instantiations.cpp6 template <typename Derived>
8 Derived* get() { return 0; }
/external/clang/test/SemaTemplate/
H A Dinstantiate-elab-type-specifier.cpp9 template <class T> struct Derived : Base<T> { struct in inherits:Base
13 template struct Derived<int>;
H A Dtemp.cpp14 template<typename T> struct Derived : A::Base<char>, B::Base<int> { struct in namespace:test1
16 typename Derived::Base<float>::t x; // expected-error {{found in multiple base classes of different types}} \
H A Dinstantiate-using-decl.cpp25 template <class Derived> struct Visitor1 {
28 template <class Derived> struct Visitor2 {
32 template <class Derived> struct JoinVisitor
33 : Visitor1<Derived>, Visitor2<Derived> {
34 typedef Visitor1<Derived> Base1;
35 typedef Visitor2<Derived> Base2;
H A Dclass-template-ctor-initializer.cpp41 class Derived : public ParentClass { class in namespace:PR7259
43 Derived() : Base() {} function in class:PR7259::Derived
46 class Final : public Derived<Base> {
H A Ddependent-base-classes.cpp77 struct Derived : Base1<T>, Base2 { struct in namespace:Ambig
78 typedef typename Derived::type type; // expected-error{{member 'type' found in multiple base classes of different types}}
82 Derived<int> di; // expected-note{{instantiation of}}
121 class Derived class in namespace:PR6413
132 template <class T> struct Derived: public Base<T> { struct in namespace:PR5812
133 typename Derived::Base* p; // meaning Derived::Base<T>
136 Derived<int> di;
/external/clang/test/CXX/dcl.dcl/basic.namespace/namespace.udecl/
H A Dp13.cpp23 struct Derived : Base { struct in namespace:test0
38 Opaque0 a = Derived().test0((int*) 0);
39 Opaque1 b = Derived().test0((const int*) 0);
43 Opaque1 a = Derived().test1((int*) 0);
44 Opaque0 b = Derived().test1((const int*) 0);
48 Opaque0 a = ((Derived*) 0)->test2((int*) 0);
49 Opaque1 b = ((const Derived*) 0)->test2((int*) 0);
53 Opaque1 a = ((Derived*) 0)->test3((int*) 0);
54 Opaque0 b = ((const Derived*) 0)->test3((int*) 0);
/external/clang/test/CodeGenCXX/
H A Dcopy-constructor-elim-2.cpp20 struct Derived : public virtual Base { struct in namespace:no_elide_base
21 Derived(const Other &O);
24 // CHECK: define {{.*}} @_ZN13no_elide_base7DerivedC1ERKNS_5OtherE(%"struct.no_elide_base::Derived"* %this, %"struct.no_elide_base::Other"* %O) unnamed_addr
25 Derived::Derived(const Other &O) function in class:no_elide_base::Derived
H A Dvtable-key-function.cpp26 struct Derived : public Base<T> { }; struct in inherits:Base
29 struct Derived<char> : public Base<char> { struct in inherits:Base
33 void Derived<char>::anchor() { }
H A Dapple-kext-linkage.C7 struct Derived : Base { struct in inherits:Base
9 Derived();
13 Derived d1; // ok
/external/clang/test/CXX/dcl.decl/dcl.init/dcl.init.ref/
H A Dp5-var.cpp4 struct Derived : Base { }; // expected-note{{candidate constructor (the implicit copy constructor) not viable}} struct in inherits:Base
7 struct Diamond : Derived, Derived2 { };
14 operator Derived&() const;
18 operator Derived&(); // expected-note{{candidate function}}
31 operator Derived() const;
35 operator Derived(); // expected-note{{candidate function}}
46 void bind_lvalue_to_lvalue(Base b, Derived d,
47 const Base bc, const Derived dc,
53 Derived &dr1 = d;
54 Derived
[all...]
/external/clang/test/CXX/temp/temp.res/temp.local/
H A Dp3.cpp9 template <class T> struct Derived: Base<int>, Base<char> { struct in inherits:Base,Base
10 typename Derived::Base b; // expected-error{{member 'Base' found in multiple base classes of different types}}
11 typename Derived::Base<double> d; // OK
14 t->Derived::Base<T>::f();
/external/clang/test/CodeCompletion/
H A Dmember-access.cpp18 struct Derived : Base3 { struct in inherits:Base3
25 Derived *operator->() const;
/external/clang/test/Index/
H A Dannotate-context-sensitive.cpp6 class Derived final : public Base {
23 // CHECK-OVERRIDE-FINAL: Keyword: "class" [6:1 - 6:6] ClassDecl=Derived:6:7 (Definition)
24 // CHECK-OVERRIDE-FINAL: Identifier: "Derived" [6:7 - 6:14] ClassDecl=Derived:6:7 (Definition)
26 // CHECK-OVERRIDE-FINAL: Punctuation: ":" [6:21 - 6:22] ClassDecl=Derived:6:7 (Definition)
29 // CHECK-OVERRIDE-FINAL: Punctuation: "{" [6:35 - 6:36] ClassDecl=Derived:6:7 (Definition)
30 // CHECK-OVERRIDE-FINAL: Keyword: "virtual" [7:3 - 7:10] ClassDecl=Derived:6:7 (Definition)
37 // CHECK-OVERRIDE-FINAL: Punctuation: ";" [7:34 - 7:35] ClassDecl=Derived:6:7 (Definition)
42 // CHECK-OVERRIDE-FINAL: Punctuation: ";" [9:19 - 9:20] ClassDecl=Derived:6:7 (Definition)
/external/clang/test/CXX/class/class.friend/
H A Dp1.cpp16 struct Derived : public Base { struct in inherits:Base
49 friend void Derived::missing_member(); // expected-error {{ no function named 'missing_member' with type 'void ()' was found in the specified scope }}
51 friend void Derived::base_member(); // expected-error {{ no function named 'base_member' with type 'void ()' was found in the specified scope }}
/external/clang/test/FixIt/
H A Dtypo.cpp52 struct Derived : public Base { // expected-note{{base class 'Base' specified here}} struct in inherits:Base
55 Derived() : base(), // expected-error{{initializer 'base' does not name a non-static data member or base class; did you mean the base class 'Base'?}} function in struct:Derived
65 int &Derived::getMember() {

Completed in 312 milliseconds

1234