diff options
author | Stone Tickle <lattis@mochiro.moe> | 2022-01-31 07:20:33 -0600 |
---|---|---|
committer | Daniel Mensinger <daniel@mensinger-ka.de> | 2022-01-31 18:40:40 +0100 |
commit | bd1c464f591d26340f96183ee6f402652e4c38b5 (patch) | |
tree | 5aa3e94af14885b1e1bcc410d2d36c4301e5f843 /docs/refman/loaderyaml.py | |
parent | b0d29dd6adb205b70bdd1bb18823caaadba15c5d (diff) | |
download | meson-bd1c464f591d26340f96183ee6f402652e4c38b5.zip meson-bd1c464f591d26340f96183ee6f402652e4c38b5.tar.gz meson-bd1c464f591d26340f96183ee6f402652e4c38b5.tar.bz2 |
print warning when using fastyaml loader
Diffstat (limited to 'docs/refman/loaderyaml.py')
-rw-r--r-- | docs/refman/loaderyaml.py | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/docs/refman/loaderyaml.py b/docs/refman/loaderyaml.py index 9f96fa4..e632741 100644 --- a/docs/refman/loaderyaml.py +++ b/docs/refman/loaderyaml.py @@ -295,9 +295,9 @@ class LoaderYAML(LoaderBase): return [module, *objs] def load_impl(self) -> ReferenceManual: - mlog.log('Loading YAML refererence manual') + mlog.log('Loading YAML reference manual') with mlog.nested(): - return ReferenceManual( + manual = ReferenceManual( functions=[self._load_function(x) for x in self.func_dir.iterdir()], objects=mesonlib.listify([ [self._load_object(ObjectType.ELEMENTARY, x) for x in self.elem_dir.iterdir()], @@ -306,3 +306,8 @@ class LoaderYAML(LoaderBase): [self._load_module(x) for x in self.modules_dir.iterdir()] ], flatten=True) ) + + if not self.strict: + mlog.warning('YAML reference manual loaded using the best-effort fastyaml loader. Results are not guaranteed to be stable or correct.') + + return manual |