derp-cpp
String interpolation for clang++ - Yet another post-pre processor
npm:
Install globally withnpm i -g derp-cpp
General help
Usage:
derp -
derp -h | --help
Description:
Expands C++ interpolated strings from a program read from stdin. Produces the manipulated program on stdout.
This is just a post processor to be run after clang++ preprocessor (-E option).
Example
Assume the following c++ file (example.cxx
):
auto s = "variable string"; int
Compile it with:
> clang++ --std=c++11 -E example.cxx | derp > example.c++ && clang++ -o example --std=c++11 example.c++
And then run it:
> ./example
This is an interpolation of 'variable string' that goes to stdout
Author
Vittorio Zaccaria
License
Copyright (c) 2014 Vittorio Zaccaria
Released under the BSD license
This file was generated by verb on December 18, 2014.