[cfe-dev] Fw: conversion of const Stmt to stringref

John Tan via cfe-dev cfe-dev at lists.llvm.org
Thu Nov 17 20:24:08 PST 2016




________________________________
From: John Tan
Sent: Friday, November 18, 2016 12:23 PM
To: llvm-dev
Subject: conversion of const Stmt to stringref


const WhileStmt *WS = Result.Nodes.getNodeAs<clang::WhileStmt>("whileStmt");

Stmt *s = WS->getBody(); <-- i am assuming this is can get the body of while statment


how do i print out to see what the variable s is holding ?


i need to print out using rewriter functionality, but there is no function for me to convert it to stringref or print a stmt.


Much help needed please.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20161118/a3e87056/attachment.html>


More information about the cfe-dev mailing list