WaSH Docs
Functions | Variables
ws2st::refactor::meta Namespace Reference

Functions

std::string writeCopySimData (bool cornerstone_vectors=false)
 
void DefineForceAccessFns (const MatchFinder::MatchResult &Result, Replacements &Replace)
 
void DefineForceAccessFnsWithCornerstone (const MatchFinder::MatchResult &Result, Replacements &Replace)
 
void HandleSetDimension (const MatchFinder::MatchResult &Result, Replacements &Replace)
 
void HandleSimulationVecTMatcher (const MatchFinder::MatchResult &Result, Replacements &Replace)
 

Variables

DeclarationMatcher DefineForceAccessFnMatcher
 
StatementMatcher SetDimensionMatcher
 
DeclarationMatcher SimulationVecTMatcher
 

Function Documentation

◆ DefineForceAccessFns()

void ws2st::refactor::meta::DefineForceAccessFns ( const MatchFinder::MatchResult &  Result,
Replacements &  Replace 
)

◆ DefineForceAccessFnsWithCornerstone()

void ws2st::refactor::meta::DefineForceAccessFnsWithCornerstone ( const MatchFinder::MatchResult &  Result,
Replacements &  Replace 
)

◆ HandleSetDimension()

void ws2st::refactor::meta::HandleSetDimension ( const MatchFinder::MatchResult &  Result,
Replacements &  Replace 
)

◆ HandleSimulationVecTMatcher()

void ws2st::refactor::meta::HandleSimulationVecTMatcher ( const MatchFinder::MatchResult &  Result,
Replacements &  Replace 
)

◆ writeCopySimData()

std::string ws2st::refactor::meta::writeCopySimData ( bool  cornerstone_vectors = false)

Variable Documentation

◆ DefineForceAccessFnMatcher

DeclarationMatcher ws2st::refactor::meta::DefineForceAccessFnMatcher
Initial value:
= traverse(TK_IgnoreUnlessSpelledInSource,
cxxRecordDecl(hasName("_define_force_access_fn")).bind("decl")
)

◆ SetDimensionMatcher

StatementMatcher ws2st::refactor::meta::SetDimensionMatcher
Initial value:
= traverse(TK_IgnoreUnlessSpelledInSource, callExpr(
hasAncestor(functionDecl(hasName("main"))),
hasDescendant(
declRefExpr(
to(functionDecl(
hasName("wash::set_dimension")
))
)
),
hasArgument(0, ignoringImplicit( integerLiteral().bind("simDimension") ))
).bind("callExpr"))

◆ SimulationVecTMatcher

DeclarationMatcher ws2st::refactor::meta::SimulationVecTMatcher
Initial value:
= traverse(TK_IgnoreUnlessSpelledInSource, typedefNameDecl(
hasName("SimulationVecT")
).bind("typedef"))