[cfe-dev] Getting out body of a while Statement

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


i need help to get out the body of a while statement.


While( a > 3) {


cout << "hello" <<endl;   << --  I wan to copy out this line and store into a variable.

}


This is a example , i want to take out whats inside of the while statement, and if its possible store it into a variable so i can print the result out somewhere.


Much appreciated

John Tan.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20161117/6255439c/attachment.html>


More information about the cfe-dev mailing list