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, put the following dependency into your project's dependencies section:

dub.json
dub.sdl

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:libclang, dextool:docopt, dextool:dsrcgen, dextool:clang
System dependencies:
libclang.so.1 3.6+
Versions:
1.1.0 2017-Mar-20
1.0.0 2017-Mar-06
0.8.4 2016-Nov-20
0.8.3 2016-Nov-03
0.8.2 2016-Oct-09
Show all 24 versions
Download Stats:
  • 0 downloads today

  • 0 downloads this week

  • 0 downloads this month

  • 39 downloads total

Score:
0.8
Short URL:
dextool.dub.pm