dextool 0.8.2

C/C++ tooling for testing and visualisation. Test doubles via static analyze. Class and component diagrams for PlantUML and GraphViz.


To use this package, run the following command in your project's root directory:

Manual usage
Put the following dependency into your project's dependences section:


This package provides sub packages which can be used individually:

dextool:docopt - docopt implementation in D

dextool:dsrcgen - The semantic code generation framework for Dlang

dextool:clang - Deimos bindings for libclang

dextool:libclang - Deimos bindings for libclang

dextool Build Status codecov

dextool is a suite of tools for analyzing and code generation of C/C++ source code.

Status

dextool is beta quality. Stable release will be 1.0.

Overview

The current focus is generation of test doubles for C code.

Dependencies

  • libclang 3.7+. deXtool has been tested with versions [3.7, 3.8].

Building and installing

See INSTALL.md

Usage

Generate a simple C test double.

dextool ctestdouble --in functions.h

Analyze and generate a test double for function prototypes and extern variables. Both those found in functions.h and outside, aka via includes.

The test double is written to ./testdouble.hpp/.cpp. The name of the interface is TestDouble.

Generate a C test double excluding data from specified files.

dextool ctestdouble --file-exclude=/foo.h --file-exclude='functions\.[h,c]' --out=outdata/ --in functions.h -- -DBAR -I/some/path

The code analyzer (Clang) will be passed the compiler flags -DBAR and -I/some/path. During generation declarations found in foo.h or functions.h will be excluded.

The file holding the test double is written to directory outdata.

Credit

Jacob Carlborg for his excellent DStep. It was used as a huge inspiration for this code base. Without DStep deXTool wouldn't exist.

Authors:
  • Joakim Brännström
Sub packages:
dextool:docopt, dextool:dsrcgen, dextool:clang, dextool:libclang, dextool:unit-threaded
Dependencies:
dextool:dsrcgen, dextool:libclang, dextool:docopt, dextool:clang
System dependencies:
libclang.so.1 3.6+
Versions:
5.0.0 2022-Dec-09
4.3.0 2022-Jun-03
4.2.0 2022-Mar-24
4.1.0 2022-Feb-08
4.0.0 2021-Sep-08
Show all 50 versions
Download Stats:
  • 0 downloads today

  • 0 downloads this week

  • 3 downloads this month

  • 401 downloads total

Score:
2.2
Short URL:
dextool.dub.pm