[cfe-dev] Rewriter: How to rewrite an empty function argument list?
Marcel Schaible via cfe-dev
cfe-dev at lists.llvm.org
Mon Jul 31 01:22:52 PDT 2017
Thanks Alex, works!
Marcel
Am 31.07.2017 um 09:53 schrieb Alex L:
> TypeSourceInfo*TI=FD->getTypeSourceInfo();
> TypeLocTL=TI->getTypeLoc();
> FunctionTypeLocFTL=TL.getAsAdjusted<FunctionTypeLoc>();
> Diag(FTL.getLParenLoc(),diag::warn_strict_prototypes)<<2;
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20170731/36e4b2e1/attachment.html>
More information about the cfe-dev
mailing list