/external/clang/test/SemaCXX/ |
cxx98-compat-pedantic.cpp | 16 enum Enum {
|
attr-deprecated.cpp | 196 enum __attribute__((deprecated)) A { 204 enum B { 215 enum __attribute__((deprecated)) Enum { 220 C<int>::Enum x; // expected-warning {{'Enum' is deprecated}} 221 x = C<int>::c0; // expected-warning {{'Enum' is deprecated}} 225 enum Enum { 231 D<int>::Enum x [all...] |
constant-expression.cpp | 12 enum Enum { eval = 1 }; 14 const Enum ceval = eval; 17 static const Enum seval = eval; 20 template <int itval, Enum etval> struct C { 21 enum E { 84 enum {
|
cxx98-compat.cpp | 49 enum EnumFixed : int { // expected-warning {{enumeration types with a fixed underlying type are incompatible with C++98}} 52 enum class EnumScoped { // expected-warning {{scoped enumerations are incompatible with C++98}} 165 enum Enum { enum_val = 0 }; 167 friend enum ::Enum; // expected-warning {{befriending enumeration type 'enum ::Enum' is incompatible with C++98}}
|
static-cast.cpp | 13 enum Enum { En1, En2 }; 14 enum Onom { On1, On2 }; 102 // Enum conversions 105 (void)static_cast<Enum>(1); 106 (void)static_cast<Enum>(1.0); 111 (void)static_cast<Enum>((int*)0); // expected-error {{static_cast from 'int *' to 'Enum' is not allowed}}
|
cstyle-cast.cpp | 55 enum Enum { En1, En2 }; 56 enum Onom { On1, On2 }; 135 // Enum conversions 138 (void)(Enum)(1); 139 (void)(Enum)(1.0); 144 (void)(Enum)((int*)0); // expected-error {{C-style cast from 'int *' to 'Enum' is not allowed}} 167 enum test { testval = 1 };
|
expression-traits.cpp | 58 enum Enum { Enumerator }; 62 Enum ReturnEnum(); 74 extern Enum& ReturnEnumReference(); 207 enum Enum { Enumerator };
|
conditional-expr.cpp | 53 enum Enum { EVal }; 262 enum Foo { 297 enum Enum { 301 const Enum g() { 305 const volatile Enum g2() { 310 const Enum v2 = v; 311 Enum e = false ? g() : v; 312 Enum e2 = false ? v2 : v [all...] |
functional-cast.cpp | 87 enum Enum { En1, En2 }; 88 enum Onom { On1, On2 }; 193 // Enum conversions 196 (void)Enum(1); 197 (void)Enum(1.0); 202 (void)Enum((int*)0); // expected-error {{functional-style cast from 'int *' to 'Enum' is not allowed}} 228 enum test { testval = 1 };
|
type-traits.cpp | 8 enum Enum { EV }; 9 struct POD { Enum e; int i; float f; NonPOD* p; }; 102 { int arr[T(__is_pod(Enum))]; } 192 { int arr[F(__is_class(Enum))]; } 210 { int arr[F(__is_union(Enum))]; } 219 typedef Enum EnumType; 223 { int arr[T(__is_enum(Enum))]; } 253 { int arr[F(__is_polymorphic(Enum))]; } 281 int t28[F(__is_integral(Enum))]; [all...] |
/external/clang/test/SemaTemplate/ |
instantiate-enum.cpp | 5 enum { 16 enum Enum
|
enum-argument.cpp | 3 enum Enum { val = 1 }; 4 template <Enum v> struct C { 16 enum { 28 enum { e0 = 32 };
|
current-instantiation.cpp | 171 enum anonymous_enum { value = b }; 223 enum Enum { Yes, No }; 224 template<Enum> void foo(); 225 template<Enum> class Inner; 229 template<typename X<XT>::Enum> 235 template<typename X<XT>::Enum>
|
/libcore/luni/src/main/java/java/lang/ |
Enum.java | 30 public abstract class Enum<E extends Enum<E>> implements Serializable, Comparable<E> { 34 private static final BasicLruCache<Class<? extends Enum>, Object[]> sharedConstantsCache 35 = new BasicLruCache<Class<? extends Enum>, Object[]>(64) { 36 @Override protected Object[] create(Class<? extends Enum> enumType) { 54 * Constructor for constants of enum subtypes. 57 * the enum constant's declared name. 59 * the enum constant's ordinal, which corresponds to its position 60 * in the enum declaration, starting at zero. 62 protected Enum(String name, int ordinal) [all...] |
/external/clang/test/Sema/ |
conditional-expr.c | 31 enum {xxx,yyy,zzz} e, *ee; 53 enum Enum { EVal };
|
/dalvik/tests/055-enum-performance/src/ |
Main.java | 54 * This is meant to ensure that the basic enum functionality 60 System.out.println(Enum.valueOf(c, "FOUR")); 61 System.out.println(Enum.valueOf(c, "ONE")); 62 System.out.println(Enum.valueOf(c, "FOURTEEN")); 63 System.out.println(Enum.valueOf(c, "NINE")); 64 System.out.println(Enum.valueOf(c, "FIVE")); 65 System.out.println(Enum.valueOf(c, "TWELVE")); 67 System.out.println(Enum.valueOf(c, "ZERO").getClass().getName()); 115 Enum.valueOf(c, "ZERO"); 116 Enum.valueOf(c, "ONE") [all...] |
/external/clang/test/PCH/ |
exprs.h | 5 enum Enum { Enumerator = 18 };
|
/external/clang/test/CXX/class.access/ |
p6.cpp | 126 enum Enum { E0, E1, E2 }; // expected-note 4 {{declared private here}} 127 template <Enum> void foo(); 128 template <Enum> class bar; 131 template <A::Enum en> void A::foo() {} 132 template <A::Enum en> class A::bar {}; 134 template <A::Enum en> void foo() {} // expected-error {{'Enum' is a private member of 'test5::A'}} 135 template <A::Enum en> class bar {}; // expected-error {{'Enum' is a private member of 'test5::A'} [all...] |
/external/apache-harmony/luni/src/test/api/common/org/apache/harmony/luni/tests/java/lang/ |
EnumTest.java | 29 enum Sample { 37 enum Empty { 40 enum Bogus { 44 enum Color { 48 enum MockCloneEnum { 57 * @tests java.lang.Enum#compareTo(java.lang.Enum) 72 * @tests java.lang.Enum#equals(Object) 83 * @tests java.lang.Enum#getDeclaringClass() 90 * @tests java.lang.Enum#hashCode( [all...] |
/external/chromium/testing/gmock/scripts/generator/cpp/ |
ast.py | 316 class Enum(_NestedType): [all...] |
/external/chromium/third_party/libjingle/source/talk/base/ |
httpcommon.cc | 57 // Enum - TODO: expose globally later? 71 struct Enum { 87 inline Enum& operator=(E rhs) { val = rhs; return *this; } 91 inline Enum& operator=(const std::string& rhs) { assign(rhs); return *this; } 94 #define ENUM(e,n) \ 95 template<> const char** Enum<e>::Names = n; \ 96 template<> size_t Enum<e>::Size = sizeof(n)/sizeof(n[0]) 105 ENUM(HttpVersion, kHttpVersions); 110 ENUM(HttpVerb, kHttpVerbs); 142 ENUM(HttpHeader, kHttpHeaders) [all...] |
/external/clang/lib/AST/ |
Decl.cpp | [all...] |
/external/clang/lib/Sema/ |
SemaTemplateInstantiateDecl.cpp | 604 EnumDecl *Enum = EnumDecl::Create(SemaRef.Context, Owner, D->getLocStart(), 614 Enum->setIntegerTypeSourceInfo(SemaRef.SubstType(TI, 619 if (!Enum->getIntegerTypeSourceInfo()) 620 Enum->setIntegerType(SemaRef.Context.IntTy); 625 Enum->setIntegerType(D->getIntegerType()); 629 SemaRef.InstantiateAttrs(TemplateArgs, D, Enum); 631 Enum->setInstantiationOfMemberEnum(D); 632 Enum->setAccess(D->getAccess()); 633 if (SubstQualifier(D, Enum)) return 0; 634 Owner->addDecl(Enum); [all...] |
SemaChecking.cpp | [all...] |
SemaLookup.cpp | [all...] |