How to tell if a CXXMethodDecl is const-qualified?

Either Method->getType().isConstQualified() isn't what I want, or I'm building my CXXMethodDecl incorrectly. How is const-ness indicated when building CXXMethodDecl?

- John

The qualifiers on a method aren't cv-qualifiers on the type, which is a fairly common source of confusion. If you cast down to a FunctionProtoType, you'll see that it has qualifiers. Or, just use CXXMethodDecl::getTypeQualifiers().

  - Doug