From ddb587b686078395df46165d792d6ae25f9cc7f7 Mon Sep 17 00:00:00 2001 From: Nick Date: Sun, 7 Jan 2024 13:50:00 -0800 Subject: [PATCH] remove debug all good Try and commonize the clang versions --- .github/codecov.yml | 2 +- src/sphinx_c_autodoc/loader.py | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/codecov.yml b/.github/codecov.yml index c5759831..d6e8f695 100644 --- a/.github/codecov.yml +++ b/.github/codecov.yml @@ -2,7 +2,7 @@ status: project: default: - target: 100 + target: 100% threshold: 0% paths: - "src" diff --git a/src/sphinx_c_autodoc/loader.py b/src/sphinx_c_autodoc/loader.py index 54668a39..3c88bf5b 100644 --- a/src/sphinx_c_autodoc/loader.py +++ b/src/sphinx_c_autodoc/loader.py @@ -702,9 +702,9 @@ def _find_declaration_type(self) -> str: Returns: str: The type of the variable. If this can't be derived falls back to - `int`. + `unknown_type` to match the behavior of clang. """ - type_ = "int" + type_ = "unknown_type" tokens = list( filter( lambda t: t.kind == cindex.TokenKind.IDENTIFIER, self.node.get_tokens()