From 4b24f246ad37f0a2fa25aa29cc5789826235f402 Mon Sep 17 00:00:00 2001 From: gen740 Date: Wed, 27 Sep 2023 17:56:48 +0900 Subject: [PATCH] Update version --- README.md | 3 +++ cppygen/__init__.py | 2 +- cppygen/__main__.py | 2 +- pyproject.toml | 2 +- 4 files changed, 6 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 1500e57..b80911d 100644 --- a/README.md +++ b/README.md @@ -72,6 +72,9 @@ sources. Paths with `cppygen` will parse.`cppygen` can extract structs or classes from headers. +**diagnostic** [boolean] +Default is "True". An option for outputting diagnostics and detecting errors during parsing. + **output_dir** [path, **required**] Output directory of generated code. diff --git a/cppygen/__init__.py b/cppygen/__init__.py index f1380ee..9cb17e7 100644 --- a/cppygen/__init__.py +++ b/cppygen/__init__.py @@ -1 +1 @@ -__version__ = "0.1.7" +__version__ = "0.1.8" diff --git a/cppygen/__main__.py b/cppygen/__main__.py index 3682b7c..4b14314 100644 --- a/cppygen/__main__.py +++ b/cppygen/__main__.py @@ -88,7 +88,7 @@ def run(): for i in headers: cppygen.parse_from_file(i, lang="hpp", flags=configs.get("flags", [])) else: - with_diagnostic = configs.get("diagnostic", False) + with_diagnostic = configs.get("diagnostic", True) cppygen.parse( source="\n".join([f"#include<{i}>" for i in headers]), filename="tmp.hpp", diff --git a/pyproject.toml b/pyproject.toml index e3d07e8..b9d5567 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -8,7 +8,7 @@ pythonPlatform = "Darwin" [tool.poetry] name = "cppygen" -version = "0.1.7" +version = "0.1.8" description = "A simple c++ code generator for pybind11" readme = "README.md" authors = ["Gen740 "]