ROSE Compiler Framework/Tutorial

Debugging SgNodes
From rose-public@nersc.gov mailing list (https://mailman.nersc.gov/pipermail/rose-public/2012-August/001786.html) unparseToString needs full scope information to work properly (thinking about C++ name qualification and other nasty things) It does fail on dangling AST pieces.

A workaround it is 1)to call it AFTER the AST pieces are attached to somewhere. 2) call other member functions like ->class_name, ->get_name etc for debugging.

We had discussion to relax it to handle partial AST. But it never made into our priority list."

Filtering SgNodes
Check if an SgNode is in a user-specified location (function not defined in ROSE API yet; you need to implement yourself):

Check if an SgNode is NOT in a user-specified location (function not defined in ROSE API yet; you need to implement yourself:

Get all SgFunctionDeclaration nodes in a user-specified location:

Traversing files
Traverse only the named input file(s) (excluding header files) using traverseInputFiles:

Generating DOT files
utility_functions.h defines generateDOT(SgProject* project).

Processing Custom Commandline Options
TODO: