reprospect.test.cmake module

class reprospect.test.cmake.CMakeMixinView on GitHub

Bases: ABC

Mixin to integrate with CMake build system.

CMAKE_BINARY_DIR

Descriptor that returns a value lazily read from an environment variable.

Based on:

CMAKE_CURRENT_BINARY_DIR

Descriptor that returns a value lazily read from an environment variable.

Based on:

property arch: NVIDIAArchView on GitHub

Retrieve the NVIDIA architecture from the CMake compile command database.

We assume the target file was compiled for only a single architecture.

See also https://cmake.org/cmake/help/latest/variable/CMAKE_EXPORT_COMPILE_COMMANDS.html.

property cmake_file_api: FileAPIView on GitHub
property cwd: PathView on GitHub

Get working directory for the analysis based on the CMake current binary directory.

property demangler: type[CuppFilt | LlvmCppFilt]View on GitHub
property executable: PathView on GitHub

Retrieve the executable for the analysis from the CMake codemodel database.

abstractmethod classmethod get_target_name() strView on GitHub
property target: dict[str, Any]View on GitHub

Retrieve the target information from the CMake codemodel database.

property target_sources: Generator[Path, None, None]View on GitHub

Retrieve the target source from the CMake codemodel database.

property toolchains: dict[str, dict[str, Any]]View on GitHub

Retrieve the toolchains information from the read CMake file API.

reprospect.test.cmake.get_demangler_for_compiler(compiler_id: str) type[CuppFilt | LlvmCppFilt]View on GitHub

Get demangler for compiler with given id.