Implementation of the meta data for preprocessing.
A preprocess table can currently have the following fields
[preprocess]
[preprocess.cpp]
suffixes = ["F90", "f90"]
directories = ["src/feature1", "src/models"]
macros = []
All checks passed!
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
class(preprocess_config_t), | intent(in) | :: | this | |||
class(preprocess_config_t), | intent(in) | :: | that |
Configuration meta data for a preprocessor
Type | Visibility | Attributes | Name | Initial | |||
---|---|---|---|---|---|---|---|
type(string_t), | public, | allocatable | :: | directories(:) |
Directories to search for files to be preprocessed |
||
type(string_t), | public, | allocatable | :: | macros(:) |
Macros to be defined for the preprocessor |
||
character(len=:), | public, | allocatable | :: | name |
Name of the preprocessor |
||
type(string_t), | public, | allocatable | :: | suffixes(:) |
Suffixes of the files to be preprocessed |
procedure , public , :: info Subroutine | Print information on this instance |
Construct a new preprocess configuration from TOML data structure
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
type(preprocess_config_t), | intent(out) | :: | self |
Instance of the preprocess configuration |
||
type(toml_table), | intent(inout) | :: | table |
Instance of the TOML data structure. |
||
type(error_t), | intent(out), | allocatable | :: | error |
Error handling |
Construct new preprocess array from a TOML data structure.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
type(preprocess_config_t), | intent(out), | allocatable | :: | preprocessors(:) |
Instance of the preprocess configuration |
|
type(toml_table), | intent(inout) | :: | table |
Instance of the TOML data structure |
||
type(error_t), | intent(out), | allocatable | :: | error |
Error handling |