the following option
g++ main.cpp -E
will join all headers and renders macros. It does generate over 10MB output for me. I just need to render includes and not macros. And also I need to limit rendering includes to local files
#include "headerfile.hpp"
I do not want to render
#include <iostream>
I dont want such horrible code:
namespace std __attribute__ ((__visibility__ ("default")))
{
# 60 "/usr/include/c++/4.8/iostream" 3
extern istream cin;
extern ostream cout;
extern ostream cerr;
extern ostream clog;
extern wistream wcin;
extern wostream wcout;
extern wostream wcerr;
extern wostream wclog;
Is there any way to limit option E to what I need?