Home
last modified time | relevance | path

Searched +full:array +full:- +full:union (Results 1 – 25 of 1138) sorted by relevance

12345678910>>...46

/external/clang/test/SemaCXX/
Dgnu-flags.cpp1 // RUN: %clang_cc1 -fsyntax-only -verify %s -DNONE -Wno-gnu
2 // RUN: %clang_cc1 -fsyntax-only -verify -std=c++98 %s -DNONE -Wno-gnu
3 // RUN: %clang_cc1 -fsyntax-only -verify -std=c++11 %s -DNONE -Wno-gnu
5 // RUN: %clang_cc1 -fsyntax-only -verify %s -DALL -Wgnu
6 // RUN: %clang_cc1 -fsyntax-only -verify -std=c++98 %s -DALL -Wgnu
7 // RUN: %clang_cc1 -fsyntax-only -verify -std=c++11 %s -DALL -Wgnu
9 // RUN: %clang_cc1 -fsyntax-only -verify %s -DALL -Wno-gnu \
10 // RUN: -Wgnu-anonymous-struct -Wredeclared-class-member \
11 // RUN: -Wgnu-flexible-array-union-member -Wgnu-folding-constant \
12 // RUN: -Wgnu-empty-struct
[all …]
/external/wayland/src/
Dwayland-util.c2 * Copyright © 2008-2011 Kristian Høgsberg
34 #include "wayland-util.h"
35 #include "wayland-private.h"
40 list->prev = list; in wl_list_init()
41 list->next = list; in wl_list_init()
47 elm->prev = list; in wl_list_insert()
48 elm->next = list->next; in wl_list_insert()
49 list->next = elm; in wl_list_insert()
50 elm->next->prev = elm; in wl_list_insert()
56 elm->prev->next = elm->next; in wl_list_remove()
[all …]
/external/libchrome/mojo/public/interfaces/bindings/tests/
Dtest_unions.mojom2 // Use of this source code is governed by a BSD-style license that can be
18 union PodUnion {
35 union ObjectUnion {
40 array<int8> f_array_int8;
44 array<SmallStruct> f_small_structs;
47 union HandleUnion {
70 array<PodUnion>? pod_union_array;
71 array<PodUnion?>? nullable_pod_union_array;
72 array<DummyStruct>? s_array;
100 union OldUnion {
[all …]
/external/libchrome/mojo/public/tools/bindings/pylib/mojom_tests/generate/
Ddata_unittest.py2 # Use of this source code is governed by a BSD-style license that can be
48 """Tests that a union can be converted from data."""
56 union = data.UnionFromData(module, union_data)
57 union.fields = map(lambda field:
58 data.UnionFieldFromData(module, field, union), union.fields_data)
59 self.assertEquals(union_data, data.UnionToData(union))
74 union = mojom.Union('TestUnion', module=module)
75 imported_module.kinds[union.spec] = union
89 self.assertIn(union.spec, module.kinds)
90 self.assertEquals(union.name, module.kinds[union.spec].name)
[all …]
/external/swiftshader/third_party/llvm-10.0/llvm/include/llvm/CodeGen/
DLiveIntervalUnion.h1 //===- LiveIntervalUnion.h - Live interval union data struct ---*- C++ -*--===//
5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
7 //===----------------------------------------------------------------------===//
9 // LiveIntervalUnion is a union of live segments across multiple live virtual
14 //===----------------------------------------------------------------------===//
38 /// Union of live intervals that are strong candidates for coalescing into a
41 /// eventually make exceptions to handle value-based interference.
62 LiveSegments Segments; // union of virtual reg segments
67 // Iterate over all segments in the union of live virtual registers ordered
84 /// getTag - Return an opaque tag representing the current state of the union.
[all …]
/external/swiftshader/third_party/llvm-16.0/llvm/include/llvm/CodeGen/
DLiveIntervalUnion.h1 //===- LiveIntervalUnion.h - Live interval union data struct ---*- C++ -*--===//
5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
7 //===----------------------------------------------------------------------===//
9 // LiveIntervalUnion is a union of live segments across multiple live virtual
14 //===----------------------------------------------------------------------===//
38 /// Union of live intervals that are strong candidates for coalescing into a
41 /// eventually make exceptions to handle value-based interference.
62 LiveSegments Segments; // union of virtual reg segments
67 // Iterate over all segments in the union of live virtual registers ordered
84 /// getTag - Return an opaque tag representing the current state of the union.
[all …]
/external/llvm/include/llvm/CodeGen/
DLiveIntervalUnion.h1 //===-- LiveIntervalUnion.h - Live interval union data struct --*- C++ -*--===//
8 //===----------------------------------------------------------------------===//
10 // LiveIntervalUnion is a union of live segments across multiple live virtual
15 //===----------------------------------------------------------------------===//
40 /// Union of live intervals that are strong candidates for coalescing into a
43 /// eventually make exceptions to handle value-based interference.
63 LiveSegments Segments; // union of virtual reg segments
68 // Iterate over all segments in the union of live virtual registers ordered
80 /// getTag - Return an opaque tag representing the current state of the union.
83 /// changedSince - Return true if the union change since getTag returned tag.
[all …]
/external/clang/test/Sema/
Dgnu-flags.c1 // RUN: %clang_cc1 -fsyntax-only -verify %s -DNONE -Wno-gnu
2 // RUN: %clang_cc1 -fsyntax-only -verify %s -DALL -Wgnu
3 // RUN: %clang_cc1 -fsyntax-only -verify %s -DALL -Wno-gnu \
4 // RUN: -Wgnu-alignof-expression -Wgnu-case-range -Wgnu-complex-integer -Wgnu-conditional-omitted
5 // RUN: -Wgnu-empty-initializer -Wgnu-label-as-value -Wgnu-statement-expression \
6 // RUN: -Wgnu-compound-literal-initializer -Wgnu-flexible-array-initializer \
7 // RUN: -Wgnu-redeclared-enum -Wgnu-folding-constant -Wgnu-empty-struct \
8 // RUN: -Wgnu-union-cast -Wgnu-variable-sized-type-not-at-end
9 // RUN: %clang_cc1 -fsyntax-only -verify %s -DNONE -Wgnu \
10 // RUN: -Wno-gnu-alignof-expression -Wno-gnu-case-range -Wno-gnu-complex-integer -Wno-gnu-conditi…
[all …]
Ddesignated-initializers.c1 // RUN: %clang_cc1 -fsyntax-only -verify -triple x86_64-unknown-unknown %s
5 int complete_array_from_init_check[((sizeof(complete_array_from_init) / sizeof(int)) == 13)? 1 : -1…
11 [ 8 ... 7 ] = 4, // expected-error{{array designator range [8, 7] is empty}}
13 [-1] = 6 // expected-error{{array designator value '-1' is negative}}
17 [10] = 1, // expected-error{{array designator index (10) exceeds array bounds (10)}}
21 [3] 2, // expected-warning{{use of GNU 'missing =' extension in designator}}
22 [5 ... 12] = 2 // expected-error{{array designator index (12) exceeds array bounds (10)}}
32 x: 2.0, // expected-warning{{}}
33 ….a = 4.0, // expected-error{{field designator 'a' does not refer to any field in type 'struct poin…
37 [1] = 1.0 // expected-error{{array designator cannot initialize non-array type}}
[all …]
/external/ethtool/uapi/linux/
Dstddef.h1 /* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */
12 * __struct_group() - Create a mirrored named and anonyomous struct
14 * @TAG: The tag name for the named sub-struct (usually empty)
15 * @NAME: The identifier name of the mirrored sub-struct
19 * Used to create an anonymous union of two structs with identical layout
21 * normally without sub-struct naming, and the latter can be used to
27 union { \
33 * __DECLARE_FLEX_ARRAY() - Declare a flexible array usable in a union
35 * @TYPE: The type of each flexible array element
36 * @NAME: The name of the flexible array member
[all …]
/external/libnl/include/linux-private/linux/
Dstddef.h1 /* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */
12 * __struct_group() - Create a mirrored named and anonyomous struct
14 * @TAG: The tag name for the named sub-struct (usually empty)
15 * @NAME: The identifier name of the mirrored sub-struct
19 * Used to create an anonymous union of two structs with identical layout
21 * normally without sub-struct naming, and the latter can be used to
27 union { \
33 * __DECLARE_FLEX_ARRAY() - Declare a flexible array usable in a union
35 * @TYPE: The type of each flexible array element
36 * @NAME: The name of the flexible array member
[all …]
/external/kernel-headers/original/uapi/linux/
Dstddef.h1 /* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */
12 * __struct_group() - Create a mirrored named and anonyomous struct
14 * @TAG: The tag name for the named sub-struct (usually empty)
15 * @NAME: The identifier name of the mirrored sub-struct
19 * Used to create an anonymous union of two structs with identical layout
21 * normally without sub-struct naming, and the latter can be used to
27 union { \
38 * __DECLARE_FLEX_ARRAY() - Declare a flexible array usable in a union
40 * @TYPE: The type of each flexible array element
41 * @NAME: The name of the flexible array member
[all …]
/external/clang/test/CXX/special/class.ctor/
Dp5-0x.cpp1 // RUN: %clang_cc1 -fsyntax-only -verify %s -std=c++11
5 struct DeletedDefCtor { DeletedDefCtor() = delete; DeletedDefCtor(int); }; // expected-note {{expli…
7 struct DeletedDtor { ~DeletedDtor() = delete; }; // expected-note 4{{explicitly marked deleted here…
22 // - X is a union-like class that has a variant member with a non-trivial
24 union Deleted1a { UserProvidedDefCtor u; }; // expected-note {{default constructor of 'Deleted1a' i…
25 Deleted1a d1a; // expected-error {{implicitly-deleted default constructor}}
26 union NotDeleted1a { DefaultedDefCtor1 nu; };
28 union NotDeleted1b { DefaultedDefCtor2 nu; };
31 // - any non-static data member with no brace-or-equal-initializer is of
34 Deleted2a() = default; // expected-note 4{{implicitly deleted here}}
[all …]
/external/linux-kselftest/tools/testing/selftests/bpf/progs/
Dcore_reloc_types.h31 /* we have test_progs[-flavor], so cut flavor part */
60 union core_reloc_nesting_subunion {
65 union {
69 union core_reloc_nesting_subunion b;
73 /* inlined anonymous struct/union instead of named structs in original */
76 union {
82 union {
93 union {
99 union {
101 union {
[all …]
/external/swiftshader/third_party/llvm-subzero/include/llvm/Support/
DAlignOf.h1 //===--- AlignOf.h - Portable calculation of type alignment -----*- C++ -*-===//
8 //===----------------------------------------------------------------------===//
12 //===----------------------------------------------------------------------===//
23 /// \brief Helper for building an aligned character array type.
26 /// character array types. We have to build these up using a macro and explicit
48 // a member of a by-value function argument in MSVC, even if the alignment
49 // request is something reasonably like 8-byte or 16-byte. Note that we can't
50 // even include the declspec with the union that forces the alignment because
51 // MSVC warns on the existence of the declspec despite the union member forcing
56 union {
[all …]
/external/libchrome/mojo/public/tools/bindings/pylib/mojom_tests/parse/
Dparser_unittest.py2 # Use of this source code is governed by a BSD-style license that can be
47 """Tests a .mojom source with CR-LFs instead of LFs."""
74 // Isolated C++-style comments.
85 // Consecutive C++-style comments.
102 /* Single-line C-style comments. */
114 /* Multi-line C-style comments.
256 # Another similar case, but make sure that line-number tracking/reporting
335 VALUE1 = -1,
339 VALUE5 = -0x09bcd,
355 ast.EnumValueList([ast.EnumValue('VALUE1', None, '-1'),
[all …]
/external/openscreen/tools/cddl/
DREADME.md42 An array of heterogeneous (or indeed a fixed number of homogeneous types) such
57 In the array case, the field keys are only used as variable names and no strings
61 automatic naming scheme, all array fields must have a key. For example, CDDL
73 An array of unspecified length containing only one type:
77 is translated to a `std::vector`. In this case, a key for the single array
79 (e.g. `x = [2*5 uint]`) on the array length.
84 array), it can be included directly in another map, array, or group type. So
100 should make it a map or array. For example,
150 constants are global and not type-checked. This leads to a global definition
162 // union: enum X
[all …]
/external/compiler-rt/test/esan/TestCases/
Dstruct-simple.cpp1 // RUN: %clang_esan_frag -O0 %s -DPART1 -mllvm -esan-aux-field-info=0 -c -o %t-part1.o 2>&1
2 // RUN: %clang_esan_frag -O0 %s -DPART2 -c -o %t-part2.o 2>&1
3 // RUN: %clang_esan_frag -O0 %s -DMAIN -c -o %t-main.o 2>&1
4 // RUN: %clang_esan_frag -O0 %t-part1.o %t-part2.o %t-main.o -o %t 2>&1
18 //===-- compilation unit part1 without main function ----------------------===//
31 union U {
57 union U u; in part1()
75 //===-- compilation unit part2 without main function ----------------------===//
84 //===-- compilation unit with main function -------------------------------===//
93 union {
[all …]
/external/rust/crates/pdl-compiler/scripts/pdl/
Dcore.py7 # https://www.apache.org/licenses/LICENSE-2.0
15 from typing import Optional, List, Dict, Union, Tuple, Set
19 def desugar_field_(field: Field, previous: Field, constraints: Dict[str, Constraint]) -> List[Field…
68 fields.extend(desugar_field_(f, fields[-1] if len(fields) > 0 else None, {}))
86 def make_reserved_field(width: int) -> ReservedField:
91 def get_packet_field(packet: Union[PacketDeclaration, StructDeclaration], id: str) -> Optional[Fiel…
108 def get_packet_fields(decl: Union[PacketDeclaration, StructDeclaration]) -> List[Field]:
118 def get_packet_shift(packet: Union[PacketDeclaration, StructDeclaration]) -> int:
157 … decl: Union[PacketDeclaration, StructDeclaration]) -> Union[PacketDeclaration, StructDeclaration]:
166 decl: Union[PacketDeclaration, StructDeclaration],
[all …]
/external/llvm/test/Transforms/SafeStack/
Dconstant-geps.ll1 ; RUN: opt -safe-stack -S -mtriple=i386-pc-linux-gnu < %s -o - | FileCheck %s
2 ; RUN: opt -safe-stack -S -mtriple=x86_64-pc-linux-gnu < %s -o - | FileCheck %s
4 %struct.deep = type { %union.anon }
5 %union.anon = type { %struct.anon }
7 %struct.anon.0 = type { %union.anon.1 }
8 %union.anon.1 = type { [2 x i8] }
15 ; CHECK-LABEL: @foo(
18 ; CHECK-NOT: __safestack_unsafe_stack_ptr
21 %c = bitcast %union.anon* %b to %struct.anon*
24 %array = bitcast %union.anon.1* %e to [2 x i8]*
[all …]
/external/clang/test/CodeGen/
D2007-04-05-PadBeforeZeroLengthField.c1 // RUN: %clang_cc1 %s -emit-llvm -o -
3 union A { struct c__ c; } __attribute__((aligned(8)));
6 union A objects[];
8 void foo(union A * objects, struct B *array, unsigned long k) in foo() argument
9 { array->objects[k] = objects[k]; } in foo()
/external/cronet/third_party/libc++/src/test/std/utilities/meta/meta.unary/meta.unary.comp/
Dis_bounded_array.pass.cpp1 //===----------------------------------------------------------------------===//
5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
7 //===----------------------------------------------------------------------===//
13 // T is an array type of known bound ([dcl.array])
38 union Union {}; union
50 // Non-array types in main()
59 test_array<Union, false>(); in main()
64 // Array types in main()
Dis_unbounded_array.pass.cpp1 //===----------------------------------------------------------------------===//
5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
7 //===----------------------------------------------------------------------===//
13 // T is an array type of unknown bound ([dcl.array])
38 union Union {}; union
50 // Non-array types in main()
59 test_array<Union, false>(); in main()
64 // Array types in main()
/external/swiftshader/third_party/llvm-10.0/llvm/include/llvm/BinaryFormat/
DMsgPackReader.h1 //===- MsgPackReader.h - Simple MsgPack reader ------------------*- C++ -*-===//
5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
7 //===----------------------------------------------------------------------===//
31 //===----------------------------------------------------------------------===//
47 /// The types map onto corresponding union members of the \c Object struct.
56 Array, enumerator
61 /// Extension types are composed of a user-defined type ID and an uninterpreted
64 /// User-defined extension type.
70 /// MessagePack object, represented as a tagged union of C++ types.
73 /// completely represented by the \c Kind itself) map to a exactly one union
[all …]
/external/swiftshader/third_party/llvm-16.0/llvm/include/llvm/BinaryFormat/
DMsgPackReader.h1 //===- MsgPackReader.h - Simple MsgPack reader ------------------*- C++ -*-===//
5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
7 //===----------------------------------------------------------------------===//
31 //===----------------------------------------------------------------------===//
47 /// The types map onto corresponding union members of the \c Object struct.
56 Array, enumerator
62 /// Extension types are composed of a user-defined type ID and an uninterpreted
65 /// User-defined extension type.
71 /// MessagePack object, represented as a tagged union of C++ types.
74 /// completely represented by the \c Kind itself) map to a exactly one union
[all …]

12345678910>>...46