getFunctionType in CXXMethodDecl


I want to know if a method is marked as “hasNoexceptExceptionSpec” in FunctionProtoType. To that end, I was trying to call getFunctionType() on the method, but:

"error: no member named ‘getFunctionType’ in ‘clang::CXXMethodDecl’ "

I’m using clang 3.4, is this method missing in this version? Is there another simpler way to know if a function is “noexcept”?



Thank you Richard, it worked perfect. I was wrong with the method hasNoexceptExceptionSpec: isNothrow is the method I was looking for.