dextool 1.0.0
C/C++ tooling for testing and visualisation
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
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.
- Registered by Joakim Brännström
- 1.0.0 released 7 years ago
- joakim-brannstrom/dextool
- MPL-2
- Copyright © 2014-2016, Joakim Brännström
- Authors:
- Sub packages:
- dextool:docopt, dextool:dsrcgen, dextool:clang, dextool:libclang, dextool:unit-threaded, dextool:cpptooling, dextool:plugins
- Dependencies:
- dextool:cpptooling, dextool:plugins
- 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 - Download Stats:
-
-
0 downloads today
-
0 downloads this week
-
3 downloads this month
-
401 downloads total
-
- Score:
- 2.2
- Short URL:
- dextool.dub.pm