New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

derp-cpp

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

derp-cpp

String interpolation for clang++ - Yet another post-pre processor

latest
npmnpm
Version
0.0.3
Version published
Maintainers
1
Created
Source

derp-cpp NPM version

String interpolation for clang++ - Yet another post-pre processor

Install globally with npm:

npm 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):

#include <string>
#include <iostream>
 
auto s = "variable string";

int main()
{
    std::cout << "This is an interpolation of '#{s}' that goes to stdout\n";
}

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.

FAQs

Package last updated on 18 Dec 2014

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts