[cfe-dev] Is it possible to getBody() of basic_string::_M_construct() in libstdc++ 8.3.0?

Ding Fei via cfe-dev cfe-dev at lists.llvm.org
Tue Nov 10 00:28:59 PST 2020


Hi all!

I would like to know if it's possible to get the method body of
std::__cxx11::basic_string::_M_construct(size_type, _CharT) ?

The question arises when StaticAnalyzer's ExprEnging::defaultEvalCall()
tries to inline this method but the CXXMethodDecl node for '_M_construct'
(and a few other similar members) from the AST has no body attached to it.

The body (templated?) should be in the AST but is hidden somewhere else,
otherwise the TU would be incomplete.

Any hint would be appreciated, thanks!

-- 
Best Regards

Ding Fei
E-mail: danix800 at gmail.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20201110/560de805/attachment.html>


More information about the cfe-dev mailing list