Home
last modified time | relevance | path

Searched refs:decl (Results 1 – 25 of 795) sorted by relevance

12345678910>>...32

/external/python/cpython3/Tools/c-analyzer/c_analyzer/
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, *, argument
33 resolved = resolve_decl(decl, typespecs, knowntypespecs, types)
39 return analyze_resolved(resolved, decl, types, knowntypes)
49 for decl in unresolved:
50 resolved = analyze_decl(decl)
53 types[decl] = IGNORED
[all …]
Dmatch.py53 def is_public(decl): argument
54 if not decl.filename.endswith('.h'):
56 if 'Include' not in decl.filename.split(os.path.sep):
107 def is_public_api(decl): argument
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)
118 def is_public_declaration(decl): argument
[all …]
/external/python/cpython3/Tools/c-analyzer/c_parser/
Dmatch.py10 def match_storage(decl, expected): argument
11 default = _info.get_default_storage(decl)
21 storage = _info.get_effective_storage(decl, default=default)
61 def is_forward_decl(decl): argument
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.signature.isforward
69 elif decl.kind is _KIND.VARIABLE:
[all …]
/external/python/pycparser/examples/
Dcdecl.py91 def _explain_type(decl): argument
94 typ = type(decl)
97 quals = ' '.join(decl.quals) + ' ' if decl.quals else ''
98 return quals + _explain_type(decl.type)
100 return _explain_type(decl.type)
102 return ' '.join(decl.names)
104 quals = ' '.join(decl.quals) + ' ' if decl.quals else ''
105 return quals + 'pointer to ' + _explain_type(decl.type)
108 if decl.dim: arr += '[%s]' % decl.dim.value
110 return arr + " of " + _explain_type(decl.type)
[all …]
/external/libabigail/src/
Dabg-writer.cc717 decl_is_emitted(const decl_base_sptr& decl) const in decl_is_emitted()
719 ABG_ASSERT(!is_type(decl)); in decl_is_emitted()
720 string repr = get_pretty_representation(decl, true); in decl_is_emitted()
721 interned_string irepr = decl->get_environment()->intern(repr); in decl_is_emitted()
729 record_decl_as_emitted(const decl_base_sptr& decl) in record_decl_as_emitted() argument
731 string repr = get_pretty_representation(decl, true); in record_decl_as_emitted()
732 interned_string irepr = decl->get_environment()->intern(repr); in record_decl_as_emitted()
909 annotate(const T& decl, in annotate() argument
913 if (!decl) in annotate()
924 << xml::escape_xml_comment(decl->get_pretty_representation(/*internal=*/false)) in annotate()
[all …]
/external/antlr/tool/src/main/java/org/antlr/tool/
DAttribute.java36 public String decl; field in Attribute
47 public Attribute(String decl) { in Attribute() argument
48 extractAttribute(decl); in Attribute()
51 public Attribute(String name, String decl) { in Attribute() argument
53 this.decl = decl; in Attribute()
64 protected void extractAttribute(String decl) { in extractAttribute() argument
65 if ( decl==null ) { in extractAttribute()
70 int rightEdgeOfDeclarator = decl.length()-1; in extractAttribute()
71 int equalsIndex = decl.indexOf('='); in extractAttribute()
74 this.initValue = decl.substring(equalsIndex+1,decl.length()); in extractAttribute()
[all …]
/external/mesa3d/src/gallium/auxiliary/tgsi/
Dtgsi_two_side.c72 struct tgsi_full_declaration *decl) in xform_decl() argument
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->Semantic.Name == TGSI_SEMANTIC_FACE) { in xform_decl()
85 ts->face_input = decl->Range.First; in xform_decl()
89 else if (decl->Declaration.File == TGSI_FILE_TEMPORARY) { in xform_decl()
[all …]
Dtgsi_transform.h52 struct tgsi_full_declaration *decl);
81 const struct tgsi_full_declaration *decl);
101 struct tgsi_full_declaration decl; in tgsi_transform_temps_decl() local
103 decl = tgsi_default_full_declaration(); in tgsi_transform_temps_decl()
104 decl.Declaration.File = TGSI_FILE_TEMPORARY; in tgsi_transform_temps_decl()
105 decl.Range.First = firstIdx; in tgsi_transform_temps_decl()
106 decl.Range.Last = lastIdx; in tgsi_transform_temps_decl()
107 ctx->emit_declaration(ctx, &decl); in tgsi_transform_temps_decl()
121 struct tgsi_full_declaration decl; in tgsi_transform_const_decl() local
123 decl = tgsi_default_full_declaration(); in tgsi_transform_const_decl()
[all …]
Dtgsi_dump.c300 struct tgsi_full_declaration *decl ) in iter_declaration() argument
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->Dim.Index2D); in iter_declaration()
[all …]
/external/deqp/framework/opengl/simplereference/
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.getFragmentInputCount(), decl.getFragmentOutputCount()) in ShaderProgram()
142 , m_attributeNames (decl.getVertexInputCount()) in ShaderProgram()
[all …]
/external/python/cpython3/Tools/c-analyzer/cpython/
D_analyzer.py125 for decl in decls:
126 if not decl.data:
129 yield decl
132 def analyze_resolved(resolved, decl, types, knowntypes, extra=None): argument
133 if decl.kind not in KINDS:
139 if decl.kind in (KIND.STRUCT, KIND.UNION):
140 typedeps = [typedeps] * len(decl.members)
148 raise NotImplementedError((decl, extra))
150 unsupported = _check_unsupported(decl, typedeps, types, knowntypes)
156 def _check_unsupported(decl, typedeps, types, knowntypes): argument
[all …]
/external/python/pybind11/docs/
Dbenchmark.py12 decl = ""
16 decl += "class cl%03i;\n" % cl
17 decl += "\n"
20 decl += "class cl%03i {\n" % cl
21 decl += "public:\n"
26 decl += " cl%03i *fn_%03i(" % (ret, fn)
27 decl += ", ".join("cl%03i *" % p for p in params)
28 decl += ");\n"
30 decl += "};\n\n"
35 result += decl + "\n"
[all …]
/external/selinux/libsepol/src/
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
118 decl = x->branch_list; in avrule_block_destroy()
[all …]
/external/libabigail/tests/data/test-read-dwarf/
Dtest-libaaudio.so.abi81 <type-decl name='__ARRAY_SIZE_TYPE__' size-in-bits='64' id='7ff19f0f'/>
82 <type-decl name='bool' size-in-bits='8' id='c894953d'/>
83 <type-decl name='char' size-in-bits='8' id='a84c031d'/>
84 <type-decl name='double' size-in-bits='64' id='a0eb0f08'/>
85 <type-decl name='float' size-in-bits='32' id='a6c45d85'/>
86 <type-decl name='int' size-in-bits='32' id='95e97e5e'/>
87 <type-decl name='long double' size-in-bits='128' id='e095c704'/>
88 <type-decl name='long int' size-in-bits='64' id='bd54fe1a'/>
89 <type-decl name='long long int' size-in-bits='64' id='1eb56b1e'/>
90 <type-decl name='long long unsigned int' size-in-bits='64' id='3a47d82b'/>
[all …]
DPR22122-libftdc.so.abi248 <type-decl name='bool' size-in-bits='8' id='type-id-1'/>
249 <type-decl name='char' size-in-bits='8' id='type-id-2'/>
268 <type-decl name='double' size-in-bits='64' id='type-id-14'/>
269 <type-decl name='float' size-in-bits='32' id='type-id-15'/>
270 <type-decl name='int' size-in-bits='32' id='type-id-16'/>
271 <type-decl name='long double' size-in-bits='128' id='type-id-17'/>
272 <type-decl name='long int' size-in-bits='64' id='type-id-18'/>
273 <type-decl name='long long int' size-in-bits='64' id='type-id-19'/>
274 <type-decl name='long long unsigned int' size-in-bits='64' id='type-id-20'/>
275 <type-decl name='sizetype' size-in-bits='64' id='type-id-4'/>
[all …]
Dlibtest24-drop-fns.so.abi15 <type-decl name='bool' size-in-bits='8' id='type-id-1'/>
16 <type-decl name='char' size-in-bits='8' id='type-id-2'/>
20 …<class-decl name='typedef __va_list_tag __va_list_tag' size-in-bits='192' is-struct='yes' visibili…
22 <var-decl name='gp_offset' type-id='type-id-7' visibility='default'/>
25 <var-decl name='fp_offset' type-id='type-id-7' visibility='default'/>
28 <var-decl name='overflow_arg_area' type-id='type-id-8' visibility='default'/>
31 <var-decl name='reg_save_area' type-id='type-id-8' visibility='default'/>
33 </class-decl>
34 <type-decl name='double' size-in-bits='64' id='type-id-9'/>
35 <type-decl name='float' size-in-bits='32' id='type-id-10'/>
[all …]
Dlibtest23.so.abi15 <type-decl name='bool' size-in-bits='8' id='type-id-1'/>
16 <type-decl name='char' size-in-bits='8' id='type-id-2'/>
17 …<class-decl name='__anonymous_struct__' is-struct='yes' is-anonymous='yes' visibility='default' id…
18 …<class-decl name='typedef __va_list_tag __va_list_tag' size-in-bits='192' is-struct='yes' visibili…
20 <var-decl name='gp_offset' type-id='type-id-5' visibility='default'/>
23 <var-decl name='fp_offset' type-id='type-id-5' visibility='default'/>
26 <var-decl name='overflow_arg_area' type-id='type-id-6' visibility='default'/>
29 <var-decl name='reg_save_area' type-id='type-id-6' visibility='default'/>
31 </class-decl>
32 <type-decl name='double' size-in-bits='64' id='type-id-7'/>
[all …]
DPR22015-libboost_iostreams.so.abi139 <type-decl name='bool' size-in-bits='8' id='type-id-1'/>
140 <type-decl name='char' size-in-bits='8' id='type-id-2'/>
144 …<class-decl name='__va_list_tag' size-in-bits='192' is-struct='yes' visibility='default' id='type-…
146 <var-decl name='gp_offset' type-id='type-id-7' visibility='default'/>
149 <var-decl name='fp_offset' type-id='type-id-7' visibility='default'/>
152 <var-decl name='overflow_arg_area' type-id='type-id-8' visibility='default'/>
155 <var-decl name='reg_save_area' type-id='type-id-8' visibility='default'/>
157 </class-decl>
158 <type-decl name='double' size-in-bits='64' id='type-id-9'/>
159 <type-decl name='float' size-in-bits='32' id='type-id-10'/>
[all …]
Dlibtest24-drop-fns-2.so.abi15 <type-decl name='bool' size-in-bits='8' id='type-id-1'/>
16 <type-decl name='char' size-in-bits='8' id='type-id-2'/>
20 …<class-decl name='typedef __va_list_tag __va_list_tag' size-in-bits='192' is-struct='yes' visibili…
22 <var-decl name='gp_offset' type-id='type-id-7' visibility='default'/>
25 <var-decl name='fp_offset' type-id='type-id-7' visibility='default'/>
28 <var-decl name='overflow_arg_area' type-id='type-id-8' visibility='default'/>
31 <var-decl name='reg_save_area' type-id='type-id-8' visibility='default'/>
33 </class-decl>
34 <type-decl name='double' size-in-bits='64' id='type-id-9'/>
35 <type-decl name='float' size-in-bits='32' id='type-id-10'/>
[all …]
/external/mesa3d/src/gallium/drivers/r300/
Dr300_vs_draw.c80 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.Declaration.File = TGSI_FILE_OUTPUT; in emit_output()
97 decl.Declaration.Interpolate = 1; in emit_output()
98 decl.Declaration.Semantic = TRUE; in emit_output()
[all …]
/external/libabigail/tests/data/test-read-ctf/
Dtest-struct-iteration.o.abi6 <type-decl name='char' size-in-bits='8' alignment-in-bits='8' id='type-id-1'/>
7 <class-decl name='' is-struct='yes' is-anonymous='yes' visibility='default' id='type-id-2'/>
8 …<class-decl name='' size-in-bits='128' alignment-in-bits='64' is-struct='yes' is-anonymous='yes' v…
10 <var-decl name='unnamed_sub_member' type-id='type-id-4' visibility='default'/>
13 <var-decl name='' type-id='type-id-5' visibility='default'/>
16 <var-decl name='one_more_level' type-id='type-id-6' visibility='default'/>
19 <var-decl name='yes_really_one_more' type-id='type-id-4' visibility='default'/>
21 </class-decl>
22 …<class-decl name='foo_t' size-in-bits='512' alignment-in-bits='32' is-struct='yes' visibility='def…
24 <var-decl name='foo' type-id='type-id-8' visibility='default'/>
[all …]
/external/python/pycparser/utils/internal/
Dmemprofiling.py8 def expand_decl(decl): argument
11 typ = type(decl)
14 return ['TypeDecl', expand_decl(decl.type)]
16 return ['IdentifierType', decl.names]
18 return ['ID', decl.name]
20 decls = [expand_decl(d) for d in decl.decls or []]
21 return [typ.__name__, decl.name, decls]
23 nested = expand_decl(decl.type)
26 if decl.quals:
27 return ['Decl', decl.quals, decl.name, nested]
[all …]
/external/libabigail/tests/data/test-abidiff/
Dtest-PR18791-v1.so.abi102 <namespace-decl name='std'>
103 <namespace-decl name='__cxx11'>
104 </namespace-decl>
105 <namespace-decl name='__debug'>
106 </namespace-decl>
107 <namespace-decl name='__detail'>
108 </namespace-decl>
109 </namespace-decl>
110 <namespace-decl name='__gnu_cxx'>
111 <namespace-decl name='__cxx11'>
[all …]
Dtest-PR18791-v0.so.abi102 <namespace-decl name='std'>
103 <namespace-decl name='__debug'>
104 </namespace-decl>
105 <namespace-decl name='__detail'>
106 </namespace-decl>
107 </namespace-decl>
108 <namespace-decl name='__gnu_cxx'>
109 <namespace-decl name='__ops'>
110 </namespace-decl>
111 </namespace-decl>
[all …]
/external/python/cpython3/Doc/data/
Dpython3.10.abi1642 <type-decl name='char' size-in-bits='8' id='type-id-1'/>
1645 …<function-decl name='_Py_gitidentifier' mangled-name='_Py_gitidentifier' filepath='./Modules/getbu…
1647 </function-decl>
1648 …<function-decl name='Py_GetBuildInfo' mangled-name='Py_GetBuildInfo' filepath='./Modules/getbuildi…
1650 </function-decl>
1651 <type-decl name='void' id='type-id-4'/>
1652 …<function-decl name='PyOS_snprintf' mangled-name='PyOS_snprintf' filepath='./Include/pyerrors.h' l…
1654 </function-decl>
1664 …<var-decl name='_PyParser_TokenNames' type-id='type-id-8' mangled-name='_PyParser_TokenNames' visi…
1665 <type-decl name='int' size-in-bits='32' id='type-id-9'/>
[all …]

12345678910>>...32