[cfe-dev] Determine field or member function visibility

David Come via cfe-dev cfe-dev at lists.llvm.org
Thu Jul 28 06:46:49 PDT 2016


Hi,


I'm using libtooling and I would like to know if a CXXMethodDecl or 
FieldDecl is public/private/protected.

This sounds pretty simple but I can't find in the doc any kind of 
isPublic/isPrivate/isProtected.There is a getVisibility but it seems 
related to the linker.


What am I missing ?


Thanks,

David.




-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20160728/9975e90b/attachment.html>


More information about the cfe-dev mailing list