[cfe-dev] Print AST in ObjC

Alberto Lagos via cfe-dev cfe-dev at lists.llvm.org
Tue Oct 1 06:23:47 PDT 2019


Sorry, i forgot to tell that clang show this error after run the command
that i posted in the previous message:

MandatoryViewController.m:1:9: fatal error: module 'UIKit' not found
@import UIKit;

Thanks!

El mar., 1 oct. 2019 a las 9:15, Alberto Lagos (<alberto.lagos at gmail.com>)
escribió:

> Hello,
>
> I want to be able to print the AST of a .m file (Objective-C) i tried with
>
>  clang -fmodules -F/System/Library/Frameworks -Xclang -ast-dump
> -fsyntax-only MandatoryViewController.m
>
> This file is part of a xcode file, so it has some dependencies.
>
> Do any of you know what i need to do? so this can work?
>
> Thanks in advance.
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20191001/e7a28d2c/attachment.html>


More information about the cfe-dev mailing list