Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
pystencils-sfg
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
pycodegen
pystencils-sfg
Commits
34012b36
Commit
34012b36
authored
2 months ago
by
Richard Angersbach
Browse files
Options
Downloads
Patches
Plain Diff
Fix typcheck
parent
41d1276c
No related branches found
No related tags found
1 merge request
!25
Draft: C Interfacing
Pipeline
#75827
failed
2 months ago
Stage: Code Quality
Stage: Tests
Stage: Documentation
Stage: deploy
Changes
3
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
src/pystencilssfg/composer/basic_composer.py
+1
-1
1 addition, 1 deletion
src/pystencilssfg/composer/basic_composer.py
src/pystencilssfg/generator.py
+2
-2
2 additions, 2 deletions
src/pystencilssfg/generator.py
src/pystencilssfg/ir/entities.py
+3
-0
3 additions, 0 deletions
src/pystencilssfg/ir/entities.py
with
6 additions
and
3 deletions
src/pystencilssfg/composer/basic_composer.py
+
1
−
1
View file @
34012b36
...
...
@@ -719,7 +719,7 @@ class SfgFunctionSequencer(SfgFunctionSequencerBase):
def
__call__
(
self
,
*
args
:
SequencerArg
)
->
None
:
# check if header is in HYBRID mode for c_interfacing enabled
if
self
.
_cursor
.
context
.
c_interfacing
:
assert
isinstance
(
self
.
_cursor
.
context
.
header_file
.
file_type
,
SfgSourceFileType
.
HYBRID_HEADER
)
assert
self
.
_cursor
.
context
.
header_file
.
file_type
==
SfgSourceFileType
.
HYBRID_HEADER
"""
Populate the function body
"""
tree
=
make_sequence
(
*
args
)
...
...
This diff is collapsed.
Click to expand it.
src/pystencilssfg/generator.py
+
2
−
2
View file @
34012b36
...
...
@@ -177,8 +177,8 @@ class SourceFileGenerator:
for
inc
in
self
.
_header_file
.
includes
:
if
inc
.
system_header
and
inc
.
__str__
()
in
c_compatibility_headers
:
c_header
=
inc
.
__str__
().
replace
(
"
<c
"
,
"
<
"
)
self
.
_header_file
.
hybrid_includes
+=
HeaderFile
(
c_header
,
system_header
=
True
)
self
.
_header_file
.
hybrid_includes
+=
[
HeaderFile
(
c_header
,
system_header
=
True
)
]
if
self
.
_impl_file
is
not
None
:
impl_includes
=
collect_includes
(
self
.
_impl_file
)
...
...
This diff is collapsed.
Click to expand it.
src/pystencilssfg/ir/entities.py
+
3
−
0
View file @
34012b36
...
...
@@ -383,6 +383,8 @@ class SfgMethod(SfgClassMember, CommonFunctionProperties):
self
.
_virtual
=
virtual
self
.
_override
=
override
externC
=
False
parameters
=
self
.
collect_params
(
tree
,
required_params
)
CommonFunctionProperties
.
__init__
(
...
...
@@ -391,6 +393,7 @@ class SfgMethod(SfgClassMember, CommonFunctionProperties):
parameters
,
return_type
,
inline
,
externC
,
constexpr
,
attributes
,
)
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment