<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 12pt;
font-family:Calibri
}
--></style></head>
<body class='hmmessage'><div dir='ltr'>Thank you Richard, it worked perfect. I was wrong with the method <a class="c_nobdr t_prs" href="http://clang.llvm.org/doxygen/classclang_1_1FunctionProtoType.html#ab97e6e11a5b6f6c33126e091d09d570e" target="_blank">hasNoexceptExceptionSpec</a>: isNothrow is the method I was looking for.<br><br><div><hr id="stopSpelling">Date: Wed, 18 Feb 2015 13:04:25 -0800<br>Subject: Re: [cfe-dev] getFunctionType in CXXMethodDecl<br>From: richard@metafoo.co.uk<br>To: pedretti_86@hotmail.com<br>CC: cfe-dev@cs.uiuc.edu<br><br><div dir="ltr"><div class="ecxgmail_extra"><div class="ecxgmail_quote">On Wed, Feb 18, 2015 at 12:14 PM, victor <span dir="ltr"><<a href="mailto:pedretti_86@hotmail.com" target="_blank">pedretti_86@hotmail.com</a>></span> wrote:<br><blockquote class="ecxgmail_quote" style="border-left:1px #ccc solid;padding-left:1ex;">


<div><div dir="ltr">Hi,<br><br>I want to know if a method is marked as "<a href="http://clang.llvm.org/doxygen/classclang_1_1FunctionProtoType.html#ab97e6e11a5b6f6c33126e091d09d570e" target="_blank">hasNoexceptExceptionSpec</a>" in FunctionProtoType. To that end, I was trying to call getFunctionType() on the method, but:<br><br>"error: no member named '<a href="http://clang.llvm.org/doxygen/classclang_1_1Decl.html#af10c59874fe7dd00793fc4722c449d86" target="_blank">getFunctionType</a>' in 'clang::CXXMethodDecl' "<br><br>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"?</div></div></blockquote><div><br></div><div>MD->getType()->castAs<FunctionProtoType>()->isNothrow(Ctx)</div></div></div></div></div>                                           </div></body>
</html>