Skip to content
Snippets Groups Projects
Commit 34012b36 authored by Richard Angersbach's avatar Richard Angersbach
Browse files

Fix typcheck

parent 41d1276c
No related branches found
No related tags found
1 merge request!25Draft: C Interfacing
Pipeline #75827 failed
...@@ -719,7 +719,7 @@ class SfgFunctionSequencer(SfgFunctionSequencerBase): ...@@ -719,7 +719,7 @@ class SfgFunctionSequencer(SfgFunctionSequencerBase):
def __call__(self, *args: SequencerArg) -> None: def __call__(self, *args: SequencerArg) -> None:
# check if header is in HYBRID mode for c_interfacing enabled # check if header is in HYBRID mode for c_interfacing enabled
if self._cursor.context.c_interfacing: 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""" """Populate the function body"""
tree = make_sequence(*args) tree = make_sequence(*args)
......
...@@ -177,8 +177,8 @@ class SourceFileGenerator: ...@@ -177,8 +177,8 @@ class SourceFileGenerator:
for inc in self._header_file.includes: for inc in self._header_file.includes:
if inc.system_header and inc.__str__() in c_compatibility_headers: if inc.system_header and inc.__str__() in c_compatibility_headers:
c_header = inc.__str__().replace("<c", "<") c_header = inc.__str__().replace("<c", "<")
self._header_file.hybrid_includes += HeaderFile( self._header_file.hybrid_includes += [HeaderFile(
c_header, system_header=True) c_header, system_header=True)]
if self._impl_file is not None: if self._impl_file is not None:
impl_includes = collect_includes(self._impl_file) impl_includes = collect_includes(self._impl_file)
......
...@@ -383,6 +383,8 @@ class SfgMethod(SfgClassMember, CommonFunctionProperties): ...@@ -383,6 +383,8 @@ class SfgMethod(SfgClassMember, CommonFunctionProperties):
self._virtual = virtual self._virtual = virtual
self._override = override self._override = override
externC = False
parameters = self.collect_params(tree, required_params) parameters = self.collect_params(tree, required_params)
CommonFunctionProperties.__init__( CommonFunctionProperties.__init__(
...@@ -391,6 +393,7 @@ class SfgMethod(SfgClassMember, CommonFunctionProperties): ...@@ -391,6 +393,7 @@ class SfgMethod(SfgClassMember, CommonFunctionProperties):
parameters, parameters,
return_type, return_type,
inline, inline,
externC,
constexpr, constexpr,
attributes, attributes,
) )
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment