[cfe-dev] Use "-g" and "-ast-print" flags together

Stephan Bergmann via cfe-dev cfe-dev at lists.llvm.org
Mon May 3 02:11:42 PDT 2021


On 03/05/2021 10:36, Pratyush Das via cfe-dev wrote:
> Is there a way to use Clang with both the "-g" and "-ast-print" flags in 
> the same invocation?
> It looks like "-ast-print" is only allowed with "clang -cc1", while 
> "clang -cc1" does not allow me to use "-g".

`clang -Xclang -ast-print -g` should work, I think.



More information about the cfe-dev mailing list