User Guide
rename.cpp File Reference

Go to the source code of this file.

Functions

static std::string run_var_rename_visitor (const std::string &text, const std::vector< std::pair< std::string, std::string >> &variables)
 
 SCENARIO ("Renaming any variable in mod file with RenameVisitor", "[visitor][rename]")
 
std::string run_local_var_rename_visitor (const std::string &text)
 
 SCENARIO ("Renaming with presence of local and global variables in same block", "[visitor][rename]")
 
 SCENARIO ("Renaming in the absence of global blocks", "[visitor][rename]")
 
 SCENARIO ("Variable renaming in nested blocks", "[visitor][rename]")
 
 SCENARIO ("Renaming in presence of local variable in verbatim block", "[visitor][rename]")
 

Function Documentation

◆ run_local_var_rename_visitor()

std::string run_local_var_rename_visitor ( const std::string &  text)

Definition at line 139 of file rename.cpp.

◆ run_var_rename_visitor()

static std::string run_var_rename_visitor ( const std::string &  text,
const std::vector< std::pair< std::string, std::string >> &  variables 
)
static

Definition at line 32 of file rename.cpp.

◆ SCENARIO() [1/5]

SCENARIO ( "Renaming any variable in mod file with RenameVisitor"  ,
""  [visitor][rename] 
)

expected result after renaming m, gNaTs2_tbar and mAlpha

Definition at line 49 of file rename.cpp.

◆ SCENARIO() [2/5]

SCENARIO ( "Renaming in presence of local variable in verbatim block"  ,
""  [visitor][rename] 
)

Definition at line 322 of file rename.cpp.

◆ SCENARIO() [3/5]

SCENARIO ( "Renaming in the absence of global blocks"  ,
""  [visitor][rename] 
)

Definition at line 190 of file rename.cpp.

◆ SCENARIO() [4/5]

SCENARIO ( "Renaming with presence of local and global variables in same block"  ,
""  [visitor][rename] 
)

Definition at line 152 of file rename.cpp.

◆ SCENARIO() [5/5]

SCENARIO ( "Variable renaming in nested blocks"  ,
""  [visitor][rename] 
)

Definition at line 212 of file rename.cpp.