From a7aea53509937b7c1f9127b2fd7acb0c84503857 Mon Sep 17 00:00:00 2001 From: Andreas Baulig Date: Thu, 25 Nov 2021 21:38:13 +0000 Subject: [PATCH] Upgrade to pycparser^2.21 --- autofff/generator.py | 4 +++- poetry.lock | 8 ++++---- pyproject.toml | 2 +- 3 files changed, 8 insertions(+), 6 deletions(-) diff --git a/autofff/generator.py b/autofff/generator.py index cea6abd..09fb5c6 100644 --- a/autofff/generator.py +++ b/autofff/generator.py @@ -57,7 +57,9 @@ def _generateTypeDefForDecl(self, decl: Decl) -> str: param.type.type.type.declname = name typedef = Typedef(name, param.quals, ["typedef"], param.type) - param.type = TypeDecl(param.name, param.type.quals, IdentifierType([name])) + param.type = TypeDecl( + param.name, param.type.quals, None, IdentifierType([name]) + ) typedefs += f"{self.cGen.visit_Typedef(typedef)};\n" return typedefs diff --git a/poetry.lock b/poetry.lock index 520728c..d932137 100644 --- a/poetry.lock +++ b/poetry.lock @@ -200,7 +200,7 @@ python-versions = ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*, !=3.4.*" [[package]] name = "pycparser" -version = "2.20" +version = "2.21" description = "C parser in Python" category = "main" optional = false @@ -328,7 +328,7 @@ testing = ["coverage (>=4)", "coverage-enable-subprocess (>=1)", "flaky (>=3)", [metadata] lock-version = "1.1" python-versions = "^3.9" -content-hash = "620226d2dd94e3d2e89e519693af33cd85d5055ce0681a16c79df44483963a21" +content-hash = "d09129e61894460edce7323e50915978d4e44ba6753b8d6cc8f170f48cd70462" [metadata.files] "backports.entry-points-selectable" = [ @@ -403,8 +403,8 @@ pycodestyle = [ {file = "pycodestyle-2.8.0.tar.gz", hash = "sha256:eddd5847ef438ea1c7870ca7eb78a9d47ce0cdb4851a5523949f2601d0cbbe7f"}, ] pycparser = [ - {file = "pycparser-2.20-py2.py3-none-any.whl", hash = "sha256:7582ad22678f0fcd81102833f60ef8d0e57288b6b5fb00323d101be910e35705"}, - {file = "pycparser-2.20.tar.gz", hash = "sha256:2d475327684562c3a96cc71adf7dc8c4f0565175cf86b6d7a404ff4c771f15f0"}, + {file = "pycparser-2.21-py2.py3-none-any.whl", hash = "sha256:8ee45429555515e1f6b185e78100aea234072576aa43ab53aefcae078162fca9"}, + {file = "pycparser-2.21.tar.gz", hash = "sha256:e644fdec12f7872f86c58ff790da456218b10f863970249516d60a5eaca77206"}, ] pyflakes = [ {file = "pyflakes-2.4.0-py2.py3-none-any.whl", hash = "sha256:3bb3a3f256f4b7968c9c788781e4ff07dce46bdf12339dcda61053375426ee2e"}, diff --git a/pyproject.toml b/pyproject.toml index 4467813..2305c3f 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -20,7 +20,7 @@ classifiers = [ [tool.poetry.dependencies] python = "^3.9" -pycparser = "<=2.20" +pycparser = "^2.21" overrides = "^6.1.0" configobj = "^5.0.6" validator = "^0.7.1"