boostorg / boostorg/wave

Picking up a compiler's predefined macros in the wave driver

Open
#110 5 comments 0 reactions 0 assignees View on GitHub
Dominant language
C++
Stars
29
Forks
55
PR merge metrics
No merged PRs in 30d

Description

A number of compilers have commands to output the predefined macros for the compiler regardless of any source file and just depending on the command line to the compiler. The output is always of the form for each line:

`#define SOME_MACRO SOME_EXPANSION`

It would be nice if the Wave driver program could just pick up a file of these predefined macros as is, using its @filepath syntax for the file, and process it as predefined macros, rather than having to transform each define from the form above to the wave acceptable form of:

`-P SOME_MACRO=SOME_EXPANSION`

I understand that I can use some program or regex to transform the compiler's output file to the form which the wave driver accepts, but for convenience sake it would be nice if the wave driver accepted the first form above.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.