(.js)
laraImport("clava.ClavaCode");
(.lara)
import clava.ClavaCode;
ClavaCode
Utility methods related with the source code.
_renameStaticDeclarations($file, staticVerification)
getFunctionDefinition(functionName, isSingleFunction)
Returns the function definitions in the program with the given name.
isExecutedOnce($statement)
Tries to statically detect if a statement is executed only once.
Restrictions:
- Does not take into account runtime execution problems, such as exceptions;
- Does not detect if the function is called indirectly through a function pointer;
toSingleFile(fileOrBaseFolder, optionalFile)
Writes the code corresponding to the current AST as a single file.
toSingleFileCode()
Generates code for a single fime corresponding to the current AST.