[cfe-dev] How to identify if a FunctionDecl is member of a class.

James Dennett james.dennett at gmail.com
Thu Jul 3 15:16:51 PDT 2014


On Thu, Jul 3, 2014 at 10:11 PM, Greenwalker <panagos13 at hotmail.com> wrote:
> Hi all!
>
> Is there a way to identify if a FunctionDecl is a declaration of a function
> that belongs (or not) to a class ?
>
> I am trying to build a visitor which should only visit function declarations
> that are not members of any class.

Check whether it's a clang::CXXMethodDecl?

-- James



More information about the cfe-dev mailing list