HomeSort by relevance Sort by last modified time
    Searched defs:int (Results 1 - 25 of 62) sorted by null

1 2 3

  /external/clang/test/CXX/dcl.dcl/
p4-0x.cpp 9 constexpr operator int() const { return 1; }
12 constexpr operator int() const { return 1; } // expected-note {{candidate}}
  /external/clang/test/Index/
code-completion.cpp 4 int member;
11 void memfunc(int i = 17);
16 operator int() const;
27 float& overloaded(int i, long second);
28 double& overloaded(float f, int second);
29 int& overloaded(Z z, int second);
36 Z::operator int() const {
41 // CHECK-MEMBER: FieldDecl:{ResultType int}{Text X::}{TypedText member}
43 // CHECK-MEMBER: CXXMethod:{ResultType void}{Informative Y::}{TypedText memfunc}{LeftParen (}{Optional {Placeholder int i}}{RightParen )
    [all...]
  /external/clang/test/Modules/Inputs/submodules-merge-defs/
defs.h 1 struct A { int a_member; };
2 inline int use_a(A a) { return a.a_member; }
15 template<int N> struct C_Base { struct D { constexpr operator int() const { return 0; } }; };
16 const int C_Const = 0;
20 typedef struct { int a; void f(); struct X; } D;
21 struct D::X { int dx; } extern dx;
22 inline int use_dx(D::X dx) { return dx.dx; }
24 template<typename T> int E(T t) { return t; }
27 int f()
    [all...]
  /external/clang/test/OpenMP/
task_messages.cpp 10 int a;
14 S(int a) : a(a) {}
15 operator int() { return a; }
21 int a;
30 int foo() {
33 int r;
56 // expected-error@+2 {{predetermined as a firstprivate in a task construct variable cannot be of reference type 'int &'}}
61 // expected-error@+2 {{predetermined as a firstprivate in a task construct variable cannot be of reference type 'int &'}}
87 for (int i = 0; i < 10; ++i)
95 for (int i = 0; i < 10; ++i
    [all...]
for_reduction_messages.cpp 6 bool foobool(int argc) {
13 mutable int a;
26 int a;
33 int operator+(const S3 &arg1, const S3 &arg2) { return 5; }
36 extern const int f; // expected-note 4 {{'f' declared here}}
38 int a;
44 S4(int v) : a(v) {}
48 int a;
54 S5(int v) : a(v) {}
56 class S6 { // expected-note 2 {{candidate function (the implicit copy assignment operator) not viable: no known conversion from 'int' to 'const S6' for 1st argument}
    [all...]
for_simd_reduction_messages.cpp 6 bool foobool(int argc) {
13 mutable int a;
26 int a;
33 int operator+(const S3 &arg1, const S3 &arg2) { return 5; }
36 extern const int f; // expected-note 4 {{'f' declared here}}
38 int a;
44 S4(int v) : a(v) {}
48 int a;
54 S5(int v) : a(v) {}
56 class S6 { // expected-note 2 {{candidate function (the implicit copy assignment operator) not viable: no known conversion from 'int' to 'const S6' for 1st argument}
    [all...]
parallel_for_reduction_messages.cpp 6 bool foobool(int argc) {
13 mutable int a;
26 int a;
33 int operator+(const S3 &arg1, const S3 &arg2) { return 5; }
36 extern const int f; // expected-note 4 {{'f' declared here}}
38 int a;
44 S4(int v) : a(v) {}
48 int a;
54 S5(int v) : a(v) {}
56 class S6 { // expected-note 2 {{candidate function (the implicit copy assignment operator) not viable: no known conversion from 'int' to 'const S6' for 1st argument}
    [all...]
  /external/clang/test/Sema/
parentheses.cpp 6 void conditional_op(int x, int y, bool b) {
34 operator int();
35 Stream &operator<<(int);
37 Stream &operator>>(int);
68 operator int() { return 42; }
87 void test(int a, int b, int c) {
107 void* operator++(int);
    [all...]
  /external/clang/test/SemaCXX/
new-array-size-conv.cpp 5 ValueInt(int v = 0) : ValueLength(v) {}
6 operator int () const { return ValueLength; } // expected-note 3{{conversion to integral type 'int' declared here}}
8 int ValueLength;
23 (void)new int[ValueInt(10)]; // expected-warning{{implicit conversion from array size expression of type 'ValueInt' to integral type 'int' is a C++11 extension}}
24 (void)new int[ValueEnum()]; // expected-warning{{implicit conversion from array size expression of type 'ValueEnum' to enumeration type 'E' is a C++11 extension}}
25 (void)new int[ValueBoth()]; // expected-error{{ambiguous conversion of array size expression of type 'ValueBoth' to an integral or enumeration type}}
27 (void)new int[TwoValueInts()]; // expected-error{{ambiguous conversion of array size expression of type 'TwoValueInts' to an integral or enumeration type}}
constructor.cpp 2 typedef int INT;
7 explicit Foo(int); // expected-note {{previous declaration is here}}
10 ((Foo))(INT); // expected-error{{cannot be redeclared}}
12 Foo(Foo foo, int i = 17, int j = 42); // expected-error{{copy constructor must pass its first argument by reference}}
18 int Foo(int, int); // expected-error{{constructor cannot have a return type}} \
27 int version
    [all...]
overloaded-operator-decl.cpp 4 X(int);
12 void operator()(int x = 17) const;
13 int operator[](int);
15 static int operator+(Y, Y); // expected-error{{overloaded 'operator+' cannot be a static member function}}
23 X operator+(int, float); // expected-error{{overloaded 'operator+' must have at least one parameter of class or enumeration type}}
31 void operator()(Y&, int, int); // expected-error{{overloaded 'operator()' must be a non-static member function}}
33 typedef int INT;
    [all...]
  /frameworks/base/tools/layoutlib/bridge/src/com/android/layoutlib/bridge/android/support/
DrawerLayoutUtil.java 39 int gravity = -1;
54 private static void openDrawer(View drawerLayout, int gravity) {
56 invoke(getMethod(drawerLayout.getClass(), "openDrawer", int.class), drawerLayout,
  /ndk/tests/device/test-gnustl-full/unit/
rawriter_test.cpp 14 X(int i_ = 0) : i(i_) {}
16 operator int() const { return i; }
19 int i;
49 int i;
  /ndk/tests/device/test-stlport/unit/
rawriter_test.cpp 14 X(int i_ = 0) : i(i_) {}
16 operator int() const { return i; }
19 int i;
49 int i;
  /ndk/tests/device/test-stlport_shared-exception/jni/
eh990323-1.cpp 4 extern "C" void exit (int);
6 int ctor = 0;
7 int dtor = 0;
11 A(int) {ctor++;}
14 operator int() {return 0;}
23 void g(int)
29 int x;
31 A<int> a1;
42 x = 47, A<double*>(), A<int>(39), A<void>(23), -17;
56 int
    [all...]
  /ndk/tests/device/test-stlport_static-exception/jni/
eh990323-1.cpp 4 extern "C" void exit (int);
6 int ctor = 0;
7 int dtor = 0;
11 A(int) {ctor++;}
14 operator int() {return 0;}
23 void g(int)
29 int x;
31 A<int> a1;
42 x = 47, A<double*>(), A<int>(39), A<void>(23), -17;
56 int
    [all...]
  /external/clang/test/Parser/
cxx0x-ambig.cpp 7 struct S { int n; };
8 struct T { int n; };
10 int n;
22 int(n) // expected-error {{expected ';'}}
39 constexpr T(int) {}
42 constexpr operator int() const { return 4; }
54 enum E : int { a = 1, b = 2, c = 3, d }; // ok, defines an enum
58 enum E : int { a = 1 }; // ok, defines an enum
63 enum E : int { a = 1 } { b = 2 }; // expected-error {{expected ';' after enum}} expected-error {{expected member name}}
67 enum E : int { 1 }; // expected-error {{expected identifier}
    [all...]
  /frameworks/compile/mclinker/include/mcld/ADT/
Flags.h 24 explicit Flags(unsigned int pFlag = 0x0) : m_Data(pFlag) {}
26 operator unsigned int() const { return m_Data; }
30 Flags operator&(int pMask) const { return Flags(m_Data & pMask); }
32 Flags operator&(unsigned int pMask) const { return Flags(m_Data & pMask); }
36 Flags& operator&=(unsigned int pMask) {
77 unsigned int m_Data;
  /external/clang/test/CXX/expr/expr.const/
p3-0x.cpp 4 int nonconst = 8; // expected-note 3 {{here}}
6 template<int = nonconst> struct NonConstT {}; // expected-error {{non-type template argument is not a constant expression}} expected-note {{read of non-const}}
18 bool a(int n) {
35 struct S { constexpr operator int() const { return 5; } };
47 int b(unsigned n) {
51 case (int)EE::EE32:
53 case (long long)1e10: // expected-error {{case value evaluates to 10000000000, which cannot be narrowed to type 'unsigned int'}}
54 case -3: // expected-error {{case value evaluates to -3, which cannot be narrowed to type 'unsigned int'}}
62 c = (int)EE::EE32,
67 template<unsigned char> using A = int;
    [all...]
  /external/clang/test/Modules/Inputs/stress1/
common.h 6 inline int function00(int x) { return x + x; }
14 int i;
18 S00(int x) : i(x) {}
22 int method00(int x) { return x + x; }
26 operator int() { return i; }
33 template <int I, template <typename> class U> struct S03<U<int>[I]>
34 : U<int>::S00
    [all...]
  /ndk/sources/cxx-stl/llvm-libc++/libcxx/test/algorithms/alg.modifying.operations/alg.fill/
fill_n.pass.cpp 40 int ia[n] = {0};
52 int ia[n] = {0};
63 operator int() const { return i++; }
64 mutable int i;
71 int ia[n] = {0};
135 int main()
142 test_int<forward_iterator<int*> >();
143 test_int<bidirectional_iterator<int*> >();
144 test_int<random_access_iterator<int*> >();
145 test_int<int*>();
    [all...]
  /external/clang/test/Analysis/
auto-obj-dtors-cfg-output.cpp 27 operator int() const { return 1; }
230 // CHECK-NEXT: 9: [B4.8].operator int
232 // CHECK: 11: [B4.10] (ImplicitCastExpr, UserDefinedConversion, int)
309 // CHECK-NEXT: 9: [B8.8].operator int
311 // CHECK: 11: [B8.10] (ImplicitCastExpr, UserDefinedConversion, int)
356 // CHECK-NEXT: 7: [B4.6].operator int
358 // CHECK-NEXT: 9: [B4.8] (ImplicitCastExpr, UserDefinedConversion, int)
442 // CHECK-NEXT: 7: [B10.6].operator int
444 // CHECK-NEXT: 9: [B10.8] (ImplicitCastExpr, UserDefinedConversion, int)
588 // CHECK-NEXT: 9: [B2.8].operator int
    [all...]
operator-calls.cpp 8 struct test { int a[2]; };
25 bool operator==(int x) const {
39 operator int() const {
48 clang_analyzer_eval((int)obj == 42); // expected-warning{{TRUE}}
57 int operator +() const {
58 return (int)x;
64 int operator +() const {
65 return (int)x[0];
81 void test(int coin) {
91 int a
    [all...]
  /external/clang/test/CXX/dcl.dcl/dcl.spec/dcl.constexpr/
p6.cpp 13 NonLiteral(int) {} // expected-note 2{{here}}
14 operator int() const { return 0; }
18 operator int() const { return 0; }
22 virtual int ImplicitlyVirtual() const;
27 constexpr int ImplicitlyVirtual() const { return 0; }
30 constexpr int a = ImplicitVirtualFromDependentBase<S>().ImplicitlyVirtual(); // expected-error {{constant expression}} expected-note {{cannot evaluate virtual function call}}
31 constexpr int b = ImplicitVirtualFromDependentBase<T>().ImplicitlyVirtual(); // ok
32 constexpr int c = ImplicitVirtualFromDependentBase<S>().ImplicitVirtualFromDependentBase<S>::ImplicitlyVirtual();
37 constexpr int d = ConstexprMember<int>().F(); // o
    [all...]
  /external/clang/test/CodeGenCXX/
conversion-function.cpp 6 extern "C" int printf(...);
8 operator int();
11 S::operator int() {
15 int f(S s) {
20 public: operator int() { printf("operator int()\n"); return iX; }
23 int iX;
31 int iZ;
44 int count=0;
47 operator int(){ return ++iO;
    [all...]

Completed in 623 milliseconds

1 2 3