tooling ~master
Various small tools that help with C++ code editing.
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:
Simple Tooling for C++ Code
Various small tools that help with C++ code editing build on top of Facebook's C++ Linter flint
flint
is published at https://github.com/facebook/flint. It's
Tokenizer.d
is the basis of this whole project.
Fun with D ranges
This is all about D ranges and the fun to create something with it.
Central idea
We get an array of proper C++ tokens thanks to Tokenizer.d
. Based on this we
create a nested structure of Entity
objects by looking for pairs for curly
braces in Scanner.d
.
At this point various custom ranges can be used to transform the tokens and entities.
Utilities
CxxImplement.d
: Given a header/source file pair, add new functions from header to sourceCxxMerge.d
: Merge multiple C++ files while preserving the namespace structureCxxSortFunctions.d
: Sort functions by name while preserving the namespace structure
These utils are very specific and will not work on your files.
Custom Ranges
MergedRange.d
: Merge multiple token arrays into oneSortRange.d
: Sort functions with namespaces in token arrayTokenRange.d
: Map tokens to entitiesTreeRange.d
: Make a range out of a nested tree structureUnifyRange.d
: Unify functions in namespaces
License
Distributed under the Boost license.
- ~master released 10 years ago
- kuettler/tooling
- Boost Software License - Version 1.0
- Copyright © 2014, ukuettler
- Authors:
- Dependencies:
- none
- Versions:
-
0.0.1 2014-Dec-07 ~master 2014-Dec-07 - Download Stats:
-
-
0 downloads today
-
0 downloads this week
-
0 downloads this month
-
216 downloads total
-
- Score:
- 1.0
- Short URL:
- tooling.dub.pm