[cfe-dev] CFGElement to CFGStmt

Vadium vabrva at gmail.com
Thu Jul 4 08:38:52 PDT 2013


Hi David,

I am trying to do the same anikau31 was trying to do, using your code:

> +  if (Optional<CFGStmt> CS = E.getAs<CFGStmt>()) {
> +    const Stmt *S = CS->getStmt();

but I'm getting following error on second line:

" error: cannot convert 'clang::CFGStmt::getStmt' from type 'const
clang::Stmt* (clang::CFGStmt::)()const' to type 'const clang::Stmt*' "

Thank you in advance,



--
View this message in context: http://clang-developers.42468.n3.nabble.com/CFGElement-to-CFGStmt-tp4031123p4033020.html
Sent from the Clang Developers mailing list archive at Nabble.com.



More information about the cfe-dev mailing list