gencpp/scripts
Ed_ 050b00f28a WIP - Broken Compile : Added pragma once and includes to all files + Parser fixes, and String improvements
Adding the pragma once and includes the files broke compilation, still diagnosing why.

- Some string functions were moved to the cpp, still need to do some more evaluation of it and the containers...
- Added support for forceinline and neverinline to parsing (untested)
- Added support for specifiers in operator cast such as explicit, inline/forceinline/neverinline, etc.
    - Before it only support const.
    - Still need to support volatile.
- Forceinline was not supported at all for tokenization, fixed that.
2023-08-21 20:30:13 -04:00
..
helpers Build script improvements 2023-08-20 22:39:46 -04:00
.clang-format Fixes to serialization, reduced Define_CodeType macro 2023-08-06 17:19:57 -04:00
build.ci.ps1 WIP - Broken Compile : Added pragma once and includes to all files + Parser fixes, and String improvements 2023-08-21 20:30:13 -04:00
build.ps1 Simpilication of build script, added initial support for tests 2023-08-20 12:31:28 -04:00
clean.ps1 Made clean script remove the gen dir now from test dir. 2023-08-20 15:51:51 -04:00
genccp.natstepfilter Fixes to memory mangment, library is much faster now. 2023-07-16 18:00:07 -04:00
gencpp.natvis Scripting updates, some refactors.. 2023-08-09 18:47:59 -04:00
gencpp.refactor Scripting updates, some refactors.. 2023-08-09 18:47:59 -04:00
package_release.ps1 Simpilication of build script, added initial support for tests 2023-08-20 12:31:28 -04:00
Readme.md Simpilication of build script, added initial support for tests 2023-08-20 12:31:28 -04:00
refactor.ps1 Added refactor.ps1 script, fixed the gencpp.refactor script (missing commas) 2023-07-24 23:47:04 -04:00

Scripts

Generation, testing, and cleanup scripts for the test directory are found here along with natvis and natstepfilter files for debugging.

Refactoring

refactor.ps1 Provides a way to run the 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.

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).

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

Build & Run Scripts

clean.ps1
Remove any generated content from the repository.

build.ps1
Build bootstrap, singleheader, or tests. Supports MSVC or clang, release or debug.

args:
    bootstrap
    singleheader
    test
    clang
    msvc    : By default this project builds with clang, specifying msvc will build with MSVC.
    debug
    release : By default this project builds in debug mode, specifying release will build with optimizations.

package_release.ps1
Will build the project as fast as possible, then package the release into a zip file.

Note: My env is Windows 11 with MSVC 2022 and clang 16.0.6