Home
last modified time | relevance | path

Searched refs:decl (Results 1 - 25 of 498) sorted by relevance

12345678910>>...20

/third_party/python/Tools/c-analyzer/c_analyzer/
H A Danalyze.py23 for decl in typedecls:
24 if decl.shortkey not in typespecs:
25 typespecs[decl.shortkey] = [decl]
27 typespecs[decl.shortkey].append(decl)
31 def analyze_decl(decl, typespecs, knowntypespecs, types, knowntypes, *,
33 resolved = resolve_decl(decl, typespecs, knowntypespecs, types)
35 # The decl is supposed to be skipped or ignored.
39 return analyze_resolved(resolved, decl, type
[all...]
H A Dmatch.py51 # decl matchers
53 def is_public(decl):
54 if not decl.filename.endswith('.h'):
56 if 'Include' not in decl.filename.split(os.path.sep):
107 def is_public_api(decl):
108 if not is_public(decl):
110 if decl.kind is _KIND.TYPEDEF:
112 elif _match.is_type_decl(decl):
113 return not _match.is_forward_decl(decl)
115 return _match.is_external_reference(decl)
[all...]
H A D__init__.py62 types = {decl: None for decl in collated['type']}
65 def analyze_decl(decl):
67 decl,
75 for decl in decls:
76 if decl in types:
77 resolved = types[decl]
79 resolved = analyze_decl(decl)
84 raise NotImplementedError((decl, resolved))
86 yield decl, resolve
[all...]
/third_party/node/deps/v8/src/torque/
H A Ddeclaration-visitor.h32 static void Predeclare(Declaration* decl);
33 static void Predeclare(NamespaceDeclaration* decl) { in Predeclare() argument
34 CurrentScope::Scope current_scope(GetOrCreateNamespace(decl->name)); in Predeclare()
35 for (Declaration* child : decl->declarations) Predeclare(child); in Predeclare()
37 static void Predeclare(TypeDeclaration* decl) { in Predeclare() argument
39 Declarations::PredeclareTypeAlias(decl->name, decl, false); in Predeclare()
40 alias->SetPosition(decl->pos); in Predeclare()
41 alias->SetIdentifierPosition(decl->name->pos); in Predeclare()
46 static void Predeclare(StructDeclaration* decl) { in Predeclare() argument
72 Visit(NamespaceDeclaration* decl) Visit() argument
77 Visit(TypeDeclaration* decl) Visit() argument
82 Visit(StructDeclaration* decl) Visit() argument
99 Visit(GenericCallableDeclaration* decl) Visit() argument
102 Visit(GenericTypeDeclaration* decl) Visit() argument
[all...]
H A Ddeclaration-visitor.cc27 void PredeclarationVisitor::Predeclare(Declaration* decl) { in Predeclare() argument
28 CurrentSourcePosition::Scope scope(decl->pos); in Predeclare()
29 switch (decl->kind) { in Predeclare()
32 return Predeclare(name::cast(decl)); in Predeclare()
36 return Predeclare(NamespaceDeclaration::cast(decl)); in Predeclare()
38 return Predeclare(GenericCallableDeclaration::cast(decl)); in Predeclare()
40 return Predeclare(GenericTypeDeclaration::cast(decl)); in Predeclare()
48 void DeclarationVisitor::Visit(Declaration* decl) { in Visit() argument
49 CurrentSourcePosition::Scope scope(decl->pos); in Visit()
50 switch (decl in Visit()
61 CreateBuiltin(BuiltinDeclaration* decl, std::string external_name, std::string readable_name, Signature signature, base::Optional<Statement*> body) CreateBuiltin() argument
121 Visit(ExternalBuiltinDeclaration* decl) Visit() argument
129 Visit(ExternalRuntimeDeclaration* decl) Visit() argument
169 Visit(ExternalMacroDeclaration* decl) Visit() argument
180 Visit(TorqueBuiltinDeclaration* decl) Visit() argument
188 Visit(TorqueMacroDeclaration* decl) Visit() argument
199 Visit(IntrinsicDeclaration* decl) Visit() argument
204 Visit(ConstDeclaration* decl) Visit() argument
212 Visit(SpecializationDeclaration* decl) Visit() argument
276 Visit(ExternConstDeclaration* decl) Visit() argument
292 Visit(CppIncludeDeclaration* decl) Visit() argument
[all...]
H A Dtype-visitor.cc19 const Type* TypeVisitor::ComputeType(TypeDeclaration* decl, in ComputeType() argument
23 CurrentSourcePosition::Scope scope(decl->pos); in ComputeType()
29 Type::ComputeName(decl->name->value, specialized_from)}); in ComputeType()
43 switch (decl->kind) { in ComputeType()
46 return ComputeType(name::cast(decl), specialized_from); in ComputeType()
54 const Type* TypeVisitor::ComputeType(TypeAliasDeclaration* decl, in ComputeType() argument
56 const Type* type = ComputeType(decl->type); in ComputeType()
57 type->AddAlias(decl->name->value); in ComputeType()
74 AbstractTypeDeclaration* decl, MaybeSpecializationKey specialized_from) { in ComputeType()
76 ComputeGeneratesType(decl in ComputeType()
73 ComputeType( AbstractTypeDeclaration* decl, MaybeSpecializationKey specialized_from) ComputeType() argument
128 ComputeType( BitFieldStructDeclaration* decl, MaybeSpecializationKey specialized_from) ComputeType() argument
192 ComputeType( StructDeclaration* decl, MaybeSpecializationKey specialized_from) ComputeType() argument
237 ComputeType( ClassDeclaration* decl, MaybeSpecializationKey specialized_from) ComputeType() argument
508 StructDeclaration* decl = ComputeTypeForStructExpression() local
[all...]
/third_party/python/Tools/c-analyzer/c_parser/
H A Dmatch.py10 def match_storage(decl, expected):
11 default = _info.get_default_storage(decl)
21 storage = _info.get_effective_storage(decl, default=default)
26 # decl matchers
61 def is_forward_decl(decl):
62 if decl.kind is _KIND.TYPEDEF:
64 elif is_type_decl(decl):
65 return not decl.data
66 elif decl.kind is _KIND.FUNCTION:
68 return decl
[all...]
H A Ddatafiles.py50 for decl, _ in read_all(infile):
51 yield decl
89 decl = _info.Declaration.from_row(info)
90 decl = decl.fix_filename(relroot, formatted=False, fixroot=False)
91 yield decl, extra
123 def render_decl(decl):
125 decl, *extra = decl
129 *row, declaration = _render_known_row(decl)
[all...]
/third_party/mesa3d/src/gallium/auxiliary/tgsi/
H A Dtgsi_two_side.c72 struct tgsi_full_declaration *decl) in xform_decl()
75 unsigned range_end = decl->Range.Last + 1; in xform_decl()
77 if (decl->Declaration.File == TGSI_FILE_INPUT) { in xform_decl()
78 if (decl->Semantic.Name == TGSI_SEMANTIC_COLOR) { in xform_decl()
80 assert(decl->Semantic.Index < 2); in xform_decl()
81 ts->front_color_input[decl->Semantic.Index] = decl->Range.First; in xform_decl()
82 ts->front_color_interp[decl->Semantic.Index] = decl->Interp.Interpolate; in xform_decl()
84 else if (decl in xform_decl()
71 xform_decl(struct tgsi_transform_context *ctx, struct tgsi_full_declaration *decl) xform_decl() argument
101 struct tgsi_full_declaration decl; emit_prolog() local
[all...]
H A Dtgsi_transform.h53 struct tgsi_full_declaration *decl);
83 const struct tgsi_full_declaration *decl);
104 struct tgsi_full_declaration decl; in tgsi_transform_temps_decl() local
106 decl = tgsi_default_full_declaration(); in tgsi_transform_temps_decl()
107 decl.Declaration.File = TGSI_FILE_TEMPORARY; in tgsi_transform_temps_decl()
108 decl.Range.First = firstIdx; in tgsi_transform_temps_decl()
109 decl.Range.Last = lastIdx; in tgsi_transform_temps_decl()
110 ctx->emit_declaration(ctx, &decl); in tgsi_transform_temps_decl()
124 struct tgsi_full_declaration decl; in tgsi_transform_const_decl() local
126 decl in tgsi_transform_const_decl()
141 struct tgsi_full_declaration decl; tgsi_transform_input_decl() local
162 struct tgsi_full_declaration decl; tgsi_transform_output_decl() local
181 struct tgsi_full_declaration decl; tgsi_transform_sampler_decl() local
196 struct tgsi_full_declaration decl; tgsi_transform_sampler_view_decl() local
[all...]
H A Dtgsi_dump.c300 struct tgsi_full_declaration *decl ) in iter_declaration()
303 boolean patch = decl->Semantic.Name == TGSI_SEMANTIC_PATCH || in iter_declaration()
304 decl->Semantic.Name == TGSI_SEMANTIC_TESSINNER || in iter_declaration()
305 decl->Semantic.Name == TGSI_SEMANTIC_TESSOUTER || in iter_declaration()
306 decl->Semantic.Name == TGSI_SEMANTIC_PRIMID; in iter_declaration()
310 TXT(tgsi_file_name(decl->Declaration.File)); in iter_declaration()
315 if (decl->Declaration.File == TGSI_FILE_INPUT && in iter_declaration()
324 if (decl->Declaration.File == TGSI_FILE_OUTPUT && in iter_declaration()
330 if (decl->Declaration.Dimension) { in iter_declaration()
332 SID(decl in iter_declaration()
[all...]
/third_party/vk-gl-cts/framework/opengl/simplereference/
H A DsglrShaderProgram.cpp133 ShaderProgram::ShaderProgram (const pdec::ShaderProgramDeclaration& decl) in ShaderProgram() argument
134 : rr::VertexShader (decl.getVertexInputCount(), decl.getVertexOutputCount()) in ShaderProgram()
135 , rr::GeometryShader (decl.getGeometryInputCount(), in ShaderProgram()
136 decl.getGeometryOutputCount(), in ShaderProgram()
137 decl.m_geometryDecl.inputType, in ShaderProgram()
138 decl.m_geometryDecl.outputType, in ShaderProgram()
139 decl.m_geometryDecl.numOutputVertices, in ShaderProgram()
140 decl.m_geometryDecl.numInvocations) in ShaderProgram()
141 , rr::FragmentShader (decl in ShaderProgram()
[all...]
/third_party/skia/third_party/externals/tint/src/reader/wgsl/
H A Dparser_impl_variable_ident_decl_test.cc25 auto decl = p->expect_variable_ident_decl("test"); in TEST_F() local
27 ASSERT_FALSE(decl.errored); in TEST_F()
28 ASSERT_EQ(decl->name, "my_var"); in TEST_F()
29 ASSERT_NE(decl->type, nullptr); in TEST_F()
30 ASSERT_TRUE(decl->type->Is<ast::F32>()); in TEST_F()
32 EXPECT_EQ(decl->source.range, (Source::Range{{1u, 1u}, {1u, 7u}})); in TEST_F()
33 EXPECT_EQ(decl->type->source.range, (Source::Range{{1u, 10u}, {1u, 13u}})); in TEST_F()
38 auto decl = p->expect_variable_ident_decl("test", /*allow_inferred = */ true); in TEST_F() local
40 ASSERT_FALSE(decl.errored); in TEST_F()
41 ASSERT_EQ(decl in TEST_F()
49 auto decl = p->expect_variable_ident_decl("test"); TEST_F() local
57 auto decl = p->expect_variable_ident_decl("test"); TEST_F() local
65 auto decl = p->expect_variable_ident_decl("test"); TEST_F() local
73 auto decl = p->expect_variable_ident_decl("test"); TEST_F() local
90 auto decl = p->expect_variable_ident_decl("test"); TEST_F() local
98 auto decl = p->expect_variable_ident_decl("test"); TEST_F() local
106 auto decl = p->expect_variable_ident_decl("test"); TEST_F() local
114 auto decl = p->expect_variable_ident_decl("test"); TEST_F() local
122 auto decl = p->expect_variable_ident_decl("test"); TEST_F() local
[all...]
/third_party/libabigail/src/
H A Dabg-writer.cc795 /// Test if a given decl has been written out to the XML output.
797 /// @param the decl to consider.
799 /// @return true if the decl has already been emitted, false
802 decl_is_emitted(const decl_base_sptr& decl) const in decl_is_emitted()
804 ABG_ASSERT(!is_type(decl)); in decl_is_emitted()
805 string repr = get_pretty_representation(decl, true); in decl_is_emitted()
806 interned_string irepr = decl->get_environment().intern(repr); in decl_is_emitted()
812 /// @param decl the decl to consider.
814 record_decl_as_emitted(const decl_base_sptr& decl) in record_decl_as_emitted() argument
995 annotate(const T& decl, write_context& ctxt, unsigned indent) annotate() argument
1267 write_location(const decl_base_sptr& decl, write_context& ctxt) write_location() argument
1289 write_visibility(const shared_ptr<decl_base>& decl, ostream& o) write_visibility() argument
1329 write_binding(const shared_ptr<decl_base>& decl, ostream& o) write_binding() argument
1379 write_is_artificial(const decl_base_sptr& decl, ostream& o) write_is_artificial() argument
1453 write_size_and_alignment(const shared_ptr<type_base> decl, ostream& o, size_t default_size, size_t default_alignment) write_size_and_alignment() argument
1470 write_array_size_and_alignment(const shared_ptr<array_type_def> decl, ostream& o) write_array_size_and_alignment() argument
1842 write_is_anonymous(const decl_base_sptr& decl, ostream& o) write_is_anonymous() argument
1855 write_naming_typedef(const decl_base_sptr& decl, write_context& ctxt) write_naming_typedef() argument
1920 write_decl(const decl_base_sptr& decl, write_context& ctxt, unsigned indent) write_decl() argument
1969 write_decl_in_scope(const decl_base_sptr& decl, write_context& ctxt, unsigned initial_indent) write_decl_in_scope() argument
2556 write_namespace_decl(const namespace_decl_sptr& decl, write_context& ctxt, unsigned indent) write_namespace_decl() argument
2615 write_qualified_type_def(const qualified_type_def_sptr& decl, const string& id, write_context& ctxt, unsigned indent) write_qualified_type_def() argument
2668 write_qualified_type_def(const qualified_type_def_sptr& decl, write_context& ctxt, unsigned indent) write_qualified_type_def() argument
2691 write_pointer_type_def(const pointer_type_def_sptr& decl, const string& id, write_context& ctxt, unsigned indent) write_pointer_type_def() argument
2743 write_pointer_type_def(const pointer_type_def_sptr& decl, write_context& ctxt, unsigned indent) write_pointer_type_def() argument
2766 write_reference_type_def(const reference_type_def_sptr& decl, const string& id, write_context& ctxt, unsigned indent) write_reference_type_def() argument
2825 write_reference_type_def(const reference_type_def_sptr& decl, write_context& ctxt, unsigned indent) write_reference_type_def() argument
2840 write_array_subrange_type(const array_type_def::subrange_sptr& decl, write_context& ctxt, unsigned indent) write_array_subrange_type() argument
2914 write_array_type_def(const array_type_def_sptr& decl, const string& id, write_context& ctxt, unsigned indent) write_array_type_def() argument
2980 write_array_type_def(const array_type_def_sptr& decl, write_context& ctxt, unsigned indent) write_array_type_def() argument
3074 write_enum_type_decl(const enum_type_decl_sptr& decl, write_context& ctxt, unsigned indent) write_enum_type_decl() argument
3219 write_typedef_decl(const typedef_decl_sptr& decl, const string& id, write_context& ctxt, unsigned indent) write_typedef_decl() argument
3265 write_typedef_decl(const typedef_decl_sptr& decl, write_context& ctxt, unsigned indent) write_typedef_decl() argument
3283 write_var_decl(const var_decl_sptr& decl, write_context& ctxt, bool write_linkage_name, unsigned indent) write_var_decl() argument
3335 write_function_decl(const function_decl_sptr& decl, write_context& ctxt, bool skip_first_parm, unsigned indent) write_function_decl() argument
3538 write_class_decl_opening_tag(const class_decl_sptr& decl, const string& id, write_context& ctxt, unsigned indent, bool prepare_to_handle_empty) write_class_decl_opening_tag() argument
3610 write_union_decl_opening_tag(const union_decl_sptr& decl, const string& id, write_context& ctxt, unsigned indent, bool prepare_to_handle_empty) write_union_decl_opening_tag() argument
3932 write_class_decl(const class_decl_sptr& decl, write_context& ctxt, unsigned indent) write_class_decl() argument
4078 write_union_decl(const union_decl_sptr& decl, write_context& ctxt, unsigned indent) write_union_decl() argument
4101 decl_base_sptr decl = get_type_declaration(t); write_member_type_opening_tag() local
4169 write_type_tparameter(const type_tparameter_sptr decl, write_context& ctxt, unsigned indent) write_type_tparameter() argument
4211 write_non_type_tparameter( const shared_ptr<non_type_tparameter> decl, write_context& ctxt, unsigned indent) write_non_type_tparameter() argument
4247 write_template_tparameter(const template_tparameter_sptr decl, write_context& ctxt, unsigned indent) write_template_tparameter() argument
4295 write_type_composition(const shared_ptr<type_composition> decl, write_context& ctxt, unsigned indent) write_type_composition() argument
4338 write_template_parameter(const shared_ptr<template_parameter> decl, write_context& ctxt, unsigned indent) write_template_parameter() argument
4383 write_function_tdecl(const shared_ptr<function_tdecl> decl, write_context& ctxt, unsigned indent) write_function_tdecl() argument
4428 write_class_tdecl(const shared_ptr<class_tdecl> decl, write_context& ctxt, unsigned indent) write_class_tdecl() argument
[all...]
H A Dabg-reader.cc277 decl_base_sptr decl) in map_xml_node_to_decl()
280 get_xml_node_decl_map()[node]= decl; in map_xml_node_to_decl()
426 // The current decl is a scope_decl, so it's our lexical scope. in get_cur_scope()
429 // The current decl is not a scope_decl, so our lexical scope is in get_cur_scope()
430 // the scope of this decl. in get_cur_scope()
670 /// Record the sub-types of a fn-decl as being used by the fn-decl.
672 /// @param fn the function decl to consider.
689 /// Record the sub-types of a function decl as being used by it.
691 /// @param fn the function decl t
276 map_xml_node_to_decl(xmlNodePtr node, decl_base_sptr decl) map_xml_node_to_decl() argument
730 push_decl_to_current_scope(decl_base_sptr decl, bool add_to_current_scope) push_decl_to_current_scope() argument
757 shared_ptr<decl_base> decl = dynamic_pointer_cast<decl_base>(t); push_and_key_type_decl() local
2239 type_or_decl_base_sptr decl; handle_element_node() local
2958 maybe_set_naming_typedef(reader& rdr, xmlNodePtr node, const decl_base_sptr& decl) maybe_set_naming_typedef() argument
3818 qualified_type_def_sptr decl; build_qualified_type_decl() local
4653 class_decl_sptr decl; build_class_decl() local
5080 union_decl_sptr decl; build_union_decl() local
5833 type_decl_sptr decl = build_type_decl(rdr, node, add_to_current_scope); handle_type_decl() local
5865 qualified_type_def_sptr decl = handle_qualified_type_decl() local
5884 pointer_type_def_sptr decl = build_pointer_type_def(rdr, node, handle_pointer_type_def() local
5902 reference_type_def_sptr decl = build_reference_type_def(rdr, node, handle_reference_type_def() local
5937 array_type_def_sptr decl = build_array_type_def(rdr, node, handle_array_type_def() local
5952 enum_type_decl_sptr decl = handle_enum_type_decl() local
5969 typedef_decl_sptr decl = build_typedef_decl(rdr, node, handle_typedef_decl() local
5990 decl_base_sptr decl = build_var_decl_if_not_suppressed(rdr, node, handle_var_decl() local
6022 class_decl_sptr decl = handle_class_decl() local
6041 union_decl_sptr decl = handle_union_decl() local
6075 class_tdecl_sptr decl = build_class_tdecl(rdr, node, handle_class_tdecl() local
[all...]
/third_party/python/Tools/c-analyzer/cpython/
H A D_analyzer.py127 for decl in decls:
128 if not decl.data:
131 yield decl
134 def analyze_resolved(resolved, decl, types, knowntypes, extra=None):
135 if decl.kind not in KINDS:
141 if decl.kind in (KIND.STRUCT, KIND.UNION):
142 typedeps = [typedeps] * len(decl.members)
150 raise NotImplementedError((decl, extra))
152 unsupported = _check_unsupported(decl, typedeps, types, knowntypes)
158 def _check_unsupported(decl, typedep
[all...]
/third_party/mesa3d/src/gallium/drivers/r300/
H A Dr300_vs_draw.c65 /* Used to shift output decl. indices when inserting new ones. */
80 struct tgsi_full_declaration decl; in emit_temp() local
82 decl = tgsi_default_full_declaration(); in emit_temp()
83 decl.Declaration.File = TGSI_FILE_TEMPORARY; in emit_temp()
84 decl.Range.First = decl.Range.Last = reg; in emit_temp()
85 ctx->emit_declaration(ctx, &decl); in emit_temp()
93 struct tgsi_full_declaration decl; in emit_output() local
95 decl = tgsi_default_full_declaration(); in emit_output()
96 decl in emit_output()
145 transform_decl(struct tgsi_transform_context *ctx, struct tgsi_full_declaration *decl) transform_decl() argument
[all...]
/third_party/selinux/libsepol/src/
H A Davrule_block.c55 avrule_decl_t *decl; in avrule_decl_create() local
57 if ((decl = calloc(1, sizeof(*decl))) == NULL) { in avrule_decl_create()
60 decl->decl_id = decl_id; in avrule_decl_create()
62 if (symtab_init(&decl->symtab[i], symtab_sizes[i])) { in avrule_decl_create()
63 avrule_decl_destroy(decl); in avrule_decl_create()
69 ebitmap_init(&decl->required.scope[i]); in avrule_decl_create()
70 ebitmap_init(&decl->declared.scope[i]); in avrule_decl_create()
72 return decl; in avrule_decl_create()
114 avrule_decl_t *decl; in avrule_block_destroy() local
138 get_decl_cond_list(policydb_t * p, avrule_decl_t * decl, cond_list_t * cond) get_decl_cond_list() argument
159 avrule_decl_t *decl; is_id_enabled() local
[all...]
/third_party/vk-gl-cts/framework/opengl/
H A DgluVarType.cpp328 std::ostream& operator<< (std::ostream& str, const VariableDeclaration& decl) in operator <<() argument
330 if (decl.layout != Layout()) in operator <<()
331 str << decl.layout << " "; in operator <<()
334 if (decl.memoryAccessQualifierBits & (1 << bitNdx)) in operator <<()
337 if (decl.interpolation != INTERPOLATION_LAST) in operator <<()
338 str << getInterpolationName(decl.interpolation) << " "; in operator <<()
340 if (decl.storage != STORAGE_LAST) in operator <<()
341 str << getStorageName(decl.storage) << " "; in operator <<()
343 str << declare(decl.varType, decl in operator <<()
348 namespace decl global() namespace
358 operator <<(std::ostream& str, const DeclareVariable& decl) operator <<() argument
404 operator <<(std::ostream& str, const DeclareStructTypePtr& decl) operator <<() argument
425 operator <<(std::ostream& str, const DeclareStructType& decl) operator <<() argument
[all...]
/third_party/skia/third_party/externals/tint/src/resolver/
H A Dresolver_validation.cc205 std::string decl = var->is_const ? "let" : "var"; in ValidateVariableConstructorOrCast() local
206 AddError("cannot initialize " + decl + " of type '" + in ValidateVariableConstructorOrCast()
449 auto* decl = var->Declaration(); in ValidateGlobalVariable() local
450 if (!ValidateNoDuplicateDecorations(decl->decorations)) { in ValidateGlobalVariable()
454 for (auto* deco : decl->decorations) { in ValidateGlobalVariable()
455 if (decl->is_const) { in ValidateGlobalVariable()
496 auto binding_point = decl->BindingPoint(); in ValidateGlobalVariable()
508 decl->source); in ValidateGlobalVariable()
520 decl->source); in ValidateGlobalVariable()
529 decl in ValidateGlobalVariable()
623 auto* decl = var->Declaration(); ValidateAtomicVariable() local
665 auto* decl = var->Declaration(); ValidateVariable() local
753 auto* decl = var->Declaration(); ValidateFunctionParameter() local
957 auto* decl = func->Declaration(); ValidateFunction() local
1063 auto* decl = func->Declaration(); ValidateEntryPoint() local
1576 auto* decl = call->Declaration(); ValidateFunctionCall() local
2350 auto* decl = var->Declaration(); ValidateAssignment() local
[all...]
/third_party/jerryscript/tools/
H A Dgen-doctest.py66 decl = {}
70 decl = {}
72 decl[tokens[i]] = tokens[i + 2].strip('\'"')
74 if 'name' not in decl:
75 decl['name'] = '%s%d.c' % (self._outname_base, self._outname_cnt)
78 if 'test' not in decl:
79 decl['test'] = 'run'
81 return decl, fileinput.filelineno()
92 def _process_code_end(self, decl, code):
96 :param decl
[all...]
/third_party/selinux/checkpolicy/
H A Dmodule_compiler.c32 avrule_decl_t *decl; /* if in an avrule block, which member
158 avrule_decl_t *decl = stack_top->decl; in create_symbol() local
166 decl->decl_id, dest_value); in create_symbol()
201 avrule_decl_t *decl = stack_top->decl; in declare_symbol() local
208 if (ebitmap_set_bit(decl->declared.scope + symbol_type, in declare_symbol()
329 /* create a new role_datum_t for this decl, if necessary */ in declare_role()
336 roles_tab = stack_top->decl->p_roles.table; in declare_role()
563 /* create a new user_datum_t for this decl, i in declare_user()
720 avrule_decl_t *decl = stack_top->decl; require_symbol() local
738 avrule_decl_t *decl = stack_top->decl; add_perm_to_class() local
1123 const avrule_decl_t *decl = stack->decl; is_scope_in_stack() local
1169 avrule_decl_t *decl = stack->decl; is_perm_in_stack() local
1207 avrule_decl_t *decl = stack_top->decl; get_current_cond_list() local
1240 avrule_decl_t *decl = stack_top->decl; append_avrule() local
1260 avrule_decl_t *decl = stack_top->decl; append_role_trans() local
1272 avrule_decl_t *decl = stack_top->decl; append_role_allow() local
1284 avrule_decl_t *decl = stack_top->decl; append_filename_trans() local
1296 avrule_decl_t *decl = stack_top->decl; append_range_trans() local
1308 avrule_decl_t *decl; begin_optional() local
1348 avrule_decl_t *decl; begin_optional_else() local
1427 avrule_decl_t *decl = stack_top->decl; end_avrule_block() local
[all...]
/third_party/mesa3d/src/gallium/auxiliary/util/
H A Du_pstipple.c197 struct tgsi_full_declaration *decl) in pstip_transform_decl()
204 if (decl->Declaration.File == TGSI_FILE_SAMPLER) { in pstip_transform_decl()
206 for (i = decl->Range.First; i <= decl->Range.Last; i++) { in pstip_transform_decl()
210 else if (decl->Declaration.File == pctx->wincoordFile) { in pstip_transform_decl()
211 pctx->maxInput = MAX2(pctx->maxInput, (int) decl->Range.Last); in pstip_transform_decl()
212 if (decl->Semantic.Name == TGSI_SEMANTIC_POSITION) in pstip_transform_decl()
213 pctx->wincoordInput = (int) decl->Range.First; in pstip_transform_decl()
215 else if (decl->Declaration.File == TGSI_FILE_TEMPORARY) { in pstip_transform_decl()
217 for (i = decl in pstip_transform_decl()
196 pstip_transform_decl(struct tgsi_transform_context *ctx, struct tgsi_full_declaration *decl) pstip_transform_decl() argument
282 struct tgsi_full_declaration decl; pstip_transform_prolog() local
[all...]
/third_party/skia/third_party/externals/tint/src/transform/
H A Dunshadow.cc49 auto* decl = var->Declaration(); in Run()
50 auto name = ctx.src->Symbols().NameFor(decl->symbol); in Run()
54 auto source = ctx.Clone(decl->source); in Run()
55 auto* type = ctx.Clone(decl->type); in Run()
56 auto* constructor = ctx.Clone(decl->constructor); in Run()
57 auto decorations = ctx.Clone(decl->decorations); in Run()
59 source, symbol, decl->declared_storage_class, decl->declared_access, in Run()
60 type, decl->is_const, constructor, decorations); in Run()
/third_party/mesa3d/src/gallium/drivers/svga/svgadump/
H A Dsvga_dump.py51 def __init__(self, instance = '', decl = None):
54 self.decl = decl
57 return decl_dumper_t(self._instance, self.decl)
60 class_ = self.decl
61 assert self.decl.class_type in ('struct', 'union')
71 for name, value in self.decl.values:
83 def dump_decl(instance, decl):
84 dumper = decl_dumper_t(instance, decl)
85 algorithm.apply_visitor(dumper, decl)
[all...]

Completed in 18 milliseconds

12345678910>>...20