arena allocator + incremental garbage collector
  • C++ 98.4%
  • CMake 1.6%
Find a file
2024-06-18 14:05:51 -04:00
.github/workflows xo-reflect: github: fix title for cmake CI 2024-06-14 10:54:14 -04:00
cmake xo-reflect: build: streamline using recent xo-cmake improvements 2024-05-01 14:33:57 -04:00
include/xo/reflect xo-reflect: allow TypeDescr without .native_typeinfo 2024-06-18 14:05:51 -04:00
src/reflect xo-reflect: allow TypeDescr without .native_typeinfo 2024-06-18 14:05:51 -04:00
utest xo-reflect: utest for function reflection 2024-06-14 10:56:50 -04:00
.gitignore xo-reflect: README: howto using xo-build 2024-06-15 13:15:22 -04:00
CMakeLists.txt xo-reflect: utest for function reflection 2024-06-14 10:56:50 -04:00
FILESYSTEM reflect: initial implementation 2023-09-25 17:49:42 -04:00
README.md xo-reflect: allow TypeDescr without .native_typeinfo 2024-06-18 14:05:51 -04:00

reflection library

Getting Started

build + install xo-cmake dependency

Installs a few cmake ingredients, along with a build assistant xo-build for XO projects such as this one.

build + install other XO dependencies

$ xo-build --clone --configure --build --install xo-indentlog
$ xo-build --clone --configure --build --install xo-refnct
$ xo-build --clone --configure --build --install xo-subsys

Note: can use -n to dry-run here

copy xo-reflect repository locally

$ xo-build --clone xo-reflect

or equivalently

$ git clone git@github.com:Rconybea/xo-reflect.git

build + install xo-reflect

$ xo-build --configure --build --install xo-reflect

or equivalently:

$ PREFIX=/usr/local  # or wherever you prefer
$ cmake -DCMAKE_INSTALL_PREFIX=${PREFIX} -S xo-reflect -B xo-reflect/.build
$ cmake --build xo-reflect/.build
$ cmake --install xo-reflect/.build

build for unit test coverage

$ cmake -DCMAKE_BUILD_TYPE=coverage -DCMAKE_INSTALL_PREFIX=$PREFIX xo-reflect/.build-ccov
$ cmake --build xo-reflect/.build-ccov

LSP support

$ cd xo-reflect
$ ln -s build/compile_commands.json  # lsp will look for compile_commands.json in the root of the source tree