File tree Expand file tree Collapse file tree 1 file changed +8
-0
lines changed Expand file tree Collapse file tree 1 file changed +8
-0
lines changed Original file line number Diff line number Diff line change @@ -70,6 +70,10 @@ class GnatcheckDriver(BaseDriver):
7070 resolution.
7171 - ``subdirs`` (str): The directory to forward to GNATcheck `--subdirs`
7272 option.
73+ - ``process_closure`` (bool): Whether to provide the ``-U`` flag when
74+ spawning GNATcheck in order to only process the project closure.
75+ If ``input_sources`` are provided, those are considered as roots
76+ for closure resolution.
7377 - ``input_sources`` (list[str]): Ada files to analyze (if explicit,
7478 optional if `project` is passed).
7579 - ``include_file`` (str): If passed, include all sources listed in the
@@ -492,6 +496,10 @@ def run_one_test(test_data: dict[str, any]) -> None:
492496 )
493497 args += [f"--ignore={ ignore_file } " ]
494498
499+ # Add the "-U" flag if required
500+ if test_data .get ("process_closure" ):
501+ args .append ("-U" )
502+
495503 # Add the specified sources to GNATcheck arguments
496504 if test_data .get ("input_sources" , None ):
497505 args += test_data ["input_sources" ]
You can’t perform that action at this time.
0 commit comments