Home
last modified time | relevance | path

Searched refs:decls (Results 1 – 25 of 176) sorted by relevance

12345678

/third_party/selinux/libsepol/tests/
Dtest-linker-types.c101 static void test_type_datum(policydb_t * p, const char *id, unsigned int *decls, int len, unsigned … in test_type_datum() argument
117 type = hashtab_search(p->decl_val_to_struct[decls[i] - 1]->p_types.table, id); in test_type_datum()
128 unsigned int decls[2]; in base_type_tests() local
137 decls[0] = (test_find_decl_by_sym(base, SYM_TYPES, "tag_g_b"))->decl_id; in base_type_tests()
138 test_sym_presence(base, "g_b_type_1", SYM_TYPES, SCOPE_DECL, decls, 1); in base_type_tests()
141 test_sym_presence(base, "g_b_attr_1", SYM_TYPES, SCOPE_DECL, decls, 1); in base_type_tests()
146 decls[0] = (test_find_decl_by_sym(base, SYM_TYPES, "tag_o1_b"))->decl_id; in base_type_tests()
147 test_sym_presence(base, "o1_b_type_1", SYM_TYPES, SCOPE_DECL, decls, 1); in base_type_tests()
150 test_sym_presence(base, "o1_b_attr_1", SYM_TYPES, SCOPE_DECL, decls, 1); in base_type_tests()
152 test_attr_types(base, "o1_b_attr_1", base->decl_val_to_struct[decls[0] - 1], types, 1); in base_type_tests()
[all …]
Dtest-linker-roles.c73 unsigned int decls[2]; in base_role_tests() local
80 decls[0] = (test_find_decl_by_sym(base, SYM_TYPES, "tag_g_b"))->decl_id; in base_role_tests()
81 test_sym_presence(base, "g_b_role_1", SYM_ROLES, SCOPE_DECL, decls, 1); in base_role_tests()
90 decls[0] = decl->decl_id; in base_role_tests()
91 test_sym_presence(base, "o1_b_role_1", SYM_ROLES, SCOPE_DECL, decls, 1); in base_role_tests()
103 unsigned int decls[3]; in module_role_tests() local
111 decls[0] = (test_find_decl_by_sym(base, SYM_TYPES, "tag_g_m1"))->decl_id; in module_role_tests()
112 test_sym_presence(base, "g_m1_role_1", SYM_ROLES, SCOPE_DECL, decls, 1); in module_role_tests()
121 decls[0] = decl->decl_id; in module_role_tests()
122 test_sym_presence(base, "o1_m1_role_1", SYM_ROLES, SCOPE_DECL, decls, 1); in module_role_tests()
[all …]
Dtest-linker-cond-map.c91 unsigned int decls[1]; in base_cond_tests() local
99 decls[0] = d->decl_id; in base_cond_tests()
100 test_sym_presence(base, "g_b_bool_1", SYM_BOOLS, SCOPE_DECL, decls, 1); in base_cond_tests()
109 decls[0] = d->decl_id; in base_cond_tests()
110 test_sym_presence(base, "o1_b_bool_1", SYM_BOOLS, SCOPE_DECL, decls, 1); in base_cond_tests()
122 unsigned int decls[1]; in module_cond_tests() local
127 decls[0] = d->decl_id; in module_cond_tests()
128 test_sym_presence(base, "g_m1_bool_1", SYM_BOOLS, SCOPE_DECL, decls, 1); in module_cond_tests()
137 decls[0] = d->decl_id; in module_cond_tests()
138 test_sym_presence(base, "o1_m1_bool_1", SYM_BOOLS, SCOPE_DECL, decls, 1); in module_cond_tests()
[all …]
/third_party/typescript/tests/baselines/reference/
DgenericDefaultsJs.symbols1 === tests/cases/compiler/decls.d.ts ===
3 >f0 : Symbol(f0, Decl(decls.d.ts, 0, 0))
4 >T : Symbol(T, Decl(decls.d.ts, 0, 20))
5 >x : Symbol(x, Decl(decls.d.ts, 0, 23))
6 >T : Symbol(T, Decl(decls.d.ts, 0, 20))
7 >T : Symbol(T, Decl(decls.d.ts, 0, 20))
10 >f1 : Symbol(f1, Decl(decls.d.ts, 0, 33))
11 >T : Symbol(T, Decl(decls.d.ts, 1, 20))
12 >U : Symbol(U, Decl(decls.d.ts, 1, 22))
13 >x : Symbol(x, Decl(decls.d.ts, 1, 35))
[all …]
DambientDeclarationsExternal.symbols2 /// <reference path="decls.ts" />
13 >imp3.x : Symbol(imp3.x, Decl(decls.ts, 7, 7))
15 >x : Symbol(imp3.x, Decl(decls.ts, 7, 7))
20 === tests/cases/conformance/ambient/decls.ts ===
23 >'equ' : Symbol("equ", Decl(decls.ts, 0, 0))
26 >x : Symbol(x, Decl(decls.ts, 2, 7))
29 >x : Symbol(x, Decl(decls.ts, 2, 7))
33 >'equ2' : Symbol("equ2", Decl(decls.ts, 4, 1))
36 >x : Symbol(x, Decl(decls.ts, 7, 7))
DparamTagOnCallExpression.symbols1 === tests/cases/conformance/jsdoc/decls.d.ts ===
3 >factory : Symbol(factory, Decl(decls.d.ts, 0, 0))
4 >type : Symbol(type, Decl(decls.d.ts, 0, 25))
13 >factory : Symbol(factory, Decl(decls.d.ts, 0, 0))
DparamTagOnFunctionUsingArguments.symbols1 === tests/cases/conformance/jsdoc/decls.d.ts ===
3 >factory : Symbol(factory, Decl(decls.d.ts, 0, 0))
4 >type : Symbol(type, Decl(decls.d.ts, 0, 25))
/third_party/skia/third_party/externals/tint/src/ast/
Dmodule_test.cc123 auto& decls = cloned.AST().GlobalDeclarations(); in TEST_F() local
124 ASSERT_EQ(decls.size(), 6u); in TEST_F()
125 EXPECT_TRUE(decls[1]->Is<ast::Function>()); in TEST_F()
126 EXPECT_TRUE(decls[3]->Is<ast::Alias>()); in TEST_F()
127 EXPECT_TRUE(decls[5]->Is<ast::Variable>()); in TEST_F()
129 ASSERT_TRUE(decls[0]->Is<ast::Alias>()); in TEST_F()
130 ASSERT_TRUE(decls[2]->Is<ast::Alias>()); in TEST_F()
131 ASSERT_TRUE(decls[4]->Is<ast::Alias>()); in TEST_F()
133 ASSERT_EQ(cloned.Symbols().NameFor(decls[0]->As<ast::Alias>()->name), in TEST_F()
135 ASSERT_EQ(cloned.Symbols().NameFor(decls[2]->As<ast::Alias>()->name), in TEST_F()
[all …]
/third_party/mesa3d/src/gallium/drivers/svga/
Dsvga_pipe_streamout.c58 const SVGA3dStreamOutputDeclarationEntry decls[SVGA3D_MAX_STREAMOUT_DECLS], in svga_define_stream_output()
71 i, decls[i].outputSlot, decls[i].registerIndex, in svga_define_stream_output()
72 decls[i].registerMask, decls[i].stream); in svga_define_stream_output()
102 memcpy(map, decls, bufSize); in svga_define_stream_output()
120 decls)); in svga_define_stream_output()
136 SVGA3dStreamOutputDeclarationEntry decls[SVGA3D_MAX_STREAMOUT_DECLS]; in svga_create_stream_output() local
179 memset(decls, 0, sizeof(decls)); in svga_create_stream_output()
227 decls[numDecls].outputSlot = buf_idx, in svga_create_stream_output()
228 decls[numDecls].stream = info->output[i].stream; in svga_create_stream_output()
229 decls[numDecls].registerIndex = SVGA3D_INVALID_ID; in svga_create_stream_output()
[all …]
Dsvga_state_vdecl.c46 SVGA3dVertexDecl decls[SVGA3D_INPUTREG_MAX]; in emit_hw_vs_vdecl() local
102 decls[i].identity.type = svga->curr.velems->decl_type[i]; in emit_hw_vs_vdecl()
103 decls[i].identity.method = SVGA3D_DECLMETHOD_DEFAULT; in emit_hw_vs_vdecl()
104 decls[i].identity.usage = usage; in emit_hw_vs_vdecl()
105 decls[i].identity.usageIndex = index; in emit_hw_vs_vdecl()
106 decls[i].array.stride = vb->stride; in emit_hw_vs_vdecl()
111 decls[i].array.offset = (vb->buffer_offset in emit_hw_vs_vdecl()
116 assert(decls[i].array.offset >= 0); in emit_hw_vs_vdecl()
125 decls, in emit_hw_vs_vdecl()
/third_party/mesa3d/src/gallium/frontends/nine/
Dvertexdeclaration9.c195 This->decls = CALLOC(This->nelems+1, sizeof(D3DVERTEXELEMENT9)); in NineVertexDeclaration9_ctor()
198 if (!This->decls || !This->elems || !This->usage_map) { return E_OUTOFMEMORY; } in NineVertexDeclaration9_ctor()
199 memcpy(This->decls, pElements, sizeof(D3DVERTEXELEMENT9)*(This->nelems+1)); in NineVertexDeclaration9_ctor()
202 uint16_t usage = nine_d3d9_to_nine_declusage(This->decls[i].Usage, in NineVertexDeclaration9_ctor()
203 This->decls[i].UsageIndex); in NineVertexDeclaration9_ctor()
206 if (This->decls[i].Usage == D3DDECLUSAGE_POSITIONT) in NineVertexDeclaration9_ctor()
209 This->elems[i].src_offset = This->decls[i].Offset; in NineVertexDeclaration9_ctor()
211 This->elems[i].vertex_buffer_index = This->decls[i].Stream; in NineVertexDeclaration9_ctor()
212 This->elems[i].src_format = decltype_format(This->decls[i].Type); in NineVertexDeclaration9_ctor()
217 This->decls[i].Stream, in NineVertexDeclaration9_ctor()
[all …]
/third_party/python/Tools/c-analyzer/c_analyzer/
D__init__.py29 decls = iter_decls(filenames, **kwargs)
30 yield from analyze_decls(decls, known)
47 def analyze_decls(decls, known, *, argument
59 decls = list(decls)
60 collated = group_by_kinds(decls)
75 for decl in decls:
/third_party/python/Tools/c-analyzer/c_parser/
Ddatafiles.py54 def write_decls(decls, outfile, fmt=None, *, backup=False): argument
58 write_all(decls, outfile, backup=backup)
94 def write_decls_tsv(decls, outfile, extracolumns=None, *, argument
100 decls = (d.fix_filename(relroot, fixroot=False) for d in decls)
102 _write_decls_tsv(decls, outfile, extracolumns, kwargs)
120 def _write_decls_tsv(decls, outfile, extracolumns, kwargs): argument
137 rows=(render_decl(d) for d in decls),
/third_party/typescript/src/services/refactors/
DconvertOverloadListToSingleSignature.ts197 const decls = signatureSymbol.declarations; constant
198 if (length(decls) <= 1) {
201 if (!every(decls, d => getSourceFileOfNode(d) === file)) {
204 if (!isConvertableSignatureDeclaration(decls[0])) {
207 const kindOne = decls[0].kind;
208 if (!every(decls, d => d.kind === kindOne)) {
211 …const signatureDecls = decls as (MethodSignature | MethodDeclaration | CallSignatureDeclaration | …
216 if (length(signatures) !== length(decls)) {
/third_party/rust/crates/bindgen/bindgen-tests/tests/quickchecking/src/
Dfuzzers.rs151 pub decls: Vec<DeclarationC>, field
219 decls: Arbitrary::arbitrary(g), in arbitrary()
228 for decl in &self.decls { in fmt()
401 let mut fields: DeclarationListC = DeclarationListC { decls: vec![] }; in arbitrary()
403 for (i, decl) in decl_list.decls.iter_mut().enumerate() { in arbitrary()
408 fields.decls.push(decl.clone()); in arbitrary()
449 let mut fields: DeclarationListC = DeclarationListC { decls: vec![] }; in arbitrary()
451 for (i, decl) in decl_list.decls.iter_mut().enumerate() { in arbitrary()
456 fields.decls.push(decl.clone()); in arbitrary()
606 for (i, decl) in decl_list.decls.iter_mut().enumerate() { in arbitrary()
[all …]
/third_party/flutter/skia/src/sksl/
DSkSLPipelineStageCodeGenerator.cpp91 const VarDeclarations& decls = (const VarDeclarations&) p; in writeFunctionCall() local
92 for (const auto& raw : decls.fVars) { in writeFunctionCall()
148 const VarDeclarations& decls = (const VarDeclarations&) e; in writeVariableReference() local
149 for (const auto& decl : decls.fVars) { in writeVariableReference()
221 const VarDeclarations& decls = (const VarDeclarations&) p; in writeProgramElement() local
222 if (!decls.fVars.size()) { in writeProgramElement()
225 const Variable& var = *((VarDeclaration&) *decls.fVars[0]).fVar; in writeProgramElement()
DSkSLMetalCodeGenerator.cpp806 VarDeclarations& decls = (VarDeclarations&) e; in writeFunction() local
807 if (!decls.fVars.size()) { in writeFunction()
810 for (const auto& stmt: decls.fVars) { in writeFunction()
1293 VarDeclarations& decls = (VarDeclarations&) e; in writeUniformStruct() local
1294 if (!decls.fVars.size()) { in writeUniformStruct()
1297 const Variable& first = *((VarDeclaration&) *decls.fVars[0]).fVar; in writeUniformStruct()
1304 fErrors.error(decls.fOffset, "Metal uniforms must have 'layout(set=...)'"); in writeUniformStruct()
1308 fErrors.error(decls.fOffset, "Metal backend requires all uniforms to have " in writeUniformStruct()
1315 for (const auto& stmt : decls.fVars) { in writeUniformStruct()
1332 VarDeclarations& decls = (VarDeclarations&) e; in writeInputStruct() local
[all …]
DSkSLCPPCodeGenerator.cpp389 const VarDeclarations& decls = (const VarDeclarations&) p; in getChildFPIndex() local
390 for (const auto& raw : decls.fVars) { in getChildFPIndex()
528 const VarDeclarations& decls = (const VarDeclarations&) p; in writeProgramElement() local
529 if (!decls.fVars.size()) { in writeProgramElement()
532 const Variable& var = *((VarDeclaration&) *decls.fVars[0]).fVar; in writeProgramElement()
584 const VarDeclarations& decls = (const VarDeclarations&) p; in writePrivateVars() local
585 for (const auto& raw : decls.fVars) { in writePrivateVars()
624 const VarDeclarations& decls = (const VarDeclarations&) p; in writePrivateVarValues() local
625 for (const auto& raw : decls.fVars) { in writePrivateVarValues()
850 const VarDeclarations& decls = (const VarDeclarations&) p; in writeEmitCode() local
[all …]
/third_party/benchmark/tools/
Dstrip_asm.py23 decls = set()
28 decls.add(m.group(0))
29 if len(decls) == 0:
31 needs_dot = next(iter(decls))[0] != '.'
34 for ld in decls:
/third_party/flutter/skia/third_party/externals/angle2/scripts/
Dgenerate_entry_points.py906 decls = []
926 decls.append(
943 …return decls, defs, export_defs, validation_protos, capture_protos, capture_methods, capture_point…
948 decls = []
965 decls.append(
968 return decls
1046 def write_context_api_decls(template, decls, api): argument
1047 for ver in decls['core'].keys():
1050 for i in decls['core'][ver]:
1071 if 'exts' in decls.keys():
[all …]
/third_party/vk-gl-cts/external/vulkancts/modules_no_buildgn/vulkan/robustness/
DvktRobustnessExtsTests.cpp998 std::stringstream decls, checks; in initPrograms() local
1005 decls << "uvec4 abs(uvec4 x) { return x; }\n"; in initPrograms()
1007 decls << "u64vec4 abs(u64vec4 x) { return x; }\n"; in initPrograms()
1008 decls << "int smod(int a, int b) { if (a < 0) a += b*(abs(a)/b+1); return a%b; }\n"; in initPrograms()
1025 decls << "float refData[" << refDataNumElements << "] = {"; in initPrograms()
1030 decls << ", "; in initPrograms()
1031 decls << ((const float *)layout.refData.data())[i]; in initPrograms()
1036 decls << ", "; in initPrograms()
1037 decls << "0"; in initPrograms()
1043 decls << "int" << i64Type << " refData[" << refDataNumElements << "] = {"; in initPrograms()
[all …]
/third_party/vk-gl-cts/external/vulkancts/modules/vulkan/robustness/
DvktRobustnessExtsTests.cpp998 std::stringstream decls, checks; in initPrograms() local
1005 decls << "uvec4 abs(uvec4 x) { return x; }\n"; in initPrograms()
1007 decls << "u64vec4 abs(u64vec4 x) { return x; }\n"; in initPrograms()
1008 decls << "int smod(int a, int b) { if (a < 0) a += b*(abs(a)/b+1); return a%b; }\n"; in initPrograms()
1025 decls << "float refData[" << refDataNumElements << "] = {"; in initPrograms()
1030 decls << ", "; in initPrograms()
1031 decls << ((const float *)layout.refData.data())[i]; in initPrograms()
1036 decls << ", "; in initPrograms()
1037 decls << "0"; in initPrograms()
1043 decls << "int" << i64Type << " refData[" << refDataNumElements << "] = {"; in initPrograms()
[all …]
/third_party/mesa3d/src/compiler/glsl/tests/
Dsexps.py95 decls = []
99 decls.append(s)
102 return sorted(decls) + other_code
/third_party/mesa3d/src/gallium/drivers/svga/svgadump/
Dsvga_dump.py165 def dump_struct(decls, class_): argument
321 decls = parser.parse(headers, config, parser.COMPILATION_MODE.ALL_AT_ONCE)
322 global_ns = declarations.get_global_namespace(decls)
333 dump_struct(decls, class_)
/third_party/python/Tools/c-analyzer/cpython/
D_analyzer.py82 datafiles.write_known(decls, IGNORED_FILE, ['unsupported'], relroot=REPO_ROOT)
106 decls = iter_decls(filenames)
108 decls,
118 decls = _c_analyzer.iter_decls(
125 for decl in decls:

12345678