[cfe-dev] How can I get the #pragma pack information in Clang Static Analyzer?
Anna Zaks
ganna at apple.com
Fri Oct 11 09:21:06 PDT 2013
Are you trying to check what alignment a record has within the static analyzer? I think you should be able to check the alignment attributes (ex: AlignMac68kAttr or MaxFieldAlignmentAttr) on a given RecordDecl to see what the set alignment is.
Cheers,
Anna.
On Oct 11, 2013, at 6:12 AM, Arthur Yoo <phjy007 at gmail.com> wrote:
> Hi all,
>
> Some program may specify the #pragma pack information for controlling record layout. Now I want to get the default or the specified #pragma pack information in Clang Static Analyzer. So how can I obtain this kind of information in my checker?
>
> Thanks a lot.
>
>
> --
> Best regards,
> Arthur Yoo
> _______________________________________________
> cfe-dev mailing list
> cfe-dev at cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/cfe-dev
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20131011/cc91b1c2/attachment.html>
More information about the cfe-dev
mailing list