Determining if method is a constructor

While traversing a CXXRecordDecl methods through method_begin i’ve stumbled with the class constructors and destructors being added as methods too (as they already showed up on ctor_begin). So, what’s the best way to determine if the current method is a constructor or not?

Victor

isa<CXXConstructorDecl>(Method)

Thanks Richard, It worked.

Victor