2023-07-15 20:38:53 -07:00
# Scripts
2023-07-29 02:52:06 -07:00
Generation, testing, and cleanup scripts for the test directory are found here along with `natvis` and `natstepfilter` files for debugging.
2023-07-15 20:38:53 -07:00
2023-07-29 02:52:06 -07:00
## Refactoring
2023-07-15 20:38:53 -07:00
2023-07-29 02:52:06 -07:00
`refactor.ps1` Provides a way to run the [refactor ](github.com/Ed94/refactor ) program. It uses the `gencpp.refactor` script to complete a mass refactor of all content within the files of the specified within the script.
2023-07-15 20:38:53 -07:00
2023-07-29 02:52:06 -07:00
Currently `refactor` only supports naive sort of *find and replace* feature set and will not be able to rename identifiers excluisvely to a specific context (such as only renaming member names of a specific struct, etc).
2023-08-09 15:47:59 -07:00
**Note: The following macros are used with specifiers and token parsing within the library:**
* global
* internal
* local_persist
* forceinline
* neverinline
IF they are changed the following files would need adjustment:
* `./project/enums/ESpecifier.csv`
* `./project/enums/ETokType.csv`
* `./project/helpers/helper.hpp`
2023-07-29 02:52:06 -07:00
## Build & Run Scripts
**`clean.ps1`**
Remove any generated content from the repository.
2023-08-19 05:21:28 -07:00
**`build.ps1`**
Build bootstrap, singleheader, or tests. Supports MSVC or clang, release or debug.
```
args:
bootstrap
singleheader
test
clang
msvc
release
```
2023-07-29 02:52:06 -07:00
**`test.gen.build.ps1`**
Build the metaprogram for generating the test code.
**`test.gen.ps1`**
Build (if not already) the metaprogram for generating test code, then run it to generate code.
**`test.build.ps1`**
Build and run metaprogram, build test program.
**`test.run.ps1`**
Build and run metaprogram, build and run test program.
2023-08-19 05:21:28 -07:00
*Note: My env is Windows 11 with MSVC 2022 and clang 16.0.6*