1#ifndef ROSE_AST_CMDLINE_H
2#define ROSE_AST_CMDLINE_H
10namespace Rose {
namespace AST {
36 static Mode __mode(std::string
const &);
69 static Mode __mode(std::string
const &);
70 static Effect __effect(std::string
const &);
This class represents a source project, with a list of SgFile objects and global information about th...
__when_T< graphviz_t > graphviz
Used by the -rose:ast:graphviz:XXX options.
__when_T< checker_t > checker
Used by the -rose:ast:checker:XXX options.
A simple template to facilitate configuration of modules that can be run after the frontend or before...
T frontend
Configuration to run after the frontend.
T backend
Configuration to run before the backend.
Configure the AST checker module.
Mode
Many different modes are available.
@ integrity_symbols
checks the symbols subgraph
@ integrity
run all integrity checkers
@ integrity_declarations
checks each of the decalration subgraphs (1st-nondef / defn)
@ integrity_edges
checks the edges of the AST for invalid pointers/nodes
@ consistency
run all consistency checkers
@ integrity_types
checks the types subgraph
Effect
One can select the effect if any defect is detected.
@ summary
Shows a summary on the standard output.
@ fail
Calls ROSE_ABORT (after save/log if any)
@ report
Shows a full report of all defects on the standard output.
std::string log
Filepath to write out the log (equivalent to report)
std::string save
Filepath (without extension) where to save both the AST and a JSON dump of the defects.
Configure the AST visualization module.
Mode
Two visualization modes.
@ tree
the Abstract Syntax Tree, only contains nodes that directly correspond to code
@ graph
the whole graph contains the AST and all other nodes, such as types and symbols
Mode mode
only a single mode, defaults to tree mode
std::string out
name of the output file