[cfe-dev] Using clang-cl with -emit-ast
Daniel Kats via cfe-dev
cfe-dev at lists.llvm.org
Tue Dec 8 13:42:37 PST 2015
I'm using clang on Windows to generate an AST from header files for some
driver research I'm doing for my Ph.D. I found setting environment flags to
be a pain. What would be necessary to expose this flag from clang-cl?
On Tue, 8 Dec 2015 at 16:17 Hans Wennborg <hans at chromium.org> wrote:
> 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
> > -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
> - Hans
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the cfe-dev