diff options
| author | Zoltan Gera <zoltan.gera@qt.io> | 2025-12-03 17:16:18 +0200 |
|---|---|---|
| committer | Zoltan Gera <zoltan.gera@qt.io> | 2025-12-08 14:32:37 +0200 |
| commit | dd1404b846721a966ea10e00ff160c1d289b6959 (patch) | |
| tree | 15ac30257b812b74cad916f31ce42d0195e67b64 /src/interfaceframework/doc/snippets | |
| parent | c38de278bfeaa00d212e37519b9ee2b9ef585cb2 (diff) | |
Add deprecation handling to Jinja
Two new global functions are added to Jinja which can deprecate both
templates and filters alike. The deprecation logic is based on the
newest macros in C++ which handle both deprecation version and the
version for code removal. In case of removal, an error fails the build.
CMake configuration variables are also introduced which can set warning
and error version boundaries respectively.
[ChangeLog][ifcodegen] Introduced deprecation primitives for templates.
Pick-to: 6.11
Change-Id: I0c4e56f84f674a0e6d6bb90968687e31b6e250a2
Reviewed-by: Dominik Holland <dominik.holland@qt.io>
Diffstat (limited to 'src/interfaceframework/doc/snippets')
| -rw-r--r-- | src/interfaceframework/doc/snippets/filters.py | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/src/interfaceframework/doc/snippets/filters.py b/src/interfaceframework/doc/snippets/filters.py index 245b8f94..68ea73be 100644 --- a/src/interfaceframework/doc/snippets/filters.py +++ b/src/interfaceframework/doc/snippets/filters.py @@ -3,14 +3,12 @@ # SPDX-License-Identifier: LicenseRef-Qt-Commercial OR BSD-3-Clause import json -import inspect from qface.idl.domain import Module, Interface, Property, Parameter, Field, Struct from qface.helper.generic import lower_first, upper_first from qface.helper.qtcpp import Filters from generator.global_functions import jinja_error, jinja_warning -from generator.filters import deprecated_filter def custom_filter(s): jinja_warning("Test calling a function from the ifcodegen within our own filters") |
