ROSE 0.11.145.147
Public Types | Public Member Functions | Static Public Member Functions | Public Attributes | List of all members
Rose::AST::cmdline::checker_t Struct Reference

Description

Configure the AST checker module.

Definition at line 41 of file cmdline.h.

#include <Rose/AST/cmdline.h>

Collaboration diagram for Rose::AST::cmdline::checker_t:
Collaboration graph
[legend]

Public Types

enum class  Mode {
  all ,
  integrity ,
  integrity_edges ,
  integrity_declarations ,
  integrity_symbols ,
  integrity_types ,
  consistency ,
  unknown
}
 Many different modes are available. More...
 
enum class  Effect {
  none ,
  summary ,
  report ,
  fail ,
  unknown
}
 One can select the effect if any defect is detected. More...
 

Public Member Functions

void exec (SgProject *project) const
 

Static Public Member Functions

static Mode __mode (std::string const &)
 
static Effect __effect (std::string const &)
 

Public Attributes

bool on {false}
 
std::vector< Modemodes {Mode::integrity}
 
Effect effect {Effect::none}
 
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.
 

Member Enumeration Documentation

◆ Mode

Many different modes are available.

Enumerator
all 

run all checkers

integrity 

run all integrity checkers

integrity_edges 

checks the edges of the AST for invalid pointers/nodes

integrity_declarations 

checks each of the decalration subgraphs (1st-nondef / defn)

integrity_symbols 

checks the symbols subgraph

integrity_types 

checks the types subgraph

consistency 

run all consistency checkers

Definition at line 43 of file cmdline.h.

◆ Effect

One can select the effect if any defect is detected.

Enumerator
none 

NOP.

summary 

Shows a summary on the standard output.

report 

Shows a full report of all defects on the standard output.

fail 

Calls ROSE_ABORT (after save/log if any)

Definition at line 54 of file cmdline.h.

Member Data Documentation

◆ on

bool Rose::AST::cmdline::checker_t::on {false}

Definition at line 62 of file cmdline.h.

◆ modes

std::vector<Mode> Rose::AST::cmdline::checker_t::modes {Mode::integrity}

Definition at line 63 of file cmdline.h.

◆ effect

Effect Rose::AST::cmdline::checker_t::effect {Effect::none}

Definition at line 64 of file cmdline.h.

◆ log

std::string Rose::AST::cmdline::checker_t::log

Filepath to write out the log (equivalent to report)

Definition at line 65 of file cmdline.h.

◆ save

std::string Rose::AST::cmdline::checker_t::save

Filepath (without extension) where to save both the AST and a JSON dump of the defects.

Definition at line 66 of file cmdline.h.


The documentation for this struct was generated from the following file: