[cfe-dev] Using clang-cl with -emit-ast

Hans Wennborg via cfe-dev cfe-dev at lists.llvm.org
Tue Dec 8 13:16:55 PST 2015


Hi Daniel,

On Tue, Dec 8, 2015 at 11:46 AM, Daniel Kats via cfe-dev
<cfe-dev at lists.llvm.org> wrote:
> How to call clang-cl with -emit-ast command-line argument? I tried -Xclang
> -emit-ast and got "unknown argument: -emit-ast"

It doesn't work with -Xclang, because -emit-ast is a driver flag, not
a frontend flag.

clang-cl could probably expose this flag if it's useful, but in
general its focus is on MSVC-compatible flags. What do you need it
for?

 - Hans



More information about the cfe-dev mailing list