[cfe-dev] clang -cc1: confusing behaviour with multiple actions

Joerg Sonnenberger via cfe-dev cfe-dev at lists.llvm.org
Tue Oct 19 05:59:21 PDT 2021


On Tue, Oct 19, 2021 at 12:57:48PM +0100, Andrzej Warzynski via cfe-dev wrote:
> hello,
> 
> Clang's frontend driver, `clang -cc1`, will only run one action at a time.
> If multiple action options [1] are specified, only the rightmost one is run
> [2]. So in the following invocation, only `-dump-tokens` will be used:

The whole "-cc1" interface is an internal interface and the user is not
supposed to interact with it at all. As such, no sanity checks are
required.

Joerg


More information about the cfe-dev mailing list