Home
last modified time | relevance | path

Searched refs:enum (Results 1 – 25 of 723) sorted by relevance

12345678910>>...29

/external/deqp/scripts/opengl/
Dgen_call_log_wrapper.py32 def enum (group): function
58 "glBeginQuery": LogSpec({0: enum("QueryTarget")}),
59 "glBeginTransformFeedback": LogSpec({0: enum("PrimitiveType")}),
60 "glBindBuffer": LogSpec({0: enum("BufferTarget")}),
61 "glBindBufferBase": LogSpec({0: enum("BufferTarget")}),
62 "glBindBufferRange": LogSpec({0: enum("BufferTarget")}),
63 "glBindFramebuffer": LogSpec({0: enum("FramebufferTarget")}),
64 "glBindRenderbuffer": LogSpec({0: enum("FramebufferTarget")}),
65 "glBindTexture": LogSpec({0: enum("TextureTarget")}),
66 "glBindTransformFeedback": LogSpec({0: enum("TransformFeedbackTarget")}),
[all …]
/external/clang/test/Index/
Dcomplete-type-factors.m3 enum Color {
7 enum Priority {
12 int func1(enum Color);
13 enum Priority func2(int);
15 enum Priority test1(enum Priority priority, enum Color color, int integer) {
17 enum Color c = color;
20 void (^block)(enum Color, int);
26 + (void)method:(enum Color)color priority:(enum Priority)priority;
27 - (void)method:(enum Color)color priority:(enum Priority)priority;
36 // CHECK-CC1: EnumConstantDecl:{ResultType enum Color}{TypedText Blue} (32)
[all …]
/external/clang/test/ARCMT/
Dobjcmt-ns-macros.m18 #define NS_ENUM(_type, _name) enum _name : _type _name; enum _name : _type
19 #define NS_OPTIONS(_type, _name) enum _name : _type _name; enum _name : _type
22 enum {
28 enum {
39 typedef enum {
47 typedef enum {
57 enum {
65 typedef enum {
72 enum {
78 enum {
[all …]
/external/libmojo/mojo/public/tools/bindings/generators/cpp_templates/
Denum_macros.tmpl2 Macro for enum definition, and the declaration of associated functions.
4 {%- macro enum_decl(enum) %}
5 enum class {{enum.name}} : int32_t {
6 {%- for field in enum.fields %}
16 {%- macro enum_data_decl(enum) %}
17 struct {{enum.name}}_Data {
19 static bool const kIsExtensible = {% if enum.extensible %}true{% else %}false{% endif %};
22 {%- if enum.fields %}
24 {%- for enum_field in enum.fields|groupby('numeric_value') %}
45 {#--- macros for enum-associated functions. Namely:
[all …]
Dmodule.h.tmpl91 {%- for enum in enums %}
92 {%- if enum|is_native_only_kind %}
93 using {{enum.name}} = mojo::NativeEnum;
95 {{enum_decl(enum)}}
96 {{enum_stream_operator(enum)}}
97 {{is_known_enum_value(enum)}}
104 {%- for enum in enums %}
105 {%- if not enum|is_native_only_kind %}
106 {{enum_hash(enum)}}
174 {%- for enum in interface.enums %}
[all …]
/external/deqp/external/vulkancts/framework/vulkan/
DvkBasicTypes.inl55 enum VkPipelineCacheHeaderVersion
60 enum VkResult
91 enum VkStructureType
231 enum VkSystemAllocationScope
242 enum VkInternalAllocationType
249 enum VkFormat
472 enum VkImageType
481 enum VkImageTiling
489 enum VkPhysicalDeviceType
500 enum VkQueryType
[all …]
/external/vulkan-validation-layers/layers/
Dspec.py180 for enum in sorted(self.val_error_dict):
182 enum_decl.append(' %s = %d,' % (enum, int(enum.split('_')[-1])))
183 … error_string_map.append(' {%s, "%s"},' % (enum, self.val_error_dict[enum]['error_msg']))
184 …enum_decl.append(' %sMAX_ENUM = %d,' % (validation_error_enum_name, int(enum.split('_')[-1]) + …
200 for enum in self.val_error_dict:
201 err_str = self.val_error_dict[enum]['error_msg']
229 for enum in sorted(self.val_error_dict):
235 if enum in self.error_db_dict:
236 implemented = self.error_db_dict[enum]['check_implemented']
237 testname = self.error_db_dict[enum]['testname']
[all …]
/external/swiftshader/third_party/llvm-subzero/build/Linux/include/llvm/IR/
DAttributes.gen148 static enum Attribute::AttrKind getKind() {
153 static enum Attribute::AttrKind getKind() {
158 static enum Attribute::AttrKind getKind() {
163 static enum Attribute::AttrKind getKind() {
168 static enum Attribute::AttrKind getKind() {
173 static enum Attribute::AttrKind getKind() {
178 static enum Attribute::AttrKind getKind() {
183 static enum Attribute::AttrKind getKind() {
188 static enum Attribute::AttrKind getKind() {
193 static enum Attribute::AttrKind getKind() {
[all …]
/external/swiftshader/third_party/llvm-subzero/build/Windows/include/llvm/IR/
DAttributes.gen148 static enum Attribute::AttrKind getKind() {
153 static enum Attribute::AttrKind getKind() {
158 static enum Attribute::AttrKind getKind() {
163 static enum Attribute::AttrKind getKind() {
168 static enum Attribute::AttrKind getKind() {
173 static enum Attribute::AttrKind getKind() {
178 static enum Attribute::AttrKind getKind() {
183 static enum Attribute::AttrKind getKind() {
188 static enum Attribute::AttrKind getKind() {
193 static enum Attribute::AttrKind getKind() {
[all …]
/external/swiftshader/third_party/llvm-subzero/build/Android/include/llvm/IR/
DAttributes.gen148 static enum Attribute::AttrKind getKind() {
153 static enum Attribute::AttrKind getKind() {
158 static enum Attribute::AttrKind getKind() {
163 static enum Attribute::AttrKind getKind() {
168 static enum Attribute::AttrKind getKind() {
173 static enum Attribute::AttrKind getKind() {
178 static enum Attribute::AttrKind getKind() {
183 static enum Attribute::AttrKind getKind() {
188 static enum Attribute::AttrKind getKind() {
193 static enum Attribute::AttrKind getKind() {
[all …]
/external/swiftshader/third_party/llvm-subzero/build/MacOS/include/llvm/IR/
DAttributes.gen148 static enum Attribute::AttrKind getKind() {
153 static enum Attribute::AttrKind getKind() {
158 static enum Attribute::AttrKind getKind() {
163 static enum Attribute::AttrKind getKind() {
168 static enum Attribute::AttrKind getKind() {
173 static enum Attribute::AttrKind getKind() {
178 static enum Attribute::AttrKind getKind() {
183 static enum Attribute::AttrKind getKind() {
188 static enum Attribute::AttrKind getKind() {
193 static enum Attribute::AttrKind getKind() {
[all …]
/external/swiftshader/third_party/llvm-subzero/include/llvm/IR/
DAttributes.inc148 static enum Attribute::AttrKind getKind() {
153 static enum Attribute::AttrKind getKind() {
158 static enum Attribute::AttrKind getKind() {
163 static enum Attribute::AttrKind getKind() {
168 static enum Attribute::AttrKind getKind() {
173 static enum Attribute::AttrKind getKind() {
178 static enum Attribute::AttrKind getKind() {
183 static enum Attribute::AttrKind getKind() {
188 static enum Attribute::AttrKind getKind() {
193 static enum Attribute::AttrKind getKind() {
[all …]
/external/libmojo/mojo/public/tools/bindings/generators/java_templates/
Denum_definition.tmpl1 {%- macro enum_value(enum, field, index) -%}
7 {{enum.fields[index - 1]|name}} + 1
11 {%- macro enum_def(enum, top_level) -%}
12 public {{ 'static ' if not top_level }}final class {{enum|name}} {
14 {% for field in enum.fields %}
15 public static final int {{field|name}} = {{enum_value(enum, field, loop.index0)}};
18 …private static final boolean IS_EXTENSIBLE = {% if enum.extensible %}true{% else %}false{% endif %…
21 {%- if enum.fields %}
23 {%- for enum_field in enum.fields|groupby('numeric_value') %}
36 throw new DeserializationException("Invalid enum value.");
[all …]
/external/clang/test/SemaObjC/
Denum-fixed-type.m9 typedef enum : Integer { Enumerator1, Enumerator2 } Enumeration;
14 enum Color { Red, Green, Blue };
17 enum Color : 4;
18 enum Color field1: 4;
19 enum Other : Integer field2;
20 enum Other : Integer field3 : 4;
21 enum : Integer { Blah, Blarg } field4 : 4;
30 typedef enum : long { Foo } IntegerEnum;
36 typedef enum : long long { Bar = -1 } LongLongEnum;
39 typedef enum : Integer { BaseElem } BaseEnum;
[all …]
Dblocks.m77 // In C, enum constants have the type of the underlying integer type, not the
78 // enumeration they are part of. We pretend the constants have enum type if
80 enum CStyleEnum {
84 enum CStyleEnum getCSE();
85 typedef enum CStyleEnum (^cse_block_t)();
89 enum CStyleEnum value;
95 …a = ^{ // expected-error {{incompatible block pointer types assigning to 'cse_block_t' (aka 'enum
110 …a = ^{ // expected-error {{incompatible block pointer types assigning to 'cse_block_t' (aka 'enum
117 …a = ^{ // expected-error {{incompatible block pointer types assigning to 'cse_block_t' (aka 'enum
124 …a = ^{ // expected-error {{incompatible block pointer types assigning to 'cse_block_t' (aka 'enum
[all …]
/external/libmojo/mojo/public/tools/bindings/pylib/mojom/generate/
Dconstant_resolver.py18 named_value.enum.fields), None)
22 (named_value.name, named_value.enum.name))
24 ResolveEnum(named_value.enum)
45 def ResolveEnum(enum): argument
46 def ResolveEnumField(enum, field, default_value): argument
50 raise RuntimeError('Circular dependency for enum: %s' % enum.name)
66 for field in enum.fields:
67 ResolveEnumField(enum, field, current_value)
73 for enum in module.enums:
74 ResolveEnum(enum)
[all …]
Ddata.py220 struct.enums = map(lambda enum:
221 EnumFromData(module, enum, struct), data['enums'])
351 interface.enums = map(lambda enum:
352 EnumFromData(module, enum, interface), data['enums'])
360 def EnumFieldFromData(module, enum, data, parent_kind): argument
369 module, data.get('value'), (module.namespace, parent_kind.name), enum)
372 module, data.get('value'), (module.namespace, ), enum)
374 value = mojom.EnumValue(module, enum, field)
406 enum = mojom.Enum(module=module)
407 enum.name = data['name']
[all …]
/external/clang/test/Rewriter/
Drewrite-modern-ivars-1.mm28 enum {
32 enum e {
39 enum e E2;
69 enum {
75 enum e E2;
90 enum OUTSIDE {
96 enum INSIDE {
100 enum OUTSIDE meetoo;
102 enum {
110 enum INSIDE I1;
[all …]
/external/python/cpython2/Lib/test/
Dtest_enumerate.py66 enum = enumerate variable in EnumerateTestCase
70 self.assertEqual(type(self.enum(self.seq)), self.enum)
71 e = self.enum(self.seq)
73 self.assertEqual(list(self.enum(self.seq)), self.res)
74 self.enum.__doc__
77 self.assertEqual(list(self.enum(G(self.seq))), self.res)
78 e = self.enum(G(''))
82 self.assertEqual(list(self.enum(I(self.seq))), self.res)
83 e = self.enum(I(''))
87 self.assertEqual(list(self.enum(Ig(self.seq))), self.res)
[all …]
/external/mesa3d/src/mapi/glapi/gen/
Dgl_enums.py168 for enum in sorted_enum_values:
169 (name, pri) = self.enum_table[enum]
175 string_offsets[ enum ] = i
184 for enum in sorted_enum_values:
185 (name, pri) = self.enum_table[enum]
186 print ' { %5u, 0x%08X }, /* %s */' % (string_offsets[enum], enum, name)
230 for enum in extension.findall('require/enum'):
231 self.add_enum_provider(enum.get('name'), extension_prio)
236 for enum in xml.findall('enums/enum'):
237 name = enum.get('name')
[all …]
/external/deqp/scripts/egl/
Denums.py42 def enumValue (enum, typePrefix = ""): argument
43 if enum.name in TYPED_VALUES:
45 n,v = enum.value.split(",", 1)
50 return normalizeConstant(enum.value)
52 def enumDefinition (enum): argument
53 return "#define %s\t%s" % (enum.name, enumValue(enum, "eglw::"))
Dcall_log_wrapper.py35 def enum (group): function
49 "eglBindAPI": LogSpec({0: enum("API")}),
55 "eglGetError": LogSpec({}, returnPrint = enum("Error")),
56 …"eglGetConfigAttrib": LogSpec({2: enum("ConfigAttrib")}, argOutPrints = {3: lambda n: "getConfigA…
57 "eglGetCurrentSurface": LogSpec({0: enum("SurfaceTarget")}),
59 "eglQueryAPI": LogSpec({}, returnPrint = enum("API")),
60 …"eglQueryContext": LogSpec({2: enum("ContextAttrib")}, argOutPrints = {3: lambda n: "getContextA…
61 …"eglQuerySurface": LogSpec({2: enum("SurfaceAttrib")}, argOutPrints = {3: lambda n: "getSurfaceA…
62 …"eglSurfaceAttrib": LogSpec({2: enum("SurfaceAttrib"), 3: lambda n: "getSurfaceAttribValueStr(at…
/external/libmojo/mojo/public/interfaces/bindings/tests/
Dvalidation_test_interfaces.mojom47 enum EnumA {
53 enum EnumB {
97 // An enum generates a enum-value validation function, so we want to test it.
98 // E.g., valid enum values for this enum should be: -3, 0, 1, 10
99 enum BasicEnum {
107 // The enum validation function should be generated within the scope of this
110 enum EnumWithin {
/external/antlr/antlr-3.4/runtime/ObjC/Framework/examples/hoistedPredicates/
DT.g3 * how predicates can be used to distinguish between enum as a keyword and
16 /* With this true, enum is seen as a keyword. False, it's an identifier */
24 stat: identifier {NSLog(@"enum is an ID");}
25 | enumAsKeyword {NSLog(@"enum is a keyword");}
33 enumAsKeyword : {enableEnum}? 'enum' ;
35 enumAsID : {!enableEnum}? 'enum' ;
/external/clang/bindings/python/tests/cindex/
Dtest_cursor.py293 enum = get_cursor(tu, 'TEST')
294 assert enum is not None
296 assert enum.kind == CursorKind.ENUM_DECL
297 enum_type = enum.enum_type
302 enum = get_cursor(tu, 'TEST')
303 assert enum is not None
305 assert enum.kind == CursorKind.ENUM_DECL
306 assert enum.enum_type.kind == TypeKind.LONGLONG
317 enum = get_cursor(tu, 'TEST')
318 assert enum is not None
[all …]

12345678910>>...29