[cfe-dev] How can I get the #pragma pack information in Clang Static Analyzer?
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.
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
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the cfe-dev