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:
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 is a suite of tools for analyzing and code generation of C/C++ source code.
dextool is beta quality. Stable release will be 1.0.
The current focus is generation of test doubles for C code.
libclang 3.7+. deXtool has been tested with versions [3.7, 3.8].
Building and installing
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.
Jacob Carlborg for his excellent DStep. It was used as a huge inspiration for this code base. Without DStep deXTool wouldn't exist.
- Registered by Joakim Brännström
- 0.8.2 released 2 years ago
- Copyright © 2014-2016, Joakim Brännström
- Sub packages:
- dextool:docopt, dextool:dsrcgen, dextool:clang, dextool:libclang, dextool:unit-threaded
- dextool:libclang, dextool:docopt, dextool:dsrcgen, dextool:clang
- System dependencies:
- libclang.so.1 3.6+
1.2.0 2018-Aug-16 1.1.0 2017-Mar-20 1.0.0 2017-Mar-06 0.8.4 2016-Nov-20 0.8.3 2016-Nov-03
- Download Stats:
0 downloads today
0 downloads this week
0 downloads this month
39 downloads total
- Short URL: