/external/clang/test/CodeGenCXX/ |
2004-11-27-FriendDefaultArgCrash.cpp | 7 friend void foo(int arg = 0) {};
|
debug-info-friend.cpp | 7 friend class MyFriend;
|
friend-redecl.cpp | 5 friend bool TryFoo(Foo *f2) { return TryFoo(0, f2); } 12 friend bool TryFoo(int, Foo *f3);
|
/external/clang/test/CXX/class.access/class.friend/ |
p11.cpp | 8 friend void bar(); 16 friend void bar(); // expected-error {{no matching function found in local scope}}
|
p2-cxx03.cpp | 4 friend T; // expected-warning{{non-class friend type 'T' is a C++11 extension}}
|
p1.cpp | 3 // C++'0x [class.friend] p1: 4 // A friend of a class is a function or class that is given permission to use 6 // its friends, if any, by way of friend declarations. Such declarations give 14 friend struct S; 15 friend S* g(); 32 friend struct S; 33 friend S* g(); 35 friend struct S2; 36 friend struct S2* g2(); 76 friend class ClassFriend [all...] |
/external/clang/test/SemaCXX/ |
friend-class-nodecl.cpp | 4 // Tests that the tag decls in friend declarations aren't added to the 8 friend class B;
|
templated-friend-decl.cpp | 10 // requires a rewrite of the templated friend code to be properly fixed. 12 friend struct Bar;
|
PR8884.cpp | 4 friend struct foo;
|
/external/clang/include/clang/AST/ |
DeclFriend.h | 1 //===-- DeclFriend.h - Classes for C++ friend declarations -*- C++ -*------===// 10 // This file defines the section of the AST representing C++ friend 24 /// FriendDecl - Represents the declaration of a friend entity, 30 /// friend int foo(T); 31 /// friend class B; 32 /// friend T; // only in C++0x 33 /// template <typename U> friend class C; 34 /// template <typename U> friend A& operator+=(A&, const U&) { ... } 38 /// The semantic context of a friend decl is its declaring class. 45 // The declaration that's a friend of this class [all...] |
/external/chromium_org/base/threading/ |
thread_restrictions.h | 176 // DO NOT ADD ANY OTHER FRIEND STATEMENTS, talk to jam or brettw first. 178 friend class content::BrowserTestBase; 179 friend class content::RenderWidgetHelper; 180 friend class content::ScopedAllowWaitForAndroidLayoutTests; 181 friend class ::HistogramSynchronizer; 182 friend class ::ScopedAllowWaitForLegacyWebViewApi; 183 friend class ::TestingAutomationProvider; 184 friend class cc::CompletionEvent; 185 friend class remoting::AutoThread; 186 friend class MessagePumpDefault [all...] |
/external/clang/test/CXX/special/class.copy/ |
p13-0x.cpp | 97 friend constexpr U::U() noexcept; 98 friend constexpr U::U(U&&) noexcept; 99 friend constexpr U::U(const U&) noexcept; 100 friend constexpr V::V(); // expected-error {{follows non-constexpr declaration}} 101 friend constexpr V::V(V&&) noexcept; 102 friend constexpr V::V(const V&) noexcept; 103 friend constexpr W::W(); // expected-error {{follows non-constexpr declaration}} 104 friend constexpr W::W(W&&) noexcept; 105 friend constexpr W::W(const W&) noexcept; 106 friend constexpr S<U>::S() noexcept [all...] |
p8-cxx11.cpp | 42 friend A::A(const A &); 43 friend B::B(B &); 44 friend C::C(C &); 45 friend D::D(const D &); 46 friend E::E(E &); 47 constexpr friend F::F(const F &); 48 friend G::G(G &);
|
p18-cxx11.cpp | 53 friend A &A::operator=(const A &); 54 friend B &B::operator=(B &); 55 friend C &C::operator=(C &); 56 friend D &D::operator=(const D &); 57 friend E &E::operator=(E &); 58 friend F &F::operator=(const F &); 59 friend G &G::operator=(G &); 60 friend H &H::operator=(const H &); 61 friend I &I::operator=(const I &);
|
/external/clang/test/SemaTemplate/ |
friend-template.cpp | 7 template<typename T> friend struct Y; 20 template<typename T> friend void f0(T); 21 template<typename T> friend void f1(T); 31 template<typename U> friend struct X0; 35 template<typename U> friend struct X0; 39 template<typename U> friend struct X0; 43 template<typename U> friend void f2(U); 44 template<typename U> friend void f3(U); 65 friend class Foo; 76 template<typename U, U Value> friend struct X2a [all...] |
instantiate-friend-class.cpp | 7 friend class Y;
|
/external/clang/test/CXX/class/class.friend/ |
p1-ambiguous.cpp | 4 // Make sure that friend declarations don't introduce ambiguous 19 friend int c_func(foo *a); 20 friend int cpp_func(foo *a);
|
/external/clang/test/CXX/dcl.decl/dcl.meaning/dcl.fct/ |
p6.cpp | 10 friend void g() const; // expected-error {{non-member function cannot have 'const' qualifier}} 13 friend F j; // expected-error {{non-member function of type 'F' (aka 'void () const') cannot have 'const' qualifier}} 18 friend void X::f() const; 19 friend void ::f() const; // expected-error {{non-member function cannot have 'const' qualifier}}
|
/external/clang/test/Modules/Inputs/ |
templates-top.h | 10 template <typename T> friend class WhereAmI;
|
/external/clang/test/CXX/basic/basic.lookup/basic.lookup.unqual/ |
p3.cpp | 8 friend void f(); 17 friend void f(A &);
|
/ndk/sources/cxx-stl/llvm-libc++/libcxx/test/containers/ |
min_allocator.h | 26 friend bool operator==(min_pointer x, min_pointer y) {return x.ptr_ == y.ptr_;} 27 friend bool operator!=(min_pointer x, min_pointer y) {return !(x == y);} 28 template <class U> friend class min_pointer; 48 friend bool operator==(min_pointer x, min_pointer y) {return x.ptr_ == y.ptr_;} 49 friend bool operator!=(min_pointer x, min_pointer y) {return !(x == y);} 50 template <class U> friend class min_pointer; 91 friend min_pointer operator+(difference_type n, min_pointer x) 103 friend difference_type operator-(min_pointer x, min_pointer y) 110 friend bool operator< (min_pointer x, min_pointer y) {return x.ptr_ < y.ptr_;} 111 friend bool operator> (min_pointer x, min_pointer y) {return y < x; [all...] |
/ndk/sources/cxx-stl/llvm-libc++/libcxx/test/strings/basic.string/ |
min_allocator.h | 26 friend bool operator==(min_pointer x, min_pointer y) {return x.ptr_ == y.ptr_;} 27 friend bool operator!=(min_pointer x, min_pointer y) {return !(x == y);} 28 template <class U> friend class min_pointer; 48 friend bool operator==(min_pointer x, min_pointer y) {return x.ptr_ == y.ptr_;} 49 friend bool operator!=(min_pointer x, min_pointer y) {return !(x == y);} 50 template <class U> friend class min_pointer; 91 friend min_pointer operator+(difference_type n, min_pointer x) 103 friend difference_type operator-(min_pointer x, min_pointer y) 110 friend bool operator< (min_pointer x, min_pointer y) {return x.ptr_ < y.ptr_;} 111 friend bool operator> (min_pointer x, min_pointer y) {return y < x; [all...] |
/external/clang/test/CXX/temp/temp.decls/temp.friend/ |
p1.cpp | 15 friend Num operator*(const Num &a, const Rep &n) { 23 friend Num operator+(const Num &a, const Num &b) { 33 friend class Representation; 37 template <typename T> friend bool iszero(const A &a) throw(); 42 friend class B_iterator<T>; 64 template <typename T> friend bool has(const A&); 77 template <typename T> friend class HasChecker; 97 friend class User<bool>; 98 friend bool transform<>(Bool, bool); 124 template <class T0> friend class B [all...] |
/external/clang/test/CXX/dcl.dcl/basic.namespace/namespace.def/namespace.memdef/ |
p3.cpp | 5 // a friend declaration in a non-local class first declares a class or 6 // function the friend class or function is a member of the innermost 11 friend struct F0; 12 friend void f0(int); 20 // Ensure we can handle attaching friend declarations to an enclosing namespace 25 friend struct F1; 26 friend void f1(int); 34 // The name of the friend is not found by unqualified lookup (3.4.1) or by 37 // friendship). If a friend function is called, its name may be found by the 40 // in a friend declaration is neither qualified nor a template-id and th [all...] |
/external/chromium/chrome/browser/sessions/ |
session_id.h | 29 friend class NavigationController; 30 friend class SessionService; 31 friend class browser_sync::SessionModelAssociator;
|